From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keith Owens Date: Wed, 11 Dec 2002 23:17:20 +0000 Subject: Re: [Linux-ia64] fpswa logging redux Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-ia64@vger.kernel.org On Wed, 11 Dec 2002 15:12:18 -0800, Jesse Barnes 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.