[lkml]   [2010]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[PATCH -tip v3&10 11/18] 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 <>
    Cc: Ingo Molnar <>
    Cc: Frederic Weisbecker <>
    Cc: Arnaldo Carvalho de Melo <>
    Cc: Peter Zijlstra <>
    Cc: Paul Mackerras <>
    Cc: Mike Galbraith <>
    Cc: K.Prasad <>

    tools/perf/Documentation/perf-probe.txt | 28 ++++++++++++++++++++++++++--
    1 files changed, 26 insertions(+), 2 deletions(-)

    diff --git a/tools/perf/Documentation/perf-probe.txt b/tools/perf/Documentation/perf-probe.txt
    index 2de3407..5fe63c0 100644
    --- a/tools/perf/Documentation/perf-probe.txt
    +++ b/tools/perf/Documentation/perf-probe.txt
    @@ -41,7 +41,8 @@ OPTIONS

    - Delete a probe event.
    + Delete probe events. This accepts glob wildcards('*', '?') and character
    + classes(e.g. [a-z], [!A-Z]).

    @@ -50,7 +51,11 @@ OPTIONS
    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)
    + Forcibly add events with existing name.

    @@ -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.

    +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*'
    linkperf:perf-trace[1], linkperf:perf-record[1]

    Masami Hiramatsu

    Software Engineer
    Hitachi Computer Products (America), Inc.
    Software Solutions Division


     \ /
      Last update: 2010-02-25 14:33    [W:0.026 / U:56.684 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site