[PATCH v3] powerpc: Keep track of emulated instructions if debugfs is enabled
Michael Ellerman
michael at ellerman.id.au
Mon May 11 12:32:41 EST 2009
On Fri, 2009-05-08 at 16:15 +0200, Geert Uytterhoeven wrote:
> Counters for the various classes of emulated instructions are available under
> /sys/kernel/debug/powerpc/emulated_instructions (assumed debugfs is mounted on
> /sys/kernel/debug). Optionally (controlled by
> /sys/kernel/debug/powerpc/emulated_instructions/do_warn), rate-limited warnings
> can be printed to the console when instructions are emulated.
>
> Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven at sonycom.com>
> ---
> Tested on ppc64 (ps3) and ppc32 (sequoia) using mfpvr.
>
> v3:
> - add generic unaligned
> - switch from sysfs + sysctl to debugfs. All virtual files now show up under
> /sys/kernel/debug/powerpc/emulated_instructions (assumed debugfs mounted on
> /sys/kernel/debug)
> - enable the printing of rate-limited warnings by writing a non-zero value to
> /sys/kernel/debug/powerpc/emulated_instructions/do_warn
> - switch from per-CPU to system-wide counters
> - always use 32-bit counters (was 64-bit on ppc64)
> - counters are writable, i.e. can be reset (by root)
Nice :)
My only query is whether it needs its own CONFIG option. Some folks
might want other DEBUG_FS things but not this?
cheers
-------------- 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/20090511/9e7dfce5/attachment.pgp>
More information about the Linuxppc-dev
mailing list