X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;ds=sidebyside;f=tools%2Fperf%2Fbuiltin-kmem.c;h=93ce665f976f65a4a1889ba01441bb1f1cce2786;hb=53528695ff6d8b77011bc818407c13e30914a946;hp=23b1faaaa4cc5f83c263ffbc9a0f14733c0dcae2;hpb=485164381c1d663d3be1c9d2c600be0fb80a68ad;p=karo-tx-linux.git diff --git a/tools/perf/builtin-kmem.c b/tools/perf/builtin-kmem.c index 23b1faaaa4cc..93ce665f976f 100644 --- a/tools/perf/builtin-kmem.c +++ b/tools/perf/builtin-kmem.c @@ -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); if (map__load(kernel_map, NULL) < 0) { pr_err("cannot load kernel map\n"); return -ENOENT;