diff options
Diffstat (limited to 'tools/perf/util/annotate.c')
-rw-r--r-- | tools/perf/util/annotate.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 05d15629afd0..6316fa96d984 100644 --- a/tools/perf/util/annotate.c +++ b/tools/perf/util/annotate.c | |||
@@ -2056,10 +2056,12 @@ int symbol__annotate_printf(struct symbol *sym, struct map *map, | |||
2056 | evsel_name = buf; | 2056 | evsel_name = buf; |
2057 | } | 2057 | } |
2058 | 2058 | ||
2059 | graph_dotted_len = printf(" %-*.*s| Source code & Disassembly of %s for %s (%" PRIu64 " samples)\n", | 2059 | graph_dotted_len = printf(" %-*.*s| Source code & Disassembly of %s for %s (%" PRIu64 " samples, " |
2060 | "percent: %s)\n", | ||
2060 | width, width, symbol_conf.show_total_period ? "Period" : | 2061 | width, width, symbol_conf.show_total_period ? "Period" : |
2061 | symbol_conf.show_nr_samples ? "Samples" : "Percent", | 2062 | symbol_conf.show_nr_samples ? "Samples" : "Percent", |
2062 | d_filename, evsel_name, h->nr_samples); | 2063 | d_filename, evsel_name, h->nr_samples, |
2064 | percent_type_str(opts->percent_type)); | ||
2063 | 2065 | ||
2064 | printf("%-*.*s----\n", | 2066 | printf("%-*.*s----\n", |
2065 | graph_dotted_len, graph_dotted_len, graph_dotted_line); | 2067 | graph_dotted_len, graph_dotted_len, graph_dotted_line); |
@@ -2434,7 +2436,8 @@ int symbol__tty_annotate2(struct symbol *sym, struct map *map, | |||
2434 | } | 2436 | } |
2435 | 2437 | ||
2436 | hists__scnprintf_title(hists, buf, sizeof(buf)); | 2438 | hists__scnprintf_title(hists, buf, sizeof(buf)); |
2437 | fprintf(stdout, "%s\n%s() %s\n", buf, sym->name, dso->long_name); | 2439 | fprintf(stdout, "%s, [percent: %s]\n%s() %s\n", |
2440 | buf, percent_type_str(opts->percent_type), sym->name, dso->long_name); | ||
2438 | symbol__annotate_fprintf2(sym, stdout, opts); | 2441 | symbol__annotate_fprintf2(sym, stdout, opts); |
2439 | 2442 | ||
2440 | annotated_source__purge(symbol__annotation(sym)->src); | 2443 | annotated_source__purge(symbol__annotation(sym)->src); |