Skip to contentSkip to conversation

perf tests: run dwarf unwind test on arm32

PATCH New Kim Phillips 2 participants 2 messages Apr 11, 2018 – Apr 16, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf tests: run dwarf unwind test on arm32

Enable the unwind test on arm32:

$ ./perf test unwind
58: DWARF unwind                                          : Ok
---
 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
new file mode 100644
index 000000000000..90ec4c8cb880
@@ -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
index b30eff9bcc83..883c57ff0c08 100644
@@ -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
new file mode 100644
index 000000000000..5b1543c98022
@@ -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
#1 lore raw

[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
---
 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
similarity index 100%
copy from tools/perf/arch/arm64/include/arch-tests.h
copy to tools/perf/arch/arm/include/arch-tests.h
tools/perf/arch/arm/tests/Build +2 -0
index b30eff9bcc83..883c57ff0c08 100644
@@ -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 renamed from tools/perf/arch/arm64/tests/arch-tests.c +0 -0
similarity index 100%
copy from tools/perf/arch/arm64/tests/arch-tests.c
copy to tools/perf/arch/arm/tests/arch-tests.c