diff options
| -rw-r--r-- | tools/perf/util/event.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/perf/util/event.c b/tools/perf/util/event.c index 8202f5ca0483..6715b1938725 100644 --- a/tools/perf/util/event.c +++ b/tools/perf/util/event.c | |||
| @@ -904,8 +904,9 @@ int perf_event__preprocess_sample(const union perf_event *event, | |||
| 904 | al->sym = map__find_symbol(al->map, al->addr, filter); | 904 | al->sym = map__find_symbol(al->map, al->addr, filter); |
| 905 | } | 905 | } |
| 906 | 906 | ||
| 907 | if (symbol_conf.sym_list && al->sym && | 907 | if (symbol_conf.sym_list && |
| 908 | !strlist__has_entry(symbol_conf.sym_list, al->sym->name)) | 908 | (!al->sym || !strlist__has_entry(symbol_conf.sym_list, |
| 909 | al->sym->name))) | ||
| 909 | goto out_filtered; | 910 | goto out_filtered; |
| 910 | 911 | ||
| 911 | return 0; | 912 | return 0; |
