perf probe: Show accessible local variables
Add -V (--vars) option for listing accessible local variables at given probe point. This will help finding which local variables are available for event arguments. e.g.) # perf probe -V call_timer_fn:23 Available variables at call_timer_fn:23 @<run_timer_softirq+345> function_type* fn int preempt_count long unsigned int data struct list_head work_list struct list_head* head struct timer_list* timer struct tvec_base* base Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> Cc: Ingo Molnar <mingo@elte.hu> Cc: Frederic Weisbecker <fweisbec@gmail.com> LKML-Reference: <20101021101323.3542.40282.stgit@ltc236.sdl.hitachi.co.jp> Signed-off-by:Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Signed-off-by:
Arnaldo Carvalho de Melo <acme@redhat.com>
Showing
- tools/perf/Documentation/perf-probe.txt 7 additions, 0 deletionstools/perf/Documentation/perf-probe.txt
- tools/perf/builtin-probe.c 54 additions, 7 deletionstools/perf/builtin-probe.c
- tools/perf/util/probe-event.c 72 additions, 0 deletionstools/perf/util/probe-event.c
- tools/perf/util/probe-event.h 8 additions, 0 deletionstools/perf/util/probe-event.h
- tools/perf/util/probe-finder.c 317 additions, 95 deletionstools/perf/util/probe-finder.c
- tools/perf/util/probe-finder.h 22 additions, 3 deletionstools/perf/util/probe-finder.h
Please register or sign in to comment