summaryrefslogtreecommitdiffstats
path: root/tools/perf/perf.h
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2012-03-05 12:49:32 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2012-09-17 14:42:17 +0200
commit030896885ade0a17c8638e1ede8d3ca7099f0302 (patch)
tree600a2db0d0e9c785f618d859dbeeae9e57abe4fd /tools/perf/perf.h
parentarm64: Add support for /proc/sys/debug/exception-trace (diff)
downloadlinux-030896885ade0a17c8638e1ede8d3ca7099f0302.tar.xz
linux-030896885ade0a17c8638e1ede8d3ca7099f0302.zip
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/perf/perf.h')
-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( \