diff options
Diffstat (limited to 'tools/perf/util/symbol.c')
-rw-r--r-- | tools/perf/util/symbol.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c index cd1dcc45049b..48c38791d61b 100644 --- a/tools/perf/util/symbol.c +++ b/tools/perf/util/symbol.c | |||
@@ -1215,7 +1215,7 @@ static int dso__load_kernel_sym(struct dso *dso, struct map *map, | |||
1215 | goto do_kallsyms; | 1215 | goto do_kallsyms; |
1216 | } | 1216 | } |
1217 | 1217 | ||
1218 | if (symbol_conf.vmlinux_name != NULL) { | 1218 | if (!symbol_conf.ignore_vmlinux && symbol_conf.vmlinux_name != NULL) { |
1219 | err = dso__load_vmlinux(dso, map, | 1219 | err = dso__load_vmlinux(dso, map, |
1220 | symbol_conf.vmlinux_name, filter); | 1220 | symbol_conf.vmlinux_name, filter); |
1221 | if (err > 0) { | 1221 | if (err > 0) { |
@@ -1227,7 +1227,7 @@ static int dso__load_kernel_sym(struct dso *dso, struct map *map, | |||
1227 | return err; | 1227 | return err; |
1228 | } | 1228 | } |
1229 | 1229 | ||
1230 | if (vmlinux_path != NULL) { | 1230 | if (!symbol_conf.ignore_vmlinux && vmlinux_path != NULL) { |
1231 | err = dso__load_vmlinux_path(dso, map, filter); | 1231 | err = dso__load_vmlinux_path(dso, map, filter); |
1232 | if (err > 0) | 1232 | if (err > 0) |
1233 | return err; | 1233 | return err; |