public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] perf: Enable function tracing for perf core
@ 2013-03-08 23:24 Andi Kleen
  2013-03-28 15:45 ` Andi Kleen
  0 siblings, 1 reply; 4+ messages in thread
From: Andi Kleen @ 2013-03-08 23:24 UTC (permalink / raw)
  To: a.p.zijlstra; +Cc: mingo, linux-kernel, Andi Kleen, rostedt

From: Andi Kleen <ak@linux.intel.com>

According to Steven R. there is no reason left to not support
function tracing for the perf core. This makes it easier to debug
perf.

Don't remove -pg for the x86 and generic perf core.

Cc: rostedt@goodmis.org
Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
 arch/x86/kernel/cpu/Makefile |    1 -
 kernel/events/Makefile       |    4 ----
 2 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/arch/x86/kernel/cpu/Makefile b/arch/x86/kernel/cpu/Makefile
index a0e067d..8eb5d28 100644
--- a/arch/x86/kernel/cpu/Makefile
+++ b/arch/x86/kernel/cpu/Makefile
@@ -5,7 +5,6 @@
 # Don't trace early stages of a secondary CPU boot
 ifdef CONFIG_FUNCTION_TRACER
 CFLAGS_REMOVE_common.o = -pg
-CFLAGS_REMOVE_perf_event.o = -pg
 endif
 
 # Make sure load_percpu_segment has no stackprotector
diff --git a/kernel/events/Makefile b/kernel/events/Makefile
index 103f5d1..a630994 100644
--- a/kernel/events/Makefile
+++ b/kernel/events/Makefile
@@ -1,7 +1,3 @@
-ifdef CONFIG_FUNCTION_TRACER
-CFLAGS_REMOVE_core.o = -pg
-endif
-
 obj-y := core.o ring_buffer.o callchain.o
 
 obj-$(CONFIG_HAVE_HW_BREAKPOINT) += hw_breakpoint.o
-- 
1.7.7.6


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

* Re: [PATCH] perf: Enable function tracing for perf core
  2013-03-08 23:24 [PATCH] perf: Enable function tracing for perf core Andi Kleen
@ 2013-03-28 15:45 ` Andi Kleen
  2013-04-08 15:37   ` Steven Rostedt
  0 siblings, 1 reply; 4+ messages in thread
From: Andi Kleen @ 2013-03-28 15:45 UTC (permalink / raw)
  To: a.p.zijlstra; +Cc: mingo, linux-kernel, rostedt, akpm

Andi Kleen <andi@firstfloor.org> writes:

> From: Andi Kleen <ak@linux.intel.com>
>
> According to Steven R. there is no reason left to not support
> function tracing for the perf core. This makes it easier to debug
> perf.
>
> Don't remove -pg for the x86 and generic perf core.

Ping! patch is missing review.


>
> Cc: rostedt@goodmis.org
> Signed-off-by: Andi Kleen <ak@linux.intel.com>
> ---
>  arch/x86/kernel/cpu/Makefile |    1 -
>  kernel/events/Makefile       |    4 ----
>  2 files changed, 0 insertions(+), 5 deletions(-)
>
> diff --git a/arch/x86/kernel/cpu/Makefile b/arch/x86/kernel/cpu/Makefile
> index a0e067d..8eb5d28 100644
> --- a/arch/x86/kernel/cpu/Makefile
> +++ b/arch/x86/kernel/cpu/Makefile
> @@ -5,7 +5,6 @@
>  # Don't trace early stages of a secondary CPU boot
>  ifdef CONFIG_FUNCTION_TRACER
>  CFLAGS_REMOVE_common.o = -pg
> -CFLAGS_REMOVE_perf_event.o = -pg
>  endif
>  
>  # Make sure load_percpu_segment has no stackprotector
> diff --git a/kernel/events/Makefile b/kernel/events/Makefile
> index 103f5d1..a630994 100644
> --- a/kernel/events/Makefile
> +++ b/kernel/events/Makefile
> @@ -1,7 +1,3 @@
> -ifdef CONFIG_FUNCTION_TRACER
> -CFLAGS_REMOVE_core.o = -pg
> -endif
> -
>  obj-y := core.o ring_buffer.o callchain.o
>  
>  obj-$(CONFIG_HAVE_HW_BREAKPOINT) += hw_breakpoint.o

-- 
ak@linux.intel.com -- Speaking for myself only

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

* Re: [PATCH] perf: Enable function tracing for perf core
  2013-03-28 15:45 ` Andi Kleen
@ 2013-04-08 15:37   ` Steven Rostedt
  2013-04-10 12:56     ` Ingo Molnar
  0 siblings, 1 reply; 4+ messages in thread
From: Steven Rostedt @ 2013-04-08 15:37 UTC (permalink / raw)
  To: Andi Kleen; +Cc: a.p.zijlstra, mingo, linux-kernel, akpm, Frederic Weisbecker

On Thu, 2013-03-28 at 08:45 -0700, Andi Kleen wrote:
> Andi Kleen <andi@firstfloor.org> writes:
> 
> > From: Andi Kleen <ak@linux.intel.com>
> >
> > According to Steven R. there is no reason left to not support
> > function tracing for the perf core. This makes it easier to debug
> > perf.
> >
> > Don't remove -pg for the x86 and generic perf core.
> 
> Ping! patch is missing review.
> 

This needs an acked-by from either Peter or Frederic.

-- Steve

> 
> >
> > Cc: rostedt@goodmis.org
> > Signed-off-by: Andi Kleen <ak@linux.intel.com>
> > ---
> >  arch/x86/kernel/cpu/Makefile |    1 -
> >  kernel/events/Makefile       |    4 ----
> >  2 files changed, 0 insertions(+), 5 deletions(-)
> >
> > diff --git a/arch/x86/kernel/cpu/Makefile b/arch/x86/kernel/cpu/Makefile
> > index a0e067d..8eb5d28 100644
> > --- a/arch/x86/kernel/cpu/Makefile
> > +++ b/arch/x86/kernel/cpu/Makefile
> > @@ -5,7 +5,6 @@
> >  # Don't trace early stages of a secondary CPU boot
> >  ifdef CONFIG_FUNCTION_TRACER
> >  CFLAGS_REMOVE_common.o = -pg
> > -CFLAGS_REMOVE_perf_event.o = -pg
> >  endif
> >  
> >  # Make sure load_percpu_segment has no stackprotector
> > diff --git a/kernel/events/Makefile b/kernel/events/Makefile
> > index 103f5d1..a630994 100644
> > --- a/kernel/events/Makefile
> > +++ b/kernel/events/Makefile
> > @@ -1,7 +1,3 @@
> > -ifdef CONFIG_FUNCTION_TRACER
> > -CFLAGS_REMOVE_core.o = -pg
> > -endif
> > -
> >  obj-y := core.o ring_buffer.o callchain.o
> >  
> >  obj-$(CONFIG_HAVE_HW_BREAKPOINT) += hw_breakpoint.o
> 



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

* Re: [PATCH] perf: Enable function tracing for perf core
  2013-04-08 15:37   ` Steven Rostedt
@ 2013-04-10 12:56     ` Ingo Molnar
  0 siblings, 0 replies; 4+ messages in thread
From: Ingo Molnar @ 2013-04-10 12:56 UTC (permalink / raw)
  To: Steven Rostedt
  Cc: Andi Kleen, a.p.zijlstra, linux-kernel, akpm, Frederic Weisbecker


* Steven Rostedt <rostedt@goodmis.org> wrote:

> On Thu, 2013-03-28 at 08:45 -0700, Andi Kleen wrote:
> > Andi Kleen <andi@firstfloor.org> writes:
> > 
> > > From: Andi Kleen <ak@linux.intel.com>
> > >
> > > According to Steven R. there is no reason left to not support
> > > function tracing for the perf core. This makes it easier to debug
> > > perf.
> > >
> > > Don't remove -pg for the x86 and generic perf core.
> > 
> > Ping! patch is missing review.
> > 
> 
> This needs an acked-by from either Peter or Frederic.

I think this was mentioned before: there was measurable overhead due to this, so 
that has to be re-measured.

Thanks,

	Ingo

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

end of thread, other threads:[~2013-04-10 12:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-08 23:24 [PATCH] perf: Enable function tracing for perf core Andi Kleen
2013-03-28 15:45 ` Andi Kleen
2013-04-08 15:37   ` Steven Rostedt
2013-04-10 12:56     ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox