Subject: Re: [PATCH] powerpc: Keep track of emulated instructions

From: Michael Ellerman <[email-masked]>
Date: Sat, 04 Apr 2009 15:37:28 +1100

On Fri, 2009-04-03 at 14:08 +0200, Geert Uytterhoeven wrote:
> 	Hi Ben, Kumar,
> 
> Finally (after ca. 1.5 years), he're an updated version of my patch to keep
> track of emulated instructions.  In the light of Kumar's `Emulate enough of SPE
> instructions to make gcc happy' patch, he probably also wants to keep track of
> the actual runtime overhead.
> 
> Changes since last version:
>   - arch/powerpc/kernel/sysfs.c is now compiled on ppc32, so we can provide
>     counters in sysfs on ppc32, too,
>   - WARN_EMULATED() is a no-op if CONFIG_SYSCTL is disabled,
>   - Add warnings for altivec,
>   - Add warnings for recently introduced emulation of vsx and isel
>     instructions.

You don't count instructions that fall through to the bottom of
fix_alignment()?

cheers

-- 
Michael Ellerman
OzLabs, IBM Australia Development Lab

wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person