summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2012-03-05 11:49:32 +0000
committerCatalin Marinas <catalin.marinas@arm.com>2012-09-17 13:42:17 +0100
commit030896885ade0a17c8638e1ede8d3ca7099f0302 (patch)
tree600a2db0d0e9c785f618d859dbeeae9e57abe4fd /tools
parent5c4233697c3f5cb14eb7a969332e2d60f357f952 (diff)
downloadlinux-030896885ade0a17c8638e1ede8d3ca7099f0302.tar.bz2
arm64: Performance counters support
This patch adds support for the AArch64 performance counters. Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Acked-by: Tony Lindgren <tony@atomide.com> Acked-by: Nicolas Pitre <nico@linaro.org> Acked-by: Olof Johansson <olof@lixom.net> Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/perf.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/perf.h b/tools/perf/perf.h
index f960ccb2edc6..8c36763b6890 100644
--- a/tools/perf/perf.h
+++ b/tools/perf/perf.h
@@ -88,6 +88,12 @@ void get_term_dimensions(struct winsize *ws);
#define CPUINFO_PROC "Processor"
#endif
+#ifdef __aarch64__
+#include "../../arch/arm64/include/asm/unistd.h"
+#define rmb() asm volatile("dmb ld" ::: "memory")
+#define cpu_relax() asm volatile("yield" ::: "memory")
+#endif
+
#ifdef __mips__
#include "../../arch/mips/include/asm/unistd.h"
#define rmb() asm volatile( \