summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/event.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2011-12-02 11:06:37 -0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-12-02 11:06:37 -0200
commit482ad89745f7121020f6cee38aa4e894a4e7d642 (patch)
tree189b3becabfaebcdccf93c27fbde03233610d17f /tools/perf/util/event.h
parente60770a01bd889707faaaeb794f1e278e7160458 (diff)
downloadblackbird-op-linux-482ad89745f7121020f6cee38aa4e894a4e7d642.tar.gz
blackbird-op-linux-482ad89745f7121020f6cee38aa4e894a4e7d642.zip
perf event: Introduce perf_event__fprintf
So that tools like 'perf test' can print the events when in verbose mode, for instance. Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-xnovdqfi25nc48gy6604k7yp@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/event.h')
-rw-r--r--tools/perf/util/event.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h
index d8499e7cf641..0d80201ce844 100644
--- a/tools/perf/util/event.h
+++ b/tools/perf/util/event.h
@@ -2,6 +2,7 @@
#define __PERF_RECORD_H
#include <limits.h>
+#include <stdio.h>
#include "../perf.h"
#include "map.h"
@@ -199,4 +200,9 @@ int perf_event__parse_sample(const union perf_event *event, u64 type,
int sample_size, bool sample_id_all,
struct perf_sample *sample, bool swapped);
+size_t perf_event__fprintf_comm(union perf_event *event, FILE *fp);
+size_t perf_event__fprintf_mmap(union perf_event *event, FILE *fp);
+size_t perf_event__fprintf_task(union perf_event *event, FILE *fp);
+size_t perf_event__fprintf(union perf_event *event, FILE *fp);
+
#endif /* __PERF_RECORD_H */
OpenPOWER on IntegriCloud