All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] perf tests: run dwarf unwind test on arm32
@ 2018-04-11  0:16 Kim Phillips
  2018-04-16  6:42 ` [tip:perf/urgent] perf tests: Run " tip-bot for Kim Phillips
  0 siblings, 1 reply; 2+ messages in thread
From: Kim Phillips @ 2018-04-11  0:16 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo
  Cc: Peter Zijlstra, Ingo Molnar, Alexander Shishkin, Jiri Olsa,
	Namhyung Kim, Brian Robbins, linux-kernel, linux-perf-users

Enable the unwind test on arm32:

$ ./perf test unwind
58: DWARF unwind                                          : Ok

Signed-off-by: Kim Phillips <kim.phillips@arm.com>
---
 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

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 @@
+/* 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
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 @@
 libperf-y += regs_load.o
 libperf-y += dwarf-unwind.o
+
+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 @@
+// 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,
+	},
+};
-- 
2.17.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [tip:perf/urgent] perf tests: Run dwarf unwind test on arm32
  2018-04-11  0:16 [PATCH] perf tests: run dwarf unwind test on arm32 Kim Phillips
@ 2018-04-16  6:42 ` tip-bot for Kim Phillips
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Kim Phillips @ 2018-04-16  6:42 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: jolsa, mingo, linux-kernel, peterz, hpa, acme, tglx,
	alexander.shishkin, namhyung, kim.phillips, brianrob

Commit-ID:  af72cfb80af5e4cafd8e0b58ac54f222c913aa1b
Gitweb:     https://git.kernel.org/tip/af72cfb80af5e4cafd8e0b58ac54f222c913aa1b
Author:     Kim Phillips <kim.phillips@arm.com>
AuthorDate: Tue, 10 Apr 2018 19:16:24 -0500
Committer:  Arnaldo Carvalho de Melo <acme@redhat.com>
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 <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>
---
 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(+)

diff --git a/tools/perf/arch/arm64/include/arch-tests.h b/tools/perf/arch/arm/include/arch-tests.h
similarity index 100%
copy from tools/perf/arch/arm64/include/arch-tests.h
copy to tools/perf/arch/arm/include/arch-tests.h
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 @@
 libperf-y += regs_load.o
 libperf-y += dwarf-unwind.o
+
+libperf-y += arch-tests.o
diff --git a/tools/perf/arch/arm64/tests/arch-tests.c b/tools/perf/arch/arm/tests/arch-tests.c
similarity index 100%
copy from tools/perf/arch/arm64/tests/arch-tests.c
copy to tools/perf/arch/arm/tests/arch-tests.c

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-04-16  6:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-11  0:16 [PATCH] perf tests: run dwarf unwind test on arm32 Kim Phillips
2018-04-16  6:42 ` [tip:perf/urgent] perf tests: Run " tip-bot for Kim Phillips

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.