diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-08-26 11:51:26 -0300 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-08-26 20:21:45 +0200 |
commit | 7ced156bb8bb6363b6ed541871bf19a90273f910 (patch) | |
tree | 11ef21aaba1719166818f4a1a1329acbe4c62159 /tools/perf | |
parent | a4be7c2778d1fd8e0a8a5607bec91fa221ab2c91 (diff) | |
download | linux-7ced156bb8bb6363b6ed541871bf19a90273f910.tar.gz linux-7ced156bb8bb6363b6ed541871bf19a90273f910.tar.bz2 linux-7ced156bb8bb6363b6ed541871bf19a90273f910.zip |
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.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) if (nr_counters == 1) printf(" samples pcnt"); else - printf(" weight samples pcnt"); + printf(" weight samples pcnt"); - printf(" RIP kernel function\n" - " ______ _______ _____ ________________ _______________\n\n" - ); + if (verbose) + printf(" RIP "); + printf(" kernel function\n"); + printf(" %s _______ _____", + nr_counters == 1 ? " " : "______"); + if (verbose) + printf(" ________________"); + printf(" _______________\n\n"); for (nd = rb_first(&tmp); nd; nd = rb_next(nd)) { struct symbol *sym; @@ -508,7 +513,9 @@ static void print_sym_table(void) printf("%9.1f %10ld - ", syme->weight, syme->snap_count); percent_color_fprintf(stdout, "%4.1f%%", pcnt); - printf(" - %016llx : %s", sym->start, sym->name); + if (verbose) + printf(" - %016llx", sym->start); + printf(" : %s", sym->name); if (sym->module) printf("\t[%s]", sym->module->name); printf("\n"); |