]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - tools/perf/builtin-kmem.c
perf machine: Use machine__kernel_map() thoroughly
[karo-tx-linux.git] / tools / perf / builtin-kmem.c
index 23b1faaaa4cc5f83c263ffbc9a0f14733c0dcae2..b122c4e0818ec9cc390e22d4f2509d026d33f194 100644 (file)
@@ -329,7 +329,7 @@ static int build_alloc_func_list(void)
                return -EINVAL;
        }
 
-       kernel_map = machine->vmlinux_maps[MAP__FUNCTION];
+       kernel_map = machine__kernel_map(machine, MAP__FUNCTION)
        if (map__load(kernel_map, NULL) < 0) {
                pr_err("cannot load kernel map\n");
                return -ENOENT;