diff options
author | 2015-10-25 15:51:35 +0100 | |
---|---|---|
committer | 2015-12-17 15:09:38 -0300 | |
commit | e08a4564e23f8f89a055d717887674f54a9da515 (patch) | |
tree | c232cf3552e28cc08770abf40bb2660ed67411cc /tools/perf/util/stat.h | |
parent | perf tools: Add stat round event synthesize function (diff) | |
download | linux-e08a4564e23f8f89a055d717887674f54a9da515.tar.gz linux-e08a4564e23f8f89a055d717887674f54a9da515.tar.bz2 linux-e08a4564e23f8f89a055d717887674f54a9da515.zip |
perf tools: Add stat events fprintf functions
Introducing the following functions to display the stat events for raw
dump.
perf_event__fprintf_stat
perf_event__fprintf_stat_round
perf_event__fprintf_stat_config
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Tested-by: Kan Liang <kan.liang@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1445784728-21732-20-git-send-email-jolsa@kernel.org
[ s/stat/st/g and s/round/rd/g parameters to fix 'already defined' build error with older distros (e.g. RHEL6.7) ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/stat.h')
-rw-r--r-- | tools/perf/util/stat.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/util/stat.h b/tools/perf/util/stat.h index afe6844e5219..086f4e128d63 100644 --- a/tools/perf/util/stat.h +++ b/tools/perf/util/stat.h @@ -96,4 +96,8 @@ struct perf_session; int perf_event__process_stat_event(struct perf_tool *tool, union perf_event *event, struct perf_session *session); + +size_t perf_event__fprintf_stat(union perf_event *event, FILE *fp); +size_t perf_event__fprintf_stat_round(union perf_event *event, FILE *fp); +size_t perf_event__fprintf_stat_config(union perf_event *event, FILE *fp); #endif |