diff options
author | Will Deacon <will.deacon@arm.com> | 2012-03-05 11:49:32 +0000 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2012-09-17 13:42:17 +0100 |
commit | 030896885ade0a17c8638e1ede8d3ca7099f0302 (patch) | |
tree | 600a2db0d0e9c785f618d859dbeeae9e57abe4fd /tools | |
parent | 5c4233697c3f5cb14eb7a969332e2d60f357f952 (diff) | |
download | kernel_goldelico_gta04-030896885ade0a17c8638e1ede8d3ca7099f0302.zip kernel_goldelico_gta04-030896885ade0a17c8638e1ede8d3ca7099f0302.tar.gz kernel_goldelico_gta04-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.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/perf.h b/tools/perf/perf.h index f960ccb..8c36763 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( \ |