diff options
author | Kim Phillips <kim.phillips@arm.com> | 2018-04-10 20:16:24 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-04-12 08:30:37 -0400 |
commit | af72cfb80af5e4cafd8e0b58ac54f222c913aa1b (patch) | |
tree | aaa6a1a3cee9d9308a80936b6a6d7648d1b002f5 | |
parent | 4d3b57da1593c66835d8e3a757e4751b35493fb8 (diff) |
perf tests: Run dwarf unwind test on arm32
Enable the unwind test on arm32:
$ perf test unwind
58: DWARF unwind : Ok
Signed-off-by: Kim Phillips <kim.phillips@arm.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Brian Robbins <brianrob@microsoft.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20180410191624.a3a468670dd4548c66d3d094@arm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/arch/arm/include/arch-tests.h | 12 | ||||
-rw-r--r-- | tools/perf/arch/arm/tests/Build | 2 | ||||
-rw-r--r-- | tools/perf/arch/arm/tests/arch-tests.c | 16 |
3 files changed, 30 insertions, 0 deletions
diff --git a/tools/perf/arch/arm/include/arch-tests.h b/tools/perf/arch/arm/include/arch-tests.h new file mode 100644 index 000000000000..90ec4c8cb880 --- /dev/null +++ b/tools/perf/arch/arm/include/arch-tests.h | |||
@@ -0,0 +1,12 @@ | |||
1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
2 | #ifndef ARCH_TESTS_H | ||
3 | #define ARCH_TESTS_H | ||
4 | |||
5 | #ifdef HAVE_DWARF_UNWIND_SUPPORT | ||
6 | struct thread; | ||
7 | struct perf_sample; | ||
8 | #endif | ||
9 | |||
10 | extern struct test arch_tests[]; | ||
11 | |||
12 | #endif | ||
diff --git a/tools/perf/arch/arm/tests/Build b/tools/perf/arch/arm/tests/Build index b30eff9bcc83..883c57ff0c08 100644 --- a/tools/perf/arch/arm/tests/Build +++ b/tools/perf/arch/arm/tests/Build | |||
@@ -1,2 +1,4 @@ | |||
1 | libperf-y += regs_load.o | 1 | libperf-y += regs_load.o |
2 | libperf-y += dwarf-unwind.o | 2 | libperf-y += dwarf-unwind.o |
3 | |||
4 | libperf-y += arch-tests.o | ||
diff --git a/tools/perf/arch/arm/tests/arch-tests.c b/tools/perf/arch/arm/tests/arch-tests.c new file mode 100644 index 000000000000..5b1543c98022 --- /dev/null +++ b/tools/perf/arch/arm/tests/arch-tests.c | |||
@@ -0,0 +1,16 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
2 | #include <string.h> | ||
3 | #include "tests/tests.h" | ||
4 | #include "arch-tests.h" | ||
5 | |||
6 | struct test arch_tests[] = { | ||
7 | #ifdef HAVE_DWARF_UNWIND_SUPPORT | ||
8 | { | ||
9 | .desc = "DWARF unwind", | ||
10 | .func = test__dwarf_unwind, | ||
11 | }, | ||
12 | #endif | ||
13 | { | ||
14 | .func = NULL, | ||
15 | }, | ||
16 | }; | ||