]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - tools/perf/Documentation/perf-probe.txt
perf probe: Add glob matching support on --del
[mirror_ubuntu-artful-kernel.git] / tools / perf / Documentation / perf-probe.txt
CommitLineData
595c3649
MH
1perf-probe(1)
2=============
3
4NAME
5----
6perf-probe - Define new dynamic tracepoints
7
8SYNOPSIS
9--------
10[verse]
c937fe20 11'perf probe' [options] --add='PROBE' [...]
c43f9d1e 12or
c937fe20
MH
13'perf probe' [options] PROBE
14or
15'perf probe' [options] --del='[GROUP:]EVENT' [...]
16or
17'perf probe' --list
595c3649
MH
18
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::
c43f9d1e 29--vmlinux=PATH::
595c3649
MH
30 Specify vmlinux path which has debuginfo (Dwarf binary).
31
32-v::
33--verbose::
34 Be more verbose (show parsed arguments, etc).
35
c43f9d1e 36-a::
c937fe20
MH
37--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.
595c3649
MH
47
48PROBE SYNTAX
49------------
50Probe points are defined by following syntax.
51
c43f9d1e 52 "FUNC[+OFFS|:RLN|%return][@SRC]|SRC:ALN [ARG ...]"
595c3649 53
c43f9d1e
MH
54'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.
595c3649
MH
56'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]