diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2013-08-08 07:32:22 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-08-12 09:31:10 -0400 |
commit | b8681711271a0124d9495dae2e1ac0616b0ed47a (patch) | |
tree | 2202f50aac66683e3d7ae03692669730056eaa32 /tools | |
parent | 36035f78ae1714a0762a2b38b64942d6dcb6471d (diff) |
perf report: Set the machines symbol filter
Take into use the machines' symbol filter member.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1375961547-30267-4-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/builtin-report.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index d785d89ed226..f06a5a228c7c 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c | |||
@@ -49,7 +49,6 @@ struct perf_report { | |||
49 | bool mem_mode; | 49 | bool mem_mode; |
50 | struct perf_read_values show_threads_values; | 50 | struct perf_read_values show_threads_values; |
51 | const char *pretty_printing_style; | 51 | const char *pretty_printing_style; |
52 | symbol_filter_t annotate_init; | ||
53 | const char *cpu_list; | 52 | const char *cpu_list; |
54 | const char *symbol_filter_str; | 53 | const char *symbol_filter_str; |
55 | float min_percent; | 54 | float min_percent; |
@@ -306,7 +305,7 @@ static int process_sample_event(struct perf_tool *tool, | |||
306 | int ret; | 305 | int ret; |
307 | 306 | ||
308 | if (perf_event__preprocess_sample(event, machine, &al, sample, | 307 | if (perf_event__preprocess_sample(event, machine, &al, sample, |
309 | rep->annotate_init) < 0) { | 308 | machine->symbol_filter) < 0) { |
310 | fprintf(stderr, "problem processing %d event, skipping it.\n", | 309 | fprintf(stderr, "problem processing %d event, skipping it.\n", |
311 | event->header.type); | 310 | event->header.type); |
312 | return -1; | 311 | return -1; |
@@ -924,7 +923,8 @@ repeat: | |||
924 | */ | 923 | */ |
925 | if (use_browser == 1 && sort__has_sym) { | 924 | if (use_browser == 1 && sort__has_sym) { |
926 | symbol_conf.priv_size = sizeof(struct annotation); | 925 | symbol_conf.priv_size = sizeof(struct annotation); |
927 | report.annotate_init = symbol__annotate_init; | 926 | machines__set_symbol_filter(&session->machines, |
927 | symbol__annotate_init); | ||
928 | /* | 928 | /* |
929 | * For searching by name on the "Browse map details". | 929 | * For searching by name on the "Browse map details". |
930 | * providing it only in verbose mode not to bloat too | 930 | * providing it only in verbose mode not to bloat too |