summaryrefslogtreecommitdiffstats
path: root/tools/perf/arch/powerpc/include/arch-tests.h
diff options
context:
space:
mode:
authorRavi Bangoria2016-09-19 08:38:20 +0200
committerArnaldo Carvalho de Melo2016-09-29 16:18:21 +0200
commitd18019a53a07e009899ff6b8dc5ec30f249360d9 (patch)
treed679538c1fa9111ba5d604ad5ef016176c71f278 /tools/perf/arch/powerpc/include/arch-tests.h
parentperf probe: Match linkage name with mangled name (diff)
downloadkernel-qcow2-linux-d18019a53a07e009899ff6b8dc5ec30f249360d9.tar.gz
kernel-qcow2-linux-d18019a53a07e009899ff6b8dc5ec30f249360d9.tar.xz
kernel-qcow2-linux-d18019a53a07e009899ff6b8dc5ec30f249360d9.zip
perf tests: Add dwarf unwind test for powerpc
The user stack dump feature was recently added for powerpc. But there was no test case available to test it. This test works same as on other architectures by preparing a stack frame on the perf test thread and comparing each frame by unwinding it. $ ./perf test 50 50: Test dwarf unwind : Ok User stack dump for powerpc: https://lkml.org/lkml/2016/4/28/482 Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com> Acked-by: Jiri Olsa <jolsa@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Anju T Sudhakar <anju@linux.vnet.ibm.com> Cc: Josh Poimboeuf <jpoimboe@redhat.com> Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Matt Fleming <matt.fleming@intel.com> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Wang Nan <wangnan0@huawei.com> Cc: linuxppc-dev@lists.ozlabs.org Link: http://lkml.kernel.org/r/1474267100-31079-1-git-send-email-ravi.bangoria@linux.vnet.ibm.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/arch/powerpc/include/arch-tests.h')
-rw-r--r--tools/perf/arch/powerpc/include/arch-tests.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/perf/arch/powerpc/include/arch-tests.h b/tools/perf/arch/powerpc/include/arch-tests.h
new file mode 100644
index 000000000000..84d8dedef2ed
--- /dev/null
+++ b/tools/perf/arch/powerpc/include/arch-tests.h
@@ -0,0 +1,13 @@
+#ifndef ARCH_TESTS_H
+#define ARCH_TESTS_H
+
+#ifdef HAVE_DWARF_UNWIND_SUPPORT
+struct thread;
+struct perf_sample;
+int test__arch_unwind_sample(struct perf_sample *sample,
+ struct thread *thread);
+#endif
+
+extern struct test arch_tests[];
+
+#endif