perf probe: Show trace event definition
authorMasami Hiramatsu <mhiramat@kernel.org>
Thu, 25 Aug 2016 16:24:27 +0000 (01:24 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 1 Sep 2016 12:44:13 +0000 (09:44 -0300)
commit1c20b1d15473a91e2fccecbcd2809d80ff4b4924
treee602eeb42c3bd158e5c07c0b33b62fd372d1a6b1
parent893c5c798be99bcff5b235402dbd21e5aa03d76e
perf probe: Show trace event definition

Add --definition/-D option for showing the trace-event definition in
stdout. This can be useful in debugging or combined with a shell script.

e.g.
  ----
  # perf probe --definition 'do_sys_open $params'
  p:probe/do_sys_open _text+2261728 dfd=%di:s32 filename=%si:u64 flags=%dx:s32 mode=%cx:u16
  ----

Suggested-and-Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/147214226712.23638.2240534040014013658.stgit@devbox
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Documentation/perf-probe.txt
tools/perf/builtin-probe.c
tools/perf/util/probe-event.c
tools/perf/util/probe-event.h