Re: [Linux-ia64] fpswa logging redux

Keith Owens
2002-12-11T23:17:20Z

On Wed, 11 Dec 2002 15:12:18 -0800,
Jesse Barnes <jbarnes@sgi.com> wrote:
>On Thu, Dec 12, 2002 at 10:07:57AM +1100, Keith Owens wrote:
>> I have a couple of Perl scripts for decoding isr and psr. They read
>> hex values (with or without the leading 0x) from stdin and pretty print
>> the result.
>
>It's the isr code field I'm particularly interested in. For fp faults
>and traps, I'd like to decode what type of fault/trap occured and add it
>to the printk, e.g.
>Dec 11 17:11:05 morale kernel: a.out(1901): floating-point assist trap : ip@00000000000752
>Dec 11 17:11:05 morale kernel: a.out(1901): floating-point assist fault : software assist ip@00000000000c01

The general approach is that the kernel prints raw values and user
space decodes them, unless there is some overriding reason to do it in
kernel. IOW, print the isr in the kernel but decode it using the
scripts or equivalent.