aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/perf.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/perf/perf.h b/tools/perf/perf.h
index 53bb9550def9..e5148e2b6134 100644
--- a/tools/perf/perf.h
+++ b/tools/perf/perf.h
@@ -25,6 +25,22 @@
25#define cpu_relax() asm volatile("" ::: "memory"); 25#define cpu_relax() asm volatile("" ::: "memory");
26#endif 26#endif
27 27
28#ifdef __sh__
29#include "../../arch/sh/include/asm/unistd.h"
30#if defined(__SH4A__) || defined(__SH5__)
31# define rmb() asm volatile("synco" ::: "memory")
32#else
33# define rmb() asm volatile("" ::: "memory")
34#endif
35#define cpu_relax() asm volatile("" ::: "memory")
36#endif
37
38#ifdef __hppa__
39#include "../../arch/parisc/include/asm/unistd.h"
40#define rmb() asm volatile("" ::: "memory")
41#define cpu_relax() asm volatile("" ::: "memory");
42#endif
43
28#include <time.h> 44#include <time.h>
29#include <unistd.h> 45#include <unistd.h>
30#include <sys/types.h> 46#include <sys/types.h>