|
@@ -987,7 +987,7 @@ again:
|
|
err = perf_evlist__parse_sample(evlist, event, &sample);
|
|
err = perf_evlist__parse_sample(evlist, event, &sample);
|
|
if (err) {
|
|
if (err) {
|
|
fprintf(trace->output, "Can't parse sample, err = %d, skipping...\n", err);
|
|
fprintf(trace->output, "Can't parse sample, err = %d, skipping...\n", err);
|
|
- continue;
|
|
|
|
|
|
+ goto next_event;
|
|
}
|
|
}
|
|
|
|
|
|
if (trace->base_time == 0)
|
|
if (trace->base_time == 0)
|
|
@@ -1001,18 +1001,20 @@ again:
|
|
evsel = perf_evlist__id2evsel(evlist, sample.id);
|
|
evsel = perf_evlist__id2evsel(evlist, sample.id);
|
|
if (evsel == NULL) {
|
|
if (evsel == NULL) {
|
|
fprintf(trace->output, "Unknown tp ID %" PRIu64 ", skipping...\n", sample.id);
|
|
fprintf(trace->output, "Unknown tp ID %" PRIu64 ", skipping...\n", sample.id);
|
|
- continue;
|
|
|
|
|
|
+ goto next_event;
|
|
}
|
|
}
|
|
|
|
|
|
if (sample.raw_data == NULL) {
|
|
if (sample.raw_data == NULL) {
|
|
fprintf(trace->output, "%s sample with no payload for tid: %d, cpu %d, raw_size=%d, skipping...\n",
|
|
fprintf(trace->output, "%s sample with no payload for tid: %d, cpu %d, raw_size=%d, skipping...\n",
|
|
perf_evsel__name(evsel), sample.tid,
|
|
perf_evsel__name(evsel), sample.tid,
|
|
sample.cpu, sample.raw_size);
|
|
sample.cpu, sample.raw_size);
|
|
- continue;
|
|
|
|
|
|
+ goto next_event;
|
|
}
|
|
}
|
|
|
|
|
|
handler = evsel->handler.func;
|
|
handler = evsel->handler.func;
|
|
handler(trace, evsel, &sample);
|
|
handler(trace, evsel, &sample);
|
|
|
|
+next_event:
|
|
|
|
+ perf_evlist__mmap_consume(evlist, i);
|
|
|
|
|
|
if (done)
|
|
if (done)
|
|
goto out_unmap_evlist;
|
|
goto out_unmap_evlist;
|