diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-01-21 10:46:41 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-01-24 10:17:56 -0500 |
commit | d0dd74e853a0a6f37e8061d6d50be41c7034c54c (patch) | |
tree | 1292a98711611cbc4595785ed17605f20a90800c /tools/perf/util/session.c | |
parent | fd78260b5376173faeb17127bd63b3c99a8e8bfb (diff) |
perf tools: Move event__parse_sample to evsel.c
To avoid linking more stuff in the python binding I'm working on, future
csets will make the sample type be taken from the evsel itself, but for
that we need to first have one file per cpu and per sample_type, not a
single perf.data file.
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/session.c')
-rw-r--r-- | tools/perf/util/session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index b58a48a5e5a9..e6a07408669e 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c | |||
@@ -496,7 +496,7 @@ static void flush_sample_queue(struct perf_session *s, | |||
496 | if (iter->timestamp > limit) | 496 | if (iter->timestamp > limit) |
497 | break; | 497 | break; |
498 | 498 | ||
499 | event__parse_sample(iter->event, s, &sample); | 499 | perf_session__parse_sample(s, iter->event, &sample); |
500 | perf_session_deliver_event(s, iter->event, &sample, ops, | 500 | perf_session_deliver_event(s, iter->event, &sample, ops, |
501 | iter->file_offset); | 501 | iter->file_offset); |
502 | 502 | ||
@@ -806,7 +806,7 @@ static int perf_session__process_event(struct perf_session *session, | |||
806 | /* | 806 | /* |
807 | * For all kernel events we get the sample data | 807 | * For all kernel events we get the sample data |
808 | */ | 808 | */ |
809 | event__parse_sample(event, session, &sample); | 809 | perf_session__parse_sample(session, event, &sample); |
810 | 810 | ||
811 | /* Preprocess sample records - precheck callchains */ | 811 | /* Preprocess sample records - precheck callchains */ |
812 | if (perf_session__preprocess_sample(session, event, &sample)) | 812 | if (perf_session__preprocess_sample(session, event, &sample)) |