mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 23:47:06 +00:00
perf probe: Update perf probe document
Update perf-probe.txt to suit to current perf-probe command and add some examples. Signed-off-by: Masami Hiramatsu <[email protected]> Cc: systemtap <[email protected]> Cc: DLE <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: K.Prasad <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Ananth N Mavinakayanahalli <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
committed by
Ingo Molnar
parent
f3ab481ca6
commit
ee391de876
@@ -41,7 +41,8 @@ OPTIONS
|
||||
|
||||
-d::
|
||||
--del=::
|
||||
Delete a probe event.
|
||||
Delete probe events. This accepts glob wildcards('*', '?') and character
|
||||
classes(e.g. [a-z], [!A-Z]).
|
||||
|
||||
-l::
|
||||
--list::
|
||||
@@ -50,7 +51,11 @@ OPTIONS
|
||||
-L::
|
||||
--line=::
|
||||
Show source code lines which can be probed. This needs an argument
|
||||
which specifies a range of the source code.
|
||||
which specifies a range of the source code. (see LINE SYNTAX for detail)
|
||||
|
||||
-f::
|
||||
--force::
|
||||
Forcibly add events with existing name.
|
||||
|
||||
PROBE SYNTAX
|
||||
------------
|
||||
@@ -76,6 +81,25 @@ and 'ALN2' is end line number in the file. It is also possible to specify how
|
||||
many lines to show by using 'NUM'.
|
||||
So, "source.c:100-120" shows lines between 100th to l20th in source.c file. And "func:10+20" shows 20 lines from 10th line of func function.
|
||||
|
||||
EXAMPLES
|
||||
--------
|
||||
Display which lines in schedule() can be probed:
|
||||
|
||||
./perf probe --line schedule
|
||||
|
||||
Add a probe on schedule() function 12th line with recording cpu local variable:
|
||||
|
||||
./perf probe schedule:12 cpu
|
||||
or
|
||||
./perf probe --add='schedule:12 cpu'
|
||||
|
||||
this will add one or more probes which has the name start with "schedule".
|
||||
|
||||
Delete all probes on schedule().
|
||||
|
||||
./perf probe --del='schedule*'
|
||||
|
||||
|
||||
SEE ALSO
|
||||
--------
|
||||
linkperf:perf-trace[1], linkperf:perf-record[1]
|
||||
|
||||
Reference in New Issue
Block a user