aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-report.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2009-12-28 22:48:34 -0200
committerIngo Molnar <mingo@elte.hu>2009-12-30 11:59:58 +0100
commit71289be7630fb97f2de6bb2e18a50289dc869f9d (patch)
treebf3178c2aa18ad7d05d53213192fb22845ed4b14 /tools/perf/builtin-report.c
parentae99fb2c335ef018520950ddc9692faacab39cf2 (diff)
downloadkernel_samsung_crespo-71289be7630fb97f2de6bb2e18a50289dc869f9d.zip
kernel_samsung_crespo-71289be7630fb97f2de6bb2e18a50289dc869f9d.tar.gz
kernel_samsung_crespo-71289be7630fb97f2de6bb2e18a50289dc869f9d.tar.bz2
perf report: Add --hide-unresolved/-U command line option
Useful to match the 'overhead' column in 'perf report' with the 'baseline' one in 'perf diff'. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> LKML-Reference: <1262047716-23171-3-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r--tools/perf/builtin-report.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index 508934b..4292d7a 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -34,6 +34,7 @@
static char const *input_name = "perf.data";
static int force;
+static bool hide_unresolved;
static int show_threads;
static struct perf_read_values show_threads_values;
@@ -121,7 +122,7 @@ static int process_sample_event(event_t *event, struct perf_session *session)
return -1;
}
- if (al.filtered)
+ if (al.filtered || (hide_unresolved && al.sym == NULL))
return 0;
if (perf_session__add_hist_entry(session, &al, data.callchain, data.period)) {
@@ -342,6 +343,8 @@ static const struct option options[] = {
OPT_STRING('t', "field-separator", &symbol_conf.field_sep, "separator",
"separator for columns, no spaces will be added between "
"columns '.' is reserved."),
+ OPT_BOOLEAN('U', "hide-unresolved", &hide_unresolved,
+ "Only display entries resolved to a symbol"),
OPT_END()
};