diff options
author | Masami Hiramatsu <mhiramat@redhat.com> | 2009-12-15 10:32:18 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-12-15 14:22:03 -0500 |
commit | af663d75a64d2cc3f18bdb8a29ff4650b9417c16 (patch) | |
tree | fbbad1152eb42f561cc8b186b8bb38aabc1e1d94 /tools/perf/builtin-probe.c | |
parent | bbbb521bc61008b280c72ad6e29a8a7558d3acfa (diff) |
perf probe: Support event name for --add option
Support event name syntax for --add option. This allows
users to specify event name for each new event.
The --add syntax is:
perf probe --add '[EVENT=]SRC:LINE ARGS'
or
perf probe --add '[EVENT=]FUNC[+OFFS|%return|:RLN][@SRC] ARGS'
e.g.
./perf probe --add myprobe1=schedule
Note: currently group name is not supported yet, because it
can cause name-space confliction with other tracepoint/
hw-breakpoint events.
Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Jim Keniston <jkenisto@us.ibm.com>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Frank Ch. Eigler <fche@redhat.com>
Cc: Jason Baron <jbaron@redhat.com>
Cc: K.Prasad <prasad@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Cc: systemtap <systemtap@sources.redhat.com>
Cc: DLE <dle-develop@lists.sourceforge.net>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <20091215153218.17436.84675.stgit@dhcp-100-2-132.bos.redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/builtin-probe.c')
-rw-r--r-- | tools/perf/builtin-probe.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/builtin-probe.c b/tools/perf/builtin-probe.c index 438a7bb101d3..adc0a55acd95 100644 --- a/tools/perf/builtin-probe.c +++ b/tools/perf/builtin-probe.c | |||
@@ -172,13 +172,13 @@ static const struct option options[] = { | |||
172 | opt_del_probe_event), | 172 | opt_del_probe_event), |
173 | OPT_CALLBACK('a', "add", NULL, | 173 | OPT_CALLBACK('a', "add", NULL, |
174 | #ifdef NO_LIBDWARF | 174 | #ifdef NO_LIBDWARF |
175 | "FUNC[+OFFS|%return] [ARG ...]", | 175 | "[EVENT=]FUNC[+OFFS|%return] [ARG ...]", |
176 | #else | 176 | #else |
177 | "FUNC[+OFFS|%return|:RLN][@SRC]|SRC:ALN [ARG ...]", | 177 | "[EVENT=]FUNC[+OFFS|%return|:RLN][@SRC]|SRC:ALN [ARG ...]", |
178 | #endif | 178 | #endif |
179 | "probe point definition, where\n" | 179 | "probe point definition, where\n" |
180 | "\t\tGRP:\tGroup name (optional)\n" | 180 | "\t\tGROUP:\tGroup name (optional)\n" |
181 | "\t\tNAME:\tEvent name\n" | 181 | "\t\tEVENT:\tEvent name\n" |
182 | "\t\tFUNC:\tFunction name\n" | 182 | "\t\tFUNC:\tFunction name\n" |
183 | "\t\tOFFS:\tOffset from function entry (in byte)\n" | 183 | "\t\tOFFS:\tOffset from function entry (in byte)\n" |
184 | "\t\t%return:\tPut the probe at function return\n" | 184 | "\t\t%return:\tPut the probe at function return\n" |