blob: 9270594e6dfd6d0d8a16549ae80bc8082719ed47 [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 Hiramatsuc43f9d12009-11-03 19:12:13 -050011'perf probe' [options] --add 'PROBE' [--add 'PROBE' ...]
12or
13'perf probe' [options] 'PROBE' ['PROBE' ...]
Masami Hiramatsu595c3642009-10-16 20:08:27 -040014
15
16DESCRIPTION
17-----------
18This command defines dynamic tracepoint events, by symbol and registers
19without debuginfo, or by C expressions (C line numbers, C function names,
20and C local variables) with debuginfo.
21
22
23OPTIONS
24-------
25-k::
Masami Hiramatsuc43f9d12009-11-03 19:12:13 -050026--vmlinux=PATH::
Masami Hiramatsu595c3642009-10-16 20:08:27 -040027 Specify vmlinux path which has debuginfo (Dwarf binary).
28
29-v::
30--verbose::
31 Be more verbose (show parsed arguments, etc).
32
Masami Hiramatsuc43f9d12009-11-03 19:12:13 -050033-a::
34--add::
Masami Hiramatsu595c3642009-10-16 20:08:27 -040035 Define a probe point (see PROBE SYNTAX for detail)
36
37PROBE SYNTAX
38------------
39Probe points are defined by following syntax.
40
Masami Hiramatsuc43f9d12009-11-03 19:12:13 -050041 "FUNC[+OFFS|:RLN|%return][@SRC]|SRC:ALN [ARG ...]"
Masami Hiramatsu595c3642009-10-16 20:08:27 -040042
Masami Hiramatsuc43f9d12009-11-03 19:12:13 -050043'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.
44It 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 -040045'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).
46
47SEE ALSO
48--------
49linkperf:perf-trace[1], linkperf:perf-record[1]