On Mon, 11 May 2009, Michael Ellerman wrote:
> 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.uytterhoe...@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?

That's possible. Let's see what the other folks say...

With kind regards,

Geert Uytterhoeven
Software Architect
Techsoft Centre

Technology and Software Centre Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium

Phone:    +32 (0)2 700 8453
Fax:      +32 (0)2 700 8622
E-mail:   geert.uytterhoe...@sonycom.com
Internet: http://www.sony-europe.com/

A division of Sony Europe (Belgium) N.V.
VAT BE 0413.825.160 · RPR Brussels
Fortis · BIC GEBABEBB · IBAN BE41293037680010
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev

Reply via email to