aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2009-08-26 10:51:26 -0400
committerIngo Molnar <mingo@elte.hu>2009-08-26 14:21:45 -0400
commit7ced156bb8bb6363b6ed541871bf19a90273f910 (patch)
tree11ef21aaba1719166818f4a1a1329acbe4c62159 /tools/perf
parenta4be7c2778d1fd8e0a8a5607bec91fa221ab2c91 (diff)
perf top: Show RIP only in verbose mode
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Frederic Weisbecker <fweisbec@gmail.com> LKML-Reference: <20090826145126.GA5255@ghostprotocols.net> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/builtin-top.c17
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");