projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4e0794
)
perf test: 'unwind' test should create kernel maps
author
Jiri Olsa
<
[email protected]
>
Fri, 27 Nov 2015 08:21:21 +0000
(09:21 +0100)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Fri, 27 Nov 2015 16:14:26 +0000
(13:14 -0300)
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 <
[email protected]
>
Signed-off-by: Jiri Olsa <
[email protected]
>
Cc: David Ahern <
[email protected]
>
Cc: Masami Hiramatsu <
[email protected]
>
Cc: Namhyung Kim <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/tests/dwarf-unwind.c
patch
|
blob
|
history
diff --git
a/tools/perf/tests/dwarf-unwind.c
b/tools/perf/tests/dwarf-unwind.c
index b2357e8115a2ae7696f4aecce95c2a98adbf72ca..3cce13b19cbb677f90e10e69d215a34591061051 100644
(file)
--- 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)) {