diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2016-08-25 12:24:27 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-09-01 08:44:13 -0400 |
commit | 1c20b1d15473a91e2fccecbcd2809d80ff4b4924 (patch) | |
tree | e602eeb42c3bd158e5c07c0b33b62fd372d1a6b1 /tools/perf/Documentation | |
parent | 893c5c798be99bcff5b235402dbd21e5aa03d76e (diff) |
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>
Diffstat (limited to 'tools/perf/Documentation')
-rw-r--r-- | tools/perf/Documentation/perf-probe.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/perf/Documentation/perf-probe.txt b/tools/perf/Documentation/perf-probe.txt index f37d123d5dac..56db4d40d27e 100644 --- a/tools/perf/Documentation/perf-probe.txt +++ b/tools/perf/Documentation/perf-probe.txt | |||
@@ -21,6 +21,8 @@ or | |||
21 | 'perf probe' [options] --vars='PROBEPOINT' | 21 | 'perf probe' [options] --vars='PROBEPOINT' |
22 | or | 22 | or |
23 | 'perf probe' [options] --funcs | 23 | 'perf probe' [options] --funcs |
24 | or | ||
25 | 'perf probe' [options] --definition='PROBE' [...] | ||
24 | 26 | ||
25 | DESCRIPTION | 27 | DESCRIPTION |
26 | ----------- | 28 | ----------- |
@@ -96,6 +98,11 @@ OPTIONS | |||
96 | can also list functions in a user space executable / shared library. | 98 | can also list functions in a user space executable / shared library. |
97 | This also can accept a FILTER rule argument. | 99 | This also can accept a FILTER rule argument. |
98 | 100 | ||
101 | -D:: | ||
102 | --definition=:: | ||
103 | Show trace-event definition converted from given probe-event instead | ||
104 | of write it into tracing/[k,u]probe_events. | ||
105 | |||
99 | --filter=FILTER:: | 106 | --filter=FILTER:: |
100 | (Only for --vars and --funcs) Set filter. FILTER is a combination of glob | 107 | (Only for --vars and --funcs) Set filter. FILTER is a combination of glob |
101 | pattern, see FILTER PATTERN for detail. | 108 | pattern, see FILTER PATTERN for detail. |