[PATCH] Add support for Xtensa architecture

Max Filippov <[email protected]>
Newsgroups gmane.linux.oprofile
Message-ID <[email protected]>
Signed-off-by: Max Filippov <[email protected]>
---
 libperf_events/operf_utils.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libperf_events/operf_utils.h b/libperf_events/operf_utils.h
index 32954cc..ad7e961 100644
--- a/libperf_events/operf_utils.h
+++ b/libperf_events/operf_utils.h
@@ -190,4 +190,10 @@ void op_release_resources(void);
 #define cpu_relax()    rmb()
 #endif
 
+#ifdef __xtensa__
+#include <asm/unistd.h>
+#define rmb()		asm volatile("" ::: "memory")
+#define cpu_relax()	asm volatile("" ::: "memory")
+#endif
+
 #endif // OPERF_H_
-- 
1.8.1.4


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.