diff options
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r-- | tools/perf/builtin-report.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index cf1d370f51cb..e50a6b10ee6f 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c | |||
@@ -225,7 +225,7 @@ static int __cmd_report(void) | |||
225 | perf_session__collapse_resort(session); | 225 | perf_session__collapse_resort(session); |
226 | perf_session__output_resort(session, session->events_stats.total); | 226 | perf_session__output_resort(session, session->events_stats.total); |
227 | fprintf(stdout, "# Samples: %ld\n#\n", session->events_stats.total); | 227 | fprintf(stdout, "# Samples: %ld\n#\n", session->events_stats.total); |
228 | perf_session__fprintf_hists(session, stdout); | 228 | perf_session__fprintf_hists(session, NULL, false, stdout); |
229 | if (sort_order == default_sort_order && | 229 | if (sort_order == default_sort_order && |
230 | parent_pattern == default_parent_pattern) | 230 | parent_pattern == default_parent_pattern) |
231 | fprintf(stdout, "#\n# (For a higher level overview, try: perf report --sort comm,dso)\n#\n"); | 231 | fprintf(stdout, "#\n# (For a higher level overview, try: perf report --sort comm,dso)\n#\n"); |
@@ -344,16 +344,6 @@ static const struct option options[] = { | |||
344 | OPT_END() | 344 | OPT_END() |
345 | }; | 345 | }; |
346 | 346 | ||
347 | static void sort_entry__setup_elide(struct sort_entry *self, | ||
348 | struct strlist *list, | ||
349 | const char *list_name, FILE *fp) | ||
350 | { | ||
351 | if (list && strlist__nr_entries(list) == 1) { | ||
352 | fprintf(fp, "# %s: %s\n", list_name, strlist__entry(list, 0)->s); | ||
353 | self->elide = true; | ||
354 | } | ||
355 | } | ||
356 | |||
357 | int cmd_report(int argc, const char **argv, const char *prefix __used) | 347 | int cmd_report(int argc, const char **argv, const char *prefix __used) |
358 | { | 348 | { |
359 | argc = parse_options(argc, argv, options, report_usage, 0); | 349 | argc = parse_options(argc, argv, options, report_usage, 0); |