powerpc: Keep track of emulated instructions
authorGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Mon, 18 May 2009 02:10:05 +0000 (02:10 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 21 May 2009 05:44:26 +0000 (15:44 +1000)
commit80947e7c99c29ce3a78bdc1933b310468455a82f
treed0403ed66d03aa7f6498c65193e1f56def6af13f
parentf312deb4cd0c88196edf6dab192b7d42514398d6
powerpc: Keep track of emulated instructions

If CONFIG_PPC_EMULATED_STATS is enabled, make available counters for the
various classes of emulated instructions 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@sonycom.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/Kconfig.debug
arch/powerpc/include/asm/emulated_ops.h [new file with mode: 0644]
arch/powerpc/kernel/align.c
arch/powerpc/kernel/traps.c