[PATCH] powerpc: Keep track of emulated instructions

Michael Ellerman michael at ellerman.id.au
Sat Apr 4 15:37:28 EST 2009


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20090404/5d4eb130/attachment.pgp>


More information about the Linuxppc-dev mailing list