From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <18244.42181.426804.662877@cargo.ozlabs.ibm.com> Date: Thu, 22 Nov 2007 08:36:05 +1100 From: Paul Mackerras To: Geert Uytterhoeven Subject: Re: [PATCH] [POWERPC] Emulate isel (Integer Select) instruction In-Reply-To: References: <20071120175416.GA4389@loki.buserror.net> Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Geert Uytterhoeven writes: > +#define WARN_EMULATE(type) \ > + do { \ > + static unsigned int count; \ > + if (count++ < 10) \ > + pr_warning("%s used emulated %s instruction\n", \ > + current->comm, type); \ Thinking about this a bit more, if an instruction gets emulated 10 times then I don't care, since it's probably only cost me 10 microseconds or so. If it gets emulated a million times then I might want to look at it. So in fact this approach doesn't give me the information I need to know whether there is a real problem or not. Paul.