diff options
author | Srikar Dronamraju <srikar@linux.vnet.ibm.com> | 2012-04-16 08:09:25 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-05-11 12:58:53 -0400 |
commit | 73eff9f56e15598c8399c0b86899fd889b97f085 (patch) | |
tree | 66af5bbb7d09dac1ccbf90737f16ffb23f334e2c /tools/perf/Documentation | |
parent | 225466f1c2d816c33b4341008f45dfdc83a9f0cb (diff) |
perf probe: Detect probe target when m/x options are absent
Options -m and -x explicitly allow tracing of modules / user space
binaries. In absense of these options, check if the first argument can
be used as a target.
perf probe /bin/zsh zfree is equivalent to perf probe -x /bin/zsh zfree.
Suggested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Anton Arapov <anton@redhat.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Jim Keniston <jkenisto@linux.vnet.ibm.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Linux-mm <linux-mm@kvack.org>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20120416120925.30661.40409.sendpatchset@srdronam.in.ibm.com
Signed-off-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
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 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/perf/Documentation/perf-probe.txt b/tools/perf/Documentation/perf-probe.txt index fb673bef4798..b715cb71592b 100644 --- a/tools/perf/Documentation/perf-probe.txt +++ b/tools/perf/Documentation/perf-probe.txt | |||
@@ -104,6 +104,10 @@ OPTIONS | |||
104 | Specify path to the executable or shared library file for user | 104 | Specify path to the executable or shared library file for user |
105 | space tracing. Can also be used with --funcs option. | 105 | space tracing. Can also be used with --funcs option. |
106 | 106 | ||
107 | In absence of -m/-x options, perf probe checks if the first argument after | ||
108 | the options is an absolute path name. If its an absolute path, perf probe | ||
109 | uses it as a target module/target user space binary to probe. | ||
110 | |||
107 | PROBE SYNTAX | 111 | PROBE SYNTAX |
108 | ------------ | 112 | ------------ |
109 | Probe points are defined by following syntax. | 113 | Probe points are defined by following syntax. |
@@ -190,11 +194,11 @@ Delete all probes on schedule(). | |||
190 | 194 | ||
191 | Add probes at zfree() function on /bin/zsh | 195 | Add probes at zfree() function on /bin/zsh |
192 | 196 | ||
193 | ./perf probe -x /bin/zsh zfree | 197 | ./perf probe -x /bin/zsh zfree or ./perf probe /bin/zsh zfree |
194 | 198 | ||
195 | Add probes at malloc() function on libc | 199 | Add probes at malloc() function on libc |
196 | 200 | ||
197 | ./perf probe -x /lib/libc.so.6 malloc | 201 | ./perf probe -x /lib/libc.so.6 malloc or ./perf probe /lib/libc.so.6 malloc |
198 | 202 | ||
199 | SEE ALSO | 203 | SEE ALSO |
200 | -------- | 204 | -------- |