perf tools: Check recorded kernel version when finding vmlinux
[deliverable/linux.git] / tools / perf / builtin-annotate.c
index c0464dc380576625ee50cf5c98bd82cfc8c790c7..d4da6929597fa5fa5cafd049c74cffb2fd77ba5c 100644 (file)
@@ -345,7 +345,7 @@ int cmd_annotate(int argc, const char **argv, const char *prefix __maybe_unused)
        symbol_conf.priv_size = sizeof(struct annotation);
        symbol_conf.try_vmlinux_path = true;
 
-       ret = symbol__init();
+       ret = symbol__init(&annotate.session->header.env);
        if (ret < 0)
                goto out_delete;
 
This page took 0.026531 seconds and 5 git commands to generate.