diff options
author | Franck Bui-Huu <fbuihuu@gmail.com> | 2010-12-10 08:07:14 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-12-16 06:41:45 -0500 |
commit | c3a34e06db25a8c74e196517732d65cdb56028ec (patch) | |
tree | 8b81edffc143923a2866c9c6dc96f392723e0841 /tools/perf | |
parent | fd930ff91e7fda18f7790984a98489a85edb7c71 (diff) |
perf symbols: Stop using vmlinux files with no symbols
Fail if the kernel image contains no symbol, allowing using other images
in the vmlinux search path that may have a usable symtab.
Acked-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: 2nddept-manager@sdl.hitachi.co.jp
Cc: Francis Moreau <francis.moro@gmail.com>
Cc: Franck Bui-Huu <vagabon.xyz@gmail.com>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
LPU-Reference: <m3d3p9ydx9.fsf_-_@gmail.com>
Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/util/probe-event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c index b71acd6423cb..61191c6cbe7a 100644 --- a/tools/perf/util/probe-event.c +++ b/tools/perf/util/probe-event.c | |||
@@ -135,7 +135,7 @@ const char *kernel_get_module_path(const char *module) | |||
135 | if (dso__load_vmlinux(dso, map, vmlinux_name, NULL) <= 0) | 135 | if (dso__load_vmlinux(dso, map, vmlinux_name, NULL) <= 0) |
136 | return NULL; | 136 | return NULL; |
137 | } else { | 137 | } else { |
138 | if (dso__load_vmlinux_path(dso, map, NULL) < 0) { | 138 | if (dso__load_vmlinux_path(dso, map, NULL) <= 0) { |
139 | pr_debug("Failed to load kernel map.\n"); | 139 | pr_debug("Failed to load kernel map.\n"); |
140 | return NULL; | 140 | return NULL; |
141 | } | 141 | } |