path: root/tools/perf/builtin-probe.c
diff options
authorMasami Hiramatsu <>2009-12-15 10:32:18 -0500
committerIngo Molnar <>2009-12-15 20:22:03 +0100
commitaf663d75a64d2cc3f18bdb8a29ff4650b9417c16 (patch)
treefbbad1152eb42f561cc8b186b8bb38aabc1e1d94 /tools/perf/builtin-probe.c
parentbbbb521bc61008b280c72ad6e29a8a7558d3acfa (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 <> Cc: Paul Mackerras <> Cc: Arnaldo Carvalho de Melo <> Cc: Steven Rostedt <> Cc: Jim Keniston <> Cc: Ananth N Mavinakayanahalli <> Cc: Christoph Hellwig <> Cc: Frank Ch. Eigler <> Cc: Jason Baron <> Cc: K.Prasad <> Cc: Peter Zijlstra <> Cc: Srikar Dronamraju <> Cc: systemtap <> Cc: DLE <> Cc: Frederic Weisbecker <> LKML-Reference: <> Signed-off-by: Ingo Molnar <>
Diffstat (limited to 'tools/perf/builtin-probe.c')
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[] = {
OPT_CALLBACK('a', "add", NULL,
- "FUNC[+OFFS|%return] [ARG ...]",
+ "[EVENT=]FUNC[+OFFS|%return] [ARG ...]",
- "FUNC[+OFFS|%return|:RLN][@SRC]|SRC:ALN [ARG ...]",
+ "[EVENT=]FUNC[+OFFS|%return|:RLN][@SRC]|SRC:ALN [ARG ...]",
"probe point definition, where\n"
- "\t\tGRP:\tGroup name (optional)\n"
- "\t\tNAME:\tEvent name\n"
+ "\t\tGROUP:\tGroup name (optional)\n"
+ "\t\tEVENT:\tEvent name\n"
"\t\tFUNC:\tFunction name\n"
"\t\tOFFS:\tOffset from function entry (in byte)\n"
"\t\t%return:\tPut the probe at function return\n"