From e7188347a74a3be21662ff09fec303bdeb1b016a Mon Sep 17 00:00:00 2001 From: Masami Hiramatsu Date: Thu, 25 Feb 2010 08:35:19 -0500 Subject: [PATCH] --- yaml --- r: 185903 b: refs/heads/master c: ee391de876ae4272926b8632be04ed4a460321e3 h: refs/heads/master i: 185901: d9913d1a971cfad670fd60fedafcc5f351dc5273 185899: 464c9a7b3f524ec55135305241f42cf2f4e9214d 185895: aafd89bb068b7a1ff8d5b19c78058a7f6bbdb360 185887: 21d9cc13ea292c4c6837e2c6433371a03b91fc99 v: v3 --- [refs] | 2 +- trunk/tools/perf/Documentation/perf-probe.txt | 28 +++++++++++++++++-- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 4bd733270130..90c77ff7859b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f3ab481ca6ffe5e272c8501317bea726f9a83959 +refs/heads/master: ee391de876ae4272926b8632be04ed4a460321e3 diff --git a/trunk/tools/perf/Documentation/perf-probe.txt b/trunk/tools/perf/Documentation/perf-probe.txt index 2de34075f6a4..5fe63c0ca80c 100644 --- a/trunk/tools/perf/Documentation/perf-probe.txt +++ b/trunk/tools/perf/Documentation/perf-probe.txt @@ -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]