diff --git a/tools/perf/perf.h b/tools/perf/perf.h index 2c340e7da458e4fa53b2c08914f1acd976fa90c5..8a68ad39e1b67a286eb6862eaa16188052e082a3 100644 --- a/tools/perf/perf.h +++ b/tools/perf/perf.h @@ -98,6 +98,12 @@ void get_term_dimensions(struct winsize *ws); #define CPUINFO_PROC "cpu model" #endif +#ifdef __arc__ +#define rmb() asm volatile("" ::: "memory") +#define cpu_relax() rmb() +#define CPUINFO_PROC "Processor" +#endif + #include #include #include