summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/session.h
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2013-08-06 03:41:33 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-08-07 22:35:37 +0200
commite30b88a77cc8ae2a1febf268c8443a6cdd696417 (patch)
treecd1ef58466dfca0c7623478e6c8abada64c132a2 /tools/perf/util/session.h
parentperf annotate browser: Fix typo (diff)
downloadlinux-e30b88a77cc8ae2a1febf268c8443a6cdd696417.tar.xz
linux-e30b88a77cc8ae2a1febf268c8443a6cdd696417.zip
perf session: Export queue_event function
Taking a lesson from perf-trace and bringing in control of event processing to perf-kvm-stat-live: parse the sample to get access the time leaving just the need to queue it to the ordered samples list. For that the queue_event function needs to be exported. Unexport perf_session__process_event. Signed-off-by: David Ahern <dsahern@gmail.com> Reviewed-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Runzhen Wang <runzhen@linux.vnet.ibm.com> Cc: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> Link: http://lkml.kernel.org/r/1375753297-69645-2-git-send-email-dsahern@gmail.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.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/perf/util/session.h b/tools/perf/util/session.h
index 9818fc25a62f..8bed17e64a96 100644
--- a/tools/perf/util/session.h
+++ b/tools/perf/util/session.h
@@ -56,10 +56,8 @@ int __perf_session__process_events(struct perf_session *self,
int perf_session__process_events(struct perf_session *self,
struct perf_tool *tool);
-int perf_session__process_event(struct perf_session *session,
- union perf_event *event,
- struct perf_tool *tool,
- u64 file_offset);
+int perf_session_queue_event(struct perf_session *s, union perf_event *event,
+ struct perf_sample *sample, u64 file_offset);
void perf_tool__fill_defaults(struct perf_tool *tool);