perf tests: run dwarf unwind test on arm32
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- tools/perf/arch/arm/include/arch-tests.h | 12 ++++++++++++ tools/perf/arch/arm/tests/Build | 2 ++ tools/perf/arch/arm/tests/arch-tests.c | 16 ++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 tools/perf/arch/arm/include/arch-tests.h create mode 100644 tools/perf/arch/arm/tests/arch-tests.c
tools/perf/arch/arm/include/arch-tests.h new file +12 -0
@@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef ARCH_TESTS_H +#define ARCH_TESTS_H + +#ifdef HAVE_DWARF_UNWIND_SUPPORT +struct thread ; +struct perf_sample ; +#endif + +extern struct test arch_tests[]; + +#endif
tools/perf/arch/arm/tests/Build +2 -0
@@ -1,2 +1,4 @@ libperf-y += regs_load.o libperf-y += dwarf-unwind.o + +libperf-y += arch-tests.o
tools/perf/arch/arm/tests/arch-tests.c new file +16 -0
@@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0 +#include <string.h> +#include "tests/tests.h" +#include "arch-tests.h" + +struct test arch_tests[] = { +#ifdef HAVE_DWARF_UNWIND_SUPPORT + { + .desc = "DWARF unwind", + .func = test__dwarf_unwind, + }, +#endif + { + .func = NULL, + }, +};
Signature · 1 line
2.17.0
tip-bot for Kim Phillips
merge bot[tip:perf/urgent] perf tests: Run dwarf unwind test on arm32
perf tests: Run dwarf unwind test on arm32
Commit-ID: af72cfb80af5e4cafd8e0b58ac54f222c913aa1b Gitweb: https://git.kernel.org/tip/af72cfb80af5e4cafd8e0b58ac54f222c913aa1b Author: Kim Phillips <[email protected]> AuthorDate: Tue, 10 Apr 2018 19:16:24 -0500 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Thu, 12 Apr 2018 09:30:37 -0300
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 <[email protected]>
Cc Alexander Shishkin <[email protected]>
Cc Brian Robbins <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Peter Zijlstra <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
---
tools/perf/arch/{arm64 => arm}/include/arch-tests.h | 0
tools/perf/arch/arm/tests/Build | 2 ++
tools/perf/arch/{arm64 => arm}/tests/arch-tests.c | 0
3 files changed, 2 insertions(+)tools/perf/arch/arm/include/arch-tests.h renamed from tools/perf/arch/arm64/include/arch-tests.h +0 -0
tools/perf/arch/arm/tests/Build +2 -0
@@ -1,2 +1,4 @@ libperf-y += regs_load.o libperf-y += dwarf-unwind.o + +libperf-y += arch-tests.o