perf, ARC: Enable building perf tools for ARC
authorVineet Gupta <vgupta@synopsys.com>
Fri, 18 Jan 2013 09:42:24 +0000 (15:12 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Fri, 15 Feb 2013 17:46:08 +0000 (23:16 +0530)
Although with uClibc there's more we need to do

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
tools/perf/perf.h

index 2c340e7da458e4fa53b2c08914f1acd976fa90c5..8a68ad39e1b67a286eb6862eaa16188052e082a3 100644 (file)
@@ -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 <time.h>
 #include <unistd.h>
 #include <sys/types.h>