Skip to content

Commit c43f9d1

Browse files
Masami HiramatsuIngo Molnar
authored andcommitted
perf/probes: Update Documentation/perf-probe.txt
Update Documentation/perf-probe.txt accoding to recent syntax changes. Signed-off-by: Masami Hiramatsu <[email protected]> Acked-by: Frederic Weisbecker <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: Jim Keniston <[email protected]> Cc: Ananth N Mavinakayanahalli <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Frank Ch. Eigler <[email protected]> Cc: Jason Baron <[email protected]> Cc: K.Prasad <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Srikar Dronamraju <[email protected]> LKML-Reference: <20091104001212.3454.19415.stgit@harusame> Signed-off-by: Ingo Molnar <[email protected]>
1 parent 12e4db4 commit c43f9d1

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

tools/perf/Documentation/perf-probe.txt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ perf-probe - Define new dynamic tracepoints
88
SYNOPSIS
99
--------
1010
[verse]
11-
'perf probe' [-k <file>] -P 'PROBE' [-P 'PROBE' ...]
11+
'perf probe' [options] --add 'PROBE' [--add 'PROBE' ...]
12+
or
13+
'perf probe' [options] 'PROBE' ['PROBE' ...]
1214

1315

1416
DESCRIPTION
@@ -21,26 +23,25 @@ and C local variables) with debuginfo.
2123
OPTIONS
2224
-------
2325
-k::
24-
--vmlinux::
26+
--vmlinux=PATH::
2527
Specify vmlinux path which has debuginfo (Dwarf binary).
2628

2729
-v::
2830
--verbose::
2931
Be more verbose (show parsed arguments, etc).
3032

31-
-P::
32-
--probe::
33+
-a::
34+
--add::
3335
Define a probe point (see PROBE SYNTAX for detail)
3436

3537
PROBE SYNTAX
3638
------------
3739
Probe points are defined by following syntax.
3840

39-
"TYPE:[GRP/]NAME FUNC[+OFFS][@SRC]|@SRC:LINE [ARG ...]"
41+
"FUNC[+OFFS|:RLN|%return][@SRC]|SRC:ALN [ARG ...]"
4042

41-
'TYPE' specifies the type of probe point, you can use either "p" (kprobe) or "r" (kretprobe) for 'TYPE'. 'GRP' specifies the group name of this probe, and 'NAME' specifies the event name. If 'GRP' is omitted, "kprobes" is used for its group name.
42-
'FUNC' and 'OFFS' specifies function and offset (in byte) where probe will be put. In addition, 'SRC' specifies a source file which has that function (this is mainly for inline functions).
43-
You can specify a probe point by the source line number by using '@SRC:LINE' syntax, where 'SRC' is the source file path and 'LINE' is the line number.
43+
'FUNC' specifies a probed function name, and it may have one of the following options; '+OFFS' is the offset from function entry address in bytes, 'RLN' is the relative-line number from function entry line, and '%return' means that it probes function return. In addition, 'SRC' specifies a source file which has that function.
44+
It is also possible to specify a probe point by the source line number by using 'SRC:ALN' syntax, where 'SRC' is the source file path and 'ALN' is the line number.
4445
'ARG' specifies the arguments of this probe point. You can use the name of local variable, or kprobe-tracer argument format (e.g. $retval, %ax, etc).
4546

4647
SEE ALSO

0 commit comments

Comments
 (0)