aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2009-05-26 18:46:14 -0400
committerIngo Molnar <mingo@elte.hu>2009-05-27 03:10:37 -0400
commit815e777f913ed54ddb449d2854015c65b4ecbfe3 (patch)
tree1573ca0f1fd06a615fea2b9ae51f6bb1caed6b38
parentaf83632f98aefd1ae4d8ca3c7c285ccf6a7d3956 (diff)
perf report: Show the IP only in --verbose mode
perf: report should show the IP only in --verbose mode [acme@emilia ~]$ perf report | head 4.95 find [k] _spin_lock 2.19 find [k] ext3fs_dirhash [ext3] 1.87 find [k] __rcu_read_lock 1.86 find [k] _atomic_dec_and_lock 1.86 find [.] /lib64/libc-2.5.so: __GI_strlen 1.85 find [k] __kmalloc 1.62 find [.] /lib64/libc-2.5.so: vfprintf 1.59 find [k] __rcu_read_unlock 1.55 find [k] __d_lookup Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: Marcelo Tosatti <mtosatti@redhat.com> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: John Kacur <jkacur@redhat.com> Cc: Steven Rostedt <rostedt@goodmis.org> LKML-Reference: <20090526224614.GK4424@ghostprotocols.net> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--Documentation/perf_counter/builtin-report.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/Documentation/perf_counter/builtin-report.c b/Documentation/perf_counter/builtin-report.c
index ed3da9d61985..2d65d9c12aad 100644
--- a/Documentation/perf_counter/builtin-report.c
+++ b/Documentation/perf_counter/builtin-report.c
@@ -22,6 +22,7 @@ static int input;
22static int show_mask = SHOW_KERNEL | SHOW_USER | SHOW_HV; 22static int show_mask = SHOW_KERNEL | SHOW_USER | SHOW_HV;
23 23
24static int dump_trace = 0; 24static int dump_trace = 0;
25static int verbose;
25 26
26static unsigned long page_size; 27static unsigned long page_size;
27static unsigned long mmap_window = 32; 28static unsigned long mmap_window = 32;
@@ -551,9 +552,12 @@ symhist__fprintf(struct symhist *self, uint64_t total_samples, FILE *fp)
551 else 552 else
552 ret = fprintf(fp, "%12d", self->count); 553 ret = fprintf(fp, "%12d", self->count);
553 554
554 ret += fprintf(fp, "%14s [%c] %#018llx ", 555 ret += fprintf(fp, "%14s [%c] ",
555 thread__name(self->thread, bf, sizeof(bf)), 556 thread__name(self->thread, bf, sizeof(bf)),
556 self->level, (unsigned long long)self->ip); 557 self->level);
558
559 if (verbose)
560 ret += fprintf(fp, "%#018llx ", (unsigned long long)self->ip);
557 561
558 if (self->level != '.') 562 if (self->level != '.')
559 ret += fprintf(fp, "%s\n", 563 ret += fprintf(fp, "%s\n",
@@ -974,6 +978,8 @@ static const char * const report_usage[] = {
974static const struct option options[] = { 978static const struct option options[] = {
975 OPT_STRING('i', "input", &input_name, "file", 979 OPT_STRING('i', "input", &input_name, "file",
976 "input file name"), 980 "input file name"),
981 OPT_BOOLEAN('v', "verbose", &verbose,
982 "be more verbose (show symbol address, etc)"),
977 OPT_BOOLEAN('D', "dump-raw-trace", &dump_trace, 983 OPT_BOOLEAN('D', "dump-raw-trace", &dump_trace,
978 "dump raw trace in ASCII"), 984 "dump raw trace in ASCII"),
979 OPT_END() 985 OPT_END()