]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - tools/perf/util/probe-event.c
perf symbols: Stop using vmlinux files with no symbols
[mv-sheeva.git] / tools / perf / util / probe-event.c
index b71acd6423cbcc09a3e21f7fa9d473edae9c6cda..61191c6cbe7a8d04af83e1af5426029a73bc7b99 100644 (file)
@@ -135,7 +135,7 @@ const char *kernel_get_module_path(const char *module)
                if (dso__load_vmlinux(dso, map, vmlinux_name, NULL) <= 0)
                        return NULL;
        } else {
-               if (dso__load_vmlinux_path(dso, map, NULL) < 0) {
+               if (dso__load_vmlinux_path(dso, map, NULL) <= 0) {
                        pr_debug("Failed to load kernel map.\n");
                        return NULL;
                }