diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/builtin-top.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index 62b55ecab2c6..4002ccb36750 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c | |||
@@ -483,11 +483,16 @@ static void print_sym_table(void) | |||
483 | if (nr_counters == 1) | 483 | if (nr_counters == 1) |
484 | printf(" samples pcnt"); | 484 | printf(" samples pcnt"); |
485 | else | 485 | else |
486 | printf(" weight samples pcnt"); | 486 | printf(" weight samples pcnt"); |
487 | 487 | ||
488 | printf(" RIP kernel function\n" | 488 | if (verbose) |
489 | " ______ _______ _____ ________________ _______________\n\n" | 489 | printf(" RIP "); |
490 | ); | 490 | printf(" kernel function\n"); |
491 | printf(" %s _______ _____", | ||
492 | nr_counters == 1 ? " " : "______"); | ||
493 | if (verbose) | ||
494 | printf(" ________________"); | ||
495 | printf(" _______________\n\n"); | ||
491 | 496 | ||
492 | for (nd = rb_first(&tmp); nd; nd = rb_next(nd)) { | 497 | for (nd = rb_first(&tmp); nd; nd = rb_next(nd)) { |
493 | struct symbol *sym; | 498 | struct symbol *sym; |
@@ -508,7 +513,9 @@ static void print_sym_table(void) | |||
508 | printf("%9.1f %10ld - ", syme->weight, syme->snap_count); | 513 | printf("%9.1f %10ld - ", syme->weight, syme->snap_count); |
509 | 514 | ||
510 | percent_color_fprintf(stdout, "%4.1f%%", pcnt); | 515 | percent_color_fprintf(stdout, "%4.1f%%", pcnt); |
511 | printf(" - %016llx : %s", sym->start, sym->name); | 516 | if (verbose) |
517 | printf(" - %016llx", sym->start); | ||
518 | printf(" : %s", sym->name); | ||
512 | if (sym->module) | 519 | if (sym->module) |
513 | printf("\t[%s]", sym->module->name); | 520 | printf("\t[%s]", sym->module->name); |
514 | printf("\n"); | 521 | printf("\n"); |