diff options
Diffstat (limited to 'tools/perf/util/event.c')
-rw-r--r-- | tools/perf/util/event.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tools/perf/util/event.c b/tools/perf/util/event.c index 97c479bcb0dc..b7c7f39a8f6d 100644 --- a/tools/perf/util/event.c +++ b/tools/perf/util/event.c | |||
@@ -814,13 +814,14 @@ int perf_event__preprocess_sample(const union perf_event *event, | |||
814 | al->cpu = sample->cpu; | 814 | al->cpu = sample->cpu; |
815 | 815 | ||
816 | if (al->map) { | 816 | if (al->map) { |
817 | struct dso *dso = al->map->dso; | ||
818 | |||
817 | if (symbol_conf.dso_list && | 819 | if (symbol_conf.dso_list && |
818 | (!al->map || !al->map->dso || | 820 | (!dso || !(strlist__has_entry(symbol_conf.dso_list, |
819 | !(strlist__has_entry(symbol_conf.dso_list, | 821 | dso->short_name) || |
820 | al->map->dso->short_name) || | 822 | (dso->short_name != dso->long_name && |
821 | (al->map->dso->short_name != al->map->dso->long_name && | 823 | strlist__has_entry(symbol_conf.dso_list, |
822 | strlist__has_entry(symbol_conf.dso_list, | 824 | dso->long_name))))) |
823 | al->map->dso->long_name))))) | ||
824 | goto out_filtered; | 825 | goto out_filtered; |
825 | 826 | ||
826 | al->sym = map__find_symbol(al->map, al->addr, filter); | 827 | al->sym = map__find_symbol(al->map, al->addr, filter); |