From: Rabin Vincent <rabin@rab.in>
To: Arnaldo Carvalho de Melo <acme@kernel.org>,
Ingo Molnar <mingo@redhat.com>, Paul Mackerras <paulus@samba.org>
Cc: linux-kernel@vger.kernel.org, linux-cris-kernel@axis.com,
Rabin Vincent <rabin@rab.in>
Subject: [PATCH] perf tools: add CRIS support
Date: Thu, 19 Feb 2015 20:35:26 +0100 [thread overview]
Message-ID: <1424374526-5366-1-git-send-email-rabin@rab.in> (raw)
Define the required macros to allow perf to be built for CRIS.
Signed-off-by: Rabin Vincent <rabin@rab.in>
---
tools/perf/perf-sys.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tools/perf/perf-sys.h b/tools/perf/perf-sys.h
index 6ef6816..bc19550 100644
--- a/tools/perf/perf-sys.h
+++ b/tools/perf/perf-sys.h
@@ -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" \
--
2.1.4
next reply other threads:[~2015-02-19 19:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-19 19:35 Rabin Vincent [this message]
2015-02-25 21:26 ` Arnaldo Carvalho de Melo
2015-05-16 14:48 ` Rabin Vincent
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1424374526-5366-1-git-send-email-rabin@rab.in \
--to=rabin@rab.in \
--cc=acme@kernel.org \
--cc=linux-cris-kernel@axis.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=paulus@samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®