lkml.org 
[lkml]   [2015]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] tracing: Increase stack skip on event trigger
On Thu, 26 Mar 2015 09:39:23 +0900
Namhyung Kim <namhyung@kernel.org> wrote:

> When 'stacktrace' trigger is used for event tracing, it should skip 4
> functions instead of 3. Otherwise it'll contain ftrace_raw_event_XXX
> like below:
>
> # echo stacktrace > events/sched/sched_switch/trigger
> # tail trace
> => rcu_gp_kthread
> => kthread
> => ret_from_fork
> ksoftirqd/0-3 [000] d..3 53.343993: <stack trace>
> => ftrace_raw_event_sched_switch
> => __schedule
> => schedule
> => smpboot_thread_fn
> => kthread
> => ret_from_fork
>
> Reported-by: Minchan Kim <minchan@kernel.org>
> Cc: Tom Zanussi <tom.zanussi@linux.intel.com>
> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
> ---

Hmm, this breaks when frame pointers are not enabled.

I may come up with something though.

-- Steve


\
 
 \ /
  Last update: 2015-04-14 00:41    [W:0.053 / U:2.728 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site