Re: [PATCH] x86: allow tracing of functions in arch/x86/kernel/rtc.c

From: David Vrabel
Date: Fri Oct 05 2012 - 07:24:17 EST


On 05/10/12 12:18, David Vrabel wrote:
> Move native_read_tsc() to tsc.c to allow profiling to be re-enabled
> for rtc.c.

Sorry, dropped the EXPORT_SYMBOL() by mistake. I'll fix this and repost.

David

> diff --git a/arch/x86/kernel/rtc.c b/arch/x86/kernel/rtc.c
> index af6db6e..8ab7c62 100644
> --- a/arch/x86/kernel/rtc.c
> +++ b/arch/x86/kernel/rtc.c
> @@ -195,12 +195,6 @@ void read_persistent_clock(struct timespec *ts)
> ts->tv_nsec = 0;
> }
>
> -unsigned long long native_read_tsc(void)
> -{
> - return __native_read_tsc();
> -}
> -EXPORT_SYMBOL(native_read_tsc);
> -
>
> static struct resource rtc_resources[] = {
> [0] = {
> diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c
> index cfa5d4f..15e190a 100644
> --- a/arch/x86/kernel/tsc.c
> +++ b/arch/x86/kernel/tsc.c
> @@ -77,6 +77,11 @@ unsigned long long
> sched_clock(void) __attribute__((alias("native_sched_clock")));
> #endif
>
> +unsigned long long native_read_tsc(void)
> +{
> + return __native_read_tsc();
> +}
> +
> int check_tsc_unstable(void)
> {
> return tsc_unstable;

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/