linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] x86: allow tracing of functions in arch/x86/kernel/rtc.c
@ 2012-10-05 11:18 David Vrabel
  2012-10-05 11:24 ` David Vrabel
  2012-10-08 12:07 ` [PATCHv2] " David Vrabel
  0 siblings, 2 replies; 4+ messages in thread
From: David Vrabel @ 2012-10-05 11:18 UTC (permalink / raw)
  To: x86; +Cc: linux-kernel, David Vrabel

Move native_read_tsc() to tsc.c to allow profiling to be re-enabled
for rtc.c.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
---
 arch/x86/kernel/Makefile |    1 -
 arch/x86/kernel/rtc.c    |    6 ------
 arch/x86/kernel/tsc.c    |    5 +++++
 3 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/arch/x86/kernel/Makefile b/arch/x86/kernel/Makefile
index 8215e56..19dd3a6 100644
--- a/arch/x86/kernel/Makefile
+++ b/arch/x86/kernel/Makefile
@@ -9,7 +9,6 @@ CPPFLAGS_vmlinux.lds += -U$(UTS_MACHINE)
 ifdef CONFIG_FUNCTION_TRACER
 # Do not profile debug and lowlevel utilities
 CFLAGS_REMOVE_tsc.o = -pg
-CFLAGS_REMOVE_rtc.o = -pg
 CFLAGS_REMOVE_paravirt-spinlocks.o = -pg
 CFLAGS_REMOVE_pvclock.o = -pg
 CFLAGS_REMOVE_kvmclock.o = -pg
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;
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] x86: allow tracing of functions in arch/x86/kernel/rtc.c
  2012-10-05 11:18 [PATCH] x86: allow tracing of functions in arch/x86/kernel/rtc.c David Vrabel
@ 2012-10-05 11:24 ` David Vrabel
  2012-10-08 12:07 ` [PATCHv2] " David Vrabel
  1 sibling, 0 replies; 4+ messages in thread
From: David Vrabel @ 2012-10-05 11:24 UTC (permalink / raw)
  To: David Vrabel; +Cc: x86, linux-kernel

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;


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCHv2] x86: allow tracing of functions in arch/x86/kernel/rtc.c
  2012-10-05 11:18 [PATCH] x86: allow tracing of functions in arch/x86/kernel/rtc.c David Vrabel
  2012-10-05 11:24 ` David Vrabel
@ 2012-10-08 12:07 ` David Vrabel
  2012-10-24 13:00   ` [tip:perf/core] x86: Allow tracing of functions in arch/x86/kernel /rtc.c tip-bot for David Vrabel
  1 sibling, 1 reply; 4+ messages in thread
From: David Vrabel @ 2012-10-08 12:07 UTC (permalink / raw)
  To: linux-kernel; +Cc: x86, David Vrabel

Move native_read_tsc() to tsc.c to allow profiling to be re-enabled
for rtc.c.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
---
Changes in v2:
- re-add EXPORT_SYMBOL().
---
 arch/x86/kernel/Makefile |    1 -
 arch/x86/kernel/rtc.c    |    6 ------
 arch/x86/kernel/tsc.c    |    6 ++++++
 3 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/arch/x86/kernel/Makefile b/arch/x86/kernel/Makefile
index 8215e56..19dd3a6 100644
--- a/arch/x86/kernel/Makefile
+++ b/arch/x86/kernel/Makefile
@@ -9,7 +9,6 @@ CPPFLAGS_vmlinux.lds += -U$(UTS_MACHINE)
 ifdef CONFIG_FUNCTION_TRACER
 # Do not profile debug and lowlevel utilities
 CFLAGS_REMOVE_tsc.o = -pg
-CFLAGS_REMOVE_rtc.o = -pg
 CFLAGS_REMOVE_paravirt-spinlocks.o = -pg
 CFLAGS_REMOVE_pvclock.o = -pg
 CFLAGS_REMOVE_kvmclock.o = -pg
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..06ccb50 100644
--- a/arch/x86/kernel/tsc.c
+++ b/arch/x86/kernel/tsc.c
@@ -77,6 +77,12 @@ unsigned long long
 sched_clock(void) __attribute__((alias("native_sched_clock")));
 #endif
 
+unsigned long long native_read_tsc(void)
+{
+	return __native_read_tsc();
+}
+EXPORT_SYMBOL(native_read_tsc);
+
 int check_tsc_unstable(void)
 {
 	return tsc_unstable;
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [tip:perf/core] x86: Allow tracing of functions in arch/x86/kernel /rtc.c
  2012-10-08 12:07 ` [PATCHv2] " David Vrabel
@ 2012-10-24 13:00   ` tip-bot for David Vrabel
  0 siblings, 0 replies; 4+ messages in thread
From: tip-bot for David Vrabel @ 2012-10-24 13:00 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: linux-kernel, hpa, mingo, a.p.zijlstra, fweisbec, rostedt, tglx,
	david.vrabel

Commit-ID:  ce37f400336a34bb6e72c4700f9dcc2a41ff7163
Gitweb:     http://git.kernel.org/tip/ce37f400336a34bb6e72c4700f9dcc2a41ff7163
Author:     David Vrabel <david.vrabel@citrix.com>
AuthorDate: Mon, 8 Oct 2012 13:07:30 +0100
Committer:  Ingo Molnar <mingo@kernel.org>
CommitDate: Wed, 24 Oct 2012 13:14:22 +0200

x86: Allow tracing of functions in arch/x86/kernel/rtc.c

Move native_read_tsc() to tsc.c to allow profiling to be
re-enabled for rtc.c.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/1349698050-6560-1-git-send-email-david.vrabel@citrix.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
 arch/x86/kernel/Makefile |    1 -
 arch/x86/kernel/rtc.c    |    6 ------
 arch/x86/kernel/tsc.c    |    6 ++++++
 3 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/arch/x86/kernel/Makefile b/arch/x86/kernel/Makefile
index 91ce48f..9fd5eed 100644
--- a/arch/x86/kernel/Makefile
+++ b/arch/x86/kernel/Makefile
@@ -9,7 +9,6 @@ CPPFLAGS_vmlinux.lds += -U$(UTS_MACHINE)
 ifdef CONFIG_FUNCTION_TRACER
 # Do not profile debug and lowlevel utilities
 CFLAGS_REMOVE_tsc.o = -pg
-CFLAGS_REMOVE_rtc.o = -pg
 CFLAGS_REMOVE_paravirt-spinlocks.o = -pg
 CFLAGS_REMOVE_pvclock.o = -pg
 CFLAGS_REMOVE_kvmclock.o = -pg
diff --git a/arch/x86/kernel/rtc.c b/arch/x86/kernel/rtc.c
index 4929c1b..801602b 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..06ccb50 100644
--- a/arch/x86/kernel/tsc.c
+++ b/arch/x86/kernel/tsc.c
@@ -77,6 +77,12 @@ unsigned long long
 sched_clock(void) __attribute__((alias("native_sched_clock")));
 #endif
 
+unsigned long long native_read_tsc(void)
+{
+	return __native_read_tsc();
+}
+EXPORT_SYMBOL(native_read_tsc);
+
 int check_tsc_unstable(void)
 {
 	return tsc_unstable;

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-10-24 13:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-05 11:18 [PATCH] x86: allow tracing of functions in arch/x86/kernel/rtc.c David Vrabel
2012-10-05 11:24 ` David Vrabel
2012-10-08 12:07 ` [PATCHv2] " David Vrabel
2012-10-24 13:00   ` [tip:perf/core] x86: Allow tracing of functions in arch/x86/kernel /rtc.c tip-bot for David Vrabel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).