diff options
-rw-r--r-- | tools/perf/builtin-report.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index a0673eeeae8d..3d58334909a5 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c | |||
@@ -229,10 +229,7 @@ static int perf_evlist__tty_browse_hists(struct perf_evlist *evlist, | |||
229 | 229 | ||
230 | list_for_each_entry(pos, &evlist->entries, node) { | 230 | list_for_each_entry(pos, &evlist->entries, node) { |
231 | struct hists *hists = &pos->hists; | 231 | struct hists *hists = &pos->hists; |
232 | const char *evname = NULL; | 232 | const char *evname = event_name(pos); |
233 | |||
234 | if (rb_first(&hists->entries) != rb_last(&hists->entries)) | ||
235 | evname = event_name(pos); | ||
236 | 233 | ||
237 | hists__fprintf_nr_sample_events(hists, evname, stdout); | 234 | hists__fprintf_nr_sample_events(hists, evname, stdout); |
238 | hists__fprintf(hists, NULL, false, stdout); | 235 | hists__fprintf(hists, NULL, false, stdout); |