Skip to contentSkip to conversation

perf tools: add CRIS support

PATCH Applied Rabin Vincent 2 participants 3 messages Feb 19, 2015 – May 16, 2015 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf tools: add CRIS support

Define the required macros to allow perf to be built for CRIS.

---
 tools/perf/perf-sys.h | 7 +++++++
 1 file changed, 7 insertions(+)
tools/perf/perf-sys.h +7 -0
index 6ef6816..bc19550 100644
@@ -122,6 +122,13 @@
 #define cpu_relax()	asm volatile("yield" ::: "memory")
 #endif
 
+#ifdef __cris__
+#define mb()		asm volatile("" ::: "memory")
+#define wmb()		asm volatile("" ::: "memory")
+#define rmb()		asm volatile("" ::: "memory")
+#define CPUINFO_PROC	{"cpu model"}
+#endif
+
 #ifdef __mips__
 #define mb()		asm volatile(					\
 				".set	mips2\n\t"			\
Signature · 1 line
2.1.4
maintainer Applied
#1 lore raw

Em Thu, Feb 19, 2015 at 08:35:26PM +0100, Rabin Vincent escreveu:

Quoted 1 line

Define the required macros to allow perf to be built for CRIS.

Thanks, applied to perf/core

- Arnaldo

Quoted 25 lines
---
 tools/perf/perf-sys.h | 7 +++++++
 1 file changed, 7 insertions(+)
tools/perf/perf-sys.h +7 -0
index 6ef6816..bc19550 100644
@@ -122,6 +122,13 @@
 #define cpu_relax()	asm volatile("yield" ::: "memory")
 #endif
 
+#ifdef __cris__
+#define mb()		asm volatile("" ::: "memory")
+#define wmb()		asm volatile("" ::: "memory")
+#define rmb()		asm volatile("" ::: "memory")
+#define CPUINFO_PROC	{"cpu model"}
+#endif
+
 #ifdef __mips__
 #define mb()		asm volatile(					\
 				".set	mips2\n\t"			\
Signature · 1 line
2.1.4
#2 lore raw
Quoted 4 lines · Arnaldo Carvalho de Melo

Em Thu, Feb 19, 2015 at 08:35:26PM +0100, Rabin Vincent escreveu:

Quoted 1 line

Define the required macros to allow perf to be built for CRIS.

Thanks, applied to perf/core

Thanks, but unless I'm missing something, this patch seems to have neither made it to mainline nor perf/core yet?