summaryrefslogtreecommitdiff
path: root/tools/perf/tests/dwarf-unwind.c
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@redhat.com>2015-11-27 09:21:21 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-11-27 13:14:26 -0300
commit9bdcede563a831f139b5fc872f028ef844a7462e (patch)
tree4c0b4decfb3d3aea2154b66ca3d23cc4de3616d2 /tools/perf/tests/dwarf-unwind.c
parentc4e079494f9258a3d2045779a3c9d6599c773dd9 (diff)
perf test: 'unwind' test should create kernel maps
The 'perf test unwind' is failing because it forgot to create the kernel maps, fix it. After the patch: # perf test unwind 40: Test dwarf unwind : Ok Reported-and-Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Jiri Olsa <jolsa@redhat.com> Cc: David Ahern <dsahern@gmail.com> Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Cc: Namhyung Kim <namhyung@kernel.org> Link: http://lkml.kernel.org/r/20151127082121.GA24503@krava.brq.redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/tests/dwarf-unwind.c')
-rw-r--r--tools/perf/tests/dwarf-unwind.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/tests/dwarf-unwind.c b/tools/perf/tests/dwarf-unwind.c
index b2357e8115a2..3cce13b19cbb 100644
--- a/tools/perf/tests/dwarf-unwind.c
+++ b/tools/perf/tests/dwarf-unwind.c
@@ -173,6 +173,11 @@ int test__dwarf_unwind(int subtest __maybe_unused)
return -1;
}
+ if (machine__create_kernel_maps(machine)) {
+ pr_err("Failed to create kernel maps\n");
+ return -1;
+ }
+
callchain_param.record_mode = CALLCHAIN_DWARF;
if (init_live_machine(machine)) {