diff options
author | Ingo Molnar <mingo@elte.hu> | 2011-05-22 10:07:37 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-05-22 10:10:01 +0200 |
commit | 3ac1bbcf13c56a19927df670f429eb0c3c11f8e5 (patch) | |
tree | 693e2b7f1a9cb0c6ed6d44375e370e1ae08c7ac9 /tools/perf/builtin-top.c | |
parent | a2d063ac216c1618bfc2b4d40b7176adffa63511 (diff) | |
parent | 5538becaec9ca2ff21e7826372941dc46f498487 (diff) |
Merge branch 'perf/core' of git://git.kernel.org/pub/scm/linux/kernel/git/frederic/random-tracing into perf/urgent
Conflicts:
tools/perf/builtin-top.c
Semantic conflict:
util/include/linux/list.h # fix prefetch.h removal fallout
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/builtin-top.c')
-rw-r--r-- | tools/perf/builtin-top.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index ebfc7cf5f63..2d7934e9de3 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c @@ -805,9 +805,14 @@ static void perf_session__mmap_read_idx(struct perf_session *self, int idx) { struct perf_sample sample; union perf_event *event; + int ret; while ((event = perf_evlist__mmap_read(top.evlist, idx)) != NULL) { - perf_session__parse_sample(self, event, &sample); + ret = perf_session__parse_sample(self, event, &sample); + if (ret) { + pr_err("Can't parse sample, err = %d\n", ret); + continue; + } if (event->header.type == PERF_RECORD_SAMPLE) perf_event__process_sample(event, &sample, self); |