mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
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>
This commit is contained in:
parent
a4be7c2778
commit
7ced156bb8
1 changed files with 12 additions and 5 deletions
|
@ -485,9 +485,14 @@ static void print_sym_table(void)
|
|||
else
|
||||
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");
|
||||
|
|
Loading…
Reference in a new issue