diff options
author | Ingo Molnar <mingo@kernel.org> | 2013-10-29 06:23:32 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-10-29 06:23:32 -0400 |
commit | aac898548d04c7bff179b79f805874b0d6f87571 (patch) | |
tree | e8de975fd5de6c95bf4329861a872dbcfe0c7ead /tools/perf/builtin-trace.c | |
parent | 2f5e98802350627ad6f2e3cee4d177059fc0c2f2 (diff) | |
parent | cd65718712469ad844467250e8fad20a5838baae (diff) |
Merge branch 'perf/urgent' into perf/core
Conflicts:
tools/perf/builtin-record.c
tools/perf/builtin-top.c
tools/perf/util/hist.h
Diffstat (limited to 'tools/perf/builtin-trace.c')
-rw-r--r-- | tools/perf/builtin-trace.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c index fa620bc1db69..dc3da654ff12 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c | |||
@@ -1744,7 +1744,7 @@ again: | |||
1744 | err = perf_evlist__parse_sample(evlist, event, &sample); | 1744 | err = perf_evlist__parse_sample(evlist, event, &sample); |
1745 | if (err) { | 1745 | if (err) { |
1746 | fprintf(trace->output, "Can't parse sample, err = %d, skipping...\n", err); | 1746 | fprintf(trace->output, "Can't parse sample, err = %d, skipping...\n", err); |
1747 | continue; | 1747 | goto next_event; |
1748 | } | 1748 | } |
1749 | 1749 | ||
1750 | if (!trace->full_time && trace->base_time == 0) | 1750 | if (!trace->full_time && trace->base_time == 0) |
@@ -1758,18 +1758,20 @@ again: | |||
1758 | evsel = perf_evlist__id2evsel(evlist, sample.id); | 1758 | evsel = perf_evlist__id2evsel(evlist, sample.id); |
1759 | if (evsel == NULL) { | 1759 | if (evsel == NULL) { |
1760 | fprintf(trace->output, "Unknown tp ID %" PRIu64 ", skipping...\n", sample.id); | 1760 | fprintf(trace->output, "Unknown tp ID %" PRIu64 ", skipping...\n", sample.id); |
1761 | continue; | 1761 | goto next_event; |
1762 | } | 1762 | } |
1763 | 1763 | ||
1764 | if (sample.raw_data == NULL) { | 1764 | if (sample.raw_data == NULL) { |
1765 | fprintf(trace->output, "%s sample with no payload for tid: %d, cpu %d, raw_size=%d, skipping...\n", | 1765 | fprintf(trace->output, "%s sample with no payload for tid: %d, cpu %d, raw_size=%d, skipping...\n", |
1766 | perf_evsel__name(evsel), sample.tid, | 1766 | perf_evsel__name(evsel), sample.tid, |
1767 | sample.cpu, sample.raw_size); | 1767 | sample.cpu, sample.raw_size); |
1768 | continue; | 1768 | goto next_event; |
1769 | } | 1769 | } |
1770 | 1770 | ||
1771 | handler = evsel->handler.func; | 1771 | handler = evsel->handler.func; |
1772 | handler(trace, evsel, &sample); | 1772 | handler(trace, evsel, &sample); |
1773 | next_event: | ||
1774 | perf_evlist__mmap_consume(evlist, i); | ||
1773 | 1775 | ||
1774 | if (interrupted) | 1776 | if (interrupted) |
1775 | goto out_disable; | 1777 | goto out_disable; |