perf tools: Check recorded kernel version when finding vmlinux
[deliverable/linux.git] / tools / perf / builtin-trace.c
index 8a83bd83532752f494ae608ae22f2234f5ea000f..d080b9cf0354fa2b20bd13aadccaf12480cebd77 100644 (file)
@@ -1411,7 +1411,7 @@ static int trace__tool_process(struct perf_tool *tool,
 
 static int trace__symbols_init(struct trace *trace, struct perf_evlist *evlist)
 {
-       int err = symbol__init();
+       int err = symbol__init(NULL);
 
        if (err)
                return err;
@@ -2245,7 +2245,7 @@ static int trace__replay(struct trace *trace)
        if (session == NULL)
                return -ENOMEM;
 
-       if (symbol__init() < 0)
+       if (symbol__init(&session->header.env) < 0)
                goto out;
 
        trace->host = &session->machines.host;
This page took 0.032238 seconds and 5 git commands to generate.