From: Franck Bui-Huu <fbui...@gmail.com>

This fix is for kernel images found in the standard paths.

Signed-off-by: Franck Bui-Huu <fbui...@gmail.com>
---
 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 99f9933..fc2b0b4 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)
                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;
                }
-- 
1.7.3.2


-- 
                Franck
--
To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to