lkml.org 
[lkml]   [2015]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 43/47] perf script: Add process_stat/process_stat_interval scripting interface
    Date
    Python and perl scripting code will define those
    callbacks and get stat data.

    Link: http://lkml.kernel.org/n/tip-6802z3siu5f59wdsmhaym3wm@git.kernel.org
    Signed-off-by: Jiri Olsa <jolsa@kernel.org>
    ---
    tools/perf/util/trace-event.h | 4 ++++
    1 file changed, 4 insertions(+)

    diff --git a/tools/perf/util/trace-event.h b/tools/perf/util/trace-event.h
    index d5168f0be4ec..d84147deae58 100644
    --- a/tools/perf/util/trace-event.h
    +++ b/tools/perf/util/trace-event.h
    @@ -63,6 +63,7 @@ int tracing_data_put(struct tracing_data *tdata);
    struct addr_location;

    struct perf_session;
    +struct perf_stat_config;

    struct scripting_ops {
    const char *name;
    @@ -73,6 +74,9 @@ struct scripting_ops {
    struct perf_sample *sample,
    struct perf_evsel *evsel,
    struct addr_location *al);
    + void (*process_stat) (struct perf_stat_config *config,
    + struct perf_evsel *evsel, u64 time);
    + void (*process_stat_interval) (u64 time);
    int (*generate_script) (struct pevent *pevent, const char *outfile);
    };

    --
    2.4.3


    \
     
     \ /
      Last update: 2015-07-21 14:41    [W:4.070 / U:0.468 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site