blob: 8fa6bf99fcb570c334424627df4021671e2e1d97 [file] [log] [blame]
Masami Hiramatsu595c3642009-10-16 20:08:27 -04001perf-probe(1)
2=============
3
4NAME
5----
6perf-probe - Define new dynamic tracepoints
7
8SYNOPSIS
9--------
10[verse]
Masami Hiramatsuc937fe22009-12-08 17:03:30 -050011'perf probe' [options] --add='PROBE' [...]
Masami Hiramatsuc43f9d12009-11-03 19:12:13 -050012or
Masami Hiramatsuc937fe22009-12-08 17:03:30 -050013'perf probe' [options] PROBE
14or
15'perf probe' [options] --del='[GROUP:]EVENT' [...]
16or
17'perf probe' --list
Masami Hiramatsu595c3642009-10-16 20:08:27 -040018
19DESCRIPTION
20-----------
21This command defines dynamic tracepoint events, by symbol and registers
22without debuginfo, or by C expressions (C line numbers, C function names,
23and C local variables) with debuginfo.
24
25
26OPTIONS
27-------
28-k::
Masami Hiramatsuc43f9d12009-11-03 19:12:13 -050029--vmlinux=PATH::
Masami Hiramatsu595c3642009-10-16 20:08:27 -040030 Specify vmlinux path which has debuginfo (Dwarf binary).
31
32-v::
33--verbose::
34 Be more verbose (show parsed arguments, etc).
35
Masami Hiramatsuc43f9d12009-11-03 19:12:13 -050036-a::
Masami Hiramatsuc937fe22009-12-08 17:03:30 -050037--add=::
38 Define a probe event (see PROBE SYNTAX for detail).
39
40-d::
41--del=::
42 Delete a probe event.
43
44-l::
45--list::
46 List up current probe events.
Masami Hiramatsu595c3642009-10-16 20:08:27 -040047
48PROBE SYNTAX
49------------
50Probe points are defined by following syntax.
51
Masami Hiramatsuc43f9d12009-11-03 19:12:13 -050052 "FUNC[+OFFS|:RLN|%return][@SRC]|SRC:ALN [ARG ...]"
Masami Hiramatsu595c3642009-10-16 20:08:27 -040053
Masami Hiramatsuc43f9d12009-11-03 19:12:13 -050054'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.
55It 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.
Masami Hiramatsu595c3642009-10-16 20:08:27 -040056'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).
57
58SEE ALSO
59--------
60linkperf:perf-trace[1], linkperf:perf-record[1]