perf-probe.txt (d4bbf7e7759afc172e2bfbc5c416324590049cdd) perf-probe.txt (225466f1c2d816c33b4341008f45dfdc83a9f0cb)
1perf-probe(1)
2=============
3
4NAME
5----
6perf-probe - Define new dynamic tracepoints
7
8SYNOPSIS

--- 63 unchanged lines hidden (view full) ---

72 syntax is same as PROBE SYNTAX, but NO ARGs.
73
74--externs::
75 (Only for --vars) Show external defined variables in addition to local
76 variables.
77
78-F::
79--funcs::
1perf-probe(1)
2=============
3
4NAME
5----
6perf-probe - Define new dynamic tracepoints
7
8SYNOPSIS

--- 63 unchanged lines hidden (view full) ---

72 syntax is same as PROBE SYNTAX, but NO ARGs.
73
74--externs::
75 (Only for --vars) Show external defined variables in addition to local
76 variables.
77
78-F::
79--funcs::
80 Show available functions in given module or kernel.
80 Show available functions in given module or kernel. With -x/--exec,
81 can also list functions in a user space executable / shared library.
81
82--filter=FILTER::
83 (Only for --vars and --funcs) Set filter. FILTER is a combination of glob
84 pattern, see FILTER PATTERN for detail.
85 Default FILTER is "!__k???tab_* & !__crc_*" for --vars, and "!_*"
86 for --funcs.
87 If several filters are specified, only the last filter is used.
88

--- 4 unchanged lines hidden (view full) ---

93-n::
94--dry-run::
95 Dry run. With this option, --add and --del doesn't execute actual
96 adding and removal operations.
97
98--max-probes::
99 Set the maximum number of probe points for an event. Default is 128.
100
82
83--filter=FILTER::
84 (Only for --vars and --funcs) Set filter. FILTER is a combination of glob
85 pattern, see FILTER PATTERN for detail.
86 Default FILTER is "!__k???tab_* & !__crc_*" for --vars, and "!_*"
87 for --funcs.
88 If several filters are specified, only the last filter is used.
89

--- 4 unchanged lines hidden (view full) ---

94-n::
95--dry-run::
96 Dry run. With this option, --add and --del doesn't execute actual
97 adding and removal operations.
98
99--max-probes::
100 Set the maximum number of probe points for an event. Default is 128.
101
102-x::
103--exec=PATH::
104 Specify path to the executable or shared library file for user
105 space tracing. Can also be used with --funcs option.
106
101PROBE SYNTAX
102------------
103Probe points are defined by following syntax.
104
105 1) Define event based on function name
106 [EVENT=]FUNC[@SRC][:RLN|+OFFS|%return|;PTN] [ARG ...]
107
108 2) Define event based on source file with line number

--- 68 unchanged lines hidden (view full) ---

177 ./perf probe 'schedule;update_rq_clock*'
178 or
179 ./perf probe --add='schedule;update_rq_clock*'
180
181Delete all probes on schedule().
182
183 ./perf probe --del='schedule*'
184
107PROBE SYNTAX
108------------
109Probe points are defined by following syntax.
110
111 1) Define event based on function name
112 [EVENT=]FUNC[@SRC][:RLN|+OFFS|%return|;PTN] [ARG ...]
113
114 2) Define event based on source file with line number

--- 68 unchanged lines hidden (view full) ---

183 ./perf probe 'schedule;update_rq_clock*'
184 or
185 ./perf probe --add='schedule;update_rq_clock*'
186
187Delete all probes on schedule().
188
189 ./perf probe --del='schedule*'
190
191Add probes at zfree() function on /bin/zsh
185
192
193 ./perf probe -x /bin/zsh zfree
194
195Add probes at malloc() function on libc
196
197 ./perf probe -x /lib/libc.so.6 malloc
198
186SEE ALSO
187--------
188linkperf:perf-trace[1], linkperf:perf-record[1]
199SEE ALSO
200--------
201linkperf:perf-trace[1], linkperf:perf-record[1]