diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2014-10-27 15:49:23 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-10-29 11:36:15 -0200 |
commit | a293829df788ae96a174b315010d4b56a10e5114 (patch) | |
tree | b66c9d4d7c82152a034e8ab10f809d91790f4362 /tools/perf/util/session.h | |
parent | cba9b847f649af350809d8ff4119e84b0466c1d9 (diff) | |
download | linux-stable-a293829df788ae96a174b315010d4b56a10e5114.tar.gz linux-stable-a293829df788ae96a174b315010d4b56a10e5114.tar.bz2 linux-stable-a293829df788ae96a174b315010d4b56a10e5114.zip |
perf session: Add perf_session__deliver_synth_event()
Add a function to deliver synthesized events from within a session.
Intel PT decoding works by synthesizing events (primarily branch events)
that can then be consumed by existing tools. This function will be used
to deliver those events.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1414417770-18602-3-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/session.h')
-rw-r--r-- | tools/perf/util/session.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/util/session.h b/tools/perf/util/session.h index d8521ac73a10..dc26ebf60fe4 100644 --- a/tools/perf/util/session.h +++ b/tools/perf/util/session.h @@ -127,6 +127,11 @@ extern volatile int session_done; #define session_done() ACCESS_ONCE(session_done) +int perf_session__deliver_synth_event(struct perf_session *session, + union perf_event *event, + struct perf_sample *sample, + struct perf_tool *tool); + int perf_event__process_id_index(struct perf_tool *tool, union perf_event *event, struct perf_session *session); |