]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - tools/perf/perf.h
Merge tag 'perf-urgent-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git...
[~shefty/rdma-dev.git] / tools / perf / perf.h
index 8421c20a25fa5d4e2f141314b714f0412e87319c..c50985eaec41f479d2593dab749d061d3cb03c3d 100644 (file)
@@ -88,6 +88,12 @@ void get_term_dimensions(struct winsize *ws);
 #define CPUINFO_PROC   "Processor"
 #endif
 
 #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(                                   \
 #ifdef __mips__
 #include "../../arch/mips/include/asm/unistd.h"
 #define rmb()          asm volatile(                                   \
@@ -106,7 +112,7 @@ void get_term_dimensions(struct winsize *ws);
 #include <sys/types.h>
 #include <sys/syscall.h>
 
 #include <sys/types.h>
 #include <sys/syscall.h>
 
-#include "../../include/linux/perf_event.h"
+#include "../../include/uapi/linux/perf_event.h"
 #include "util/types.h"
 #include <stdbool.h>
 
 #include "util/types.h"
 #include <stdbool.h>