From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753665AbbBYV0i (ORCPT ); Wed, 25 Feb 2015 16:26:38 -0500 Received: from mail.kernel.org ([198.145.29.136]:44490 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753423AbbBYV0g (ORCPT ); Wed, 25 Feb 2015 16:26:36 -0500 Date: Wed, 25 Feb 2015 18:26:31 -0300 From: Arnaldo Carvalho de Melo To: Rabin Vincent Cc: Ingo Molnar , Paul Mackerras , linux-kernel@vger.kernel.org, linux-cris-kernel@axis.com Subject: Re: [PATCH] perf tools: add CRIS support Message-ID: <20150225212631.GK18705@kernel.org> References: <1424374526-5366-1-git-send-email-rabin@rab.in> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1424374526-5366-1-git-send-email-rabin@rab.in> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Thu, Feb 19, 2015 at 08:35:26PM +0100, Rabin Vincent escreveu: > Define the required macros to allow perf to be built for CRIS. Thanks, applied to perf/core - Arnaldo > Signed-off-by: Rabin Vincent > --- > 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