diff options
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r-- | tools/perf/builtin-report.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index 508934b0140a..4292d7afcd60 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c | |||
@@ -34,6 +34,7 @@ | |||
34 | static char const *input_name = "perf.data"; | 34 | static char const *input_name = "perf.data"; |
35 | 35 | ||
36 | static int force; | 36 | static int force; |
37 | static bool hide_unresolved; | ||
37 | 38 | ||
38 | static int show_threads; | 39 | static int show_threads; |
39 | static struct perf_read_values show_threads_values; | 40 | static struct perf_read_values show_threads_values; |
@@ -121,7 +122,7 @@ static int process_sample_event(event_t *event, struct perf_session *session) | |||
121 | return -1; | 122 | return -1; |
122 | } | 123 | } |
123 | 124 | ||
124 | if (al.filtered) | 125 | if (al.filtered || (hide_unresolved && al.sym == NULL)) |
125 | return 0; | 126 | return 0; |
126 | 127 | ||
127 | if (perf_session__add_hist_entry(session, &al, data.callchain, data.period)) { | 128 | if (perf_session__add_hist_entry(session, &al, data.callchain, data.period)) { |
@@ -342,6 +343,8 @@ static const struct option options[] = { | |||
342 | OPT_STRING('t', "field-separator", &symbol_conf.field_sep, "separator", | 343 | OPT_STRING('t', "field-separator", &symbol_conf.field_sep, "separator", |
343 | "separator for columns, no spaces will be added between " | 344 | "separator for columns, no spaces will be added between " |
344 | "columns '.' is reserved."), | 345 | "columns '.' is reserved."), |
346 | OPT_BOOLEAN('U', "hide-unresolved", &hide_unresolved, | ||
347 | "Only display entries resolved to a symbol"), | ||
345 | OPT_END() | 348 | OPT_END() |
346 | }; | 349 | }; |
347 | 350 | ||