Re: [PATCH] powerpc64s: Print exception vector name alongside the trap number

2018-09-05 Thread Christophe LEROY
Le 18/04/2018 à 11:02, Naveen N. Rao a écrit : Print a small help text indicating the exception vector alongside the trap number to make it easier while analyzing back traces. As an example: Unable to handle kernel paging request for data at address 0x Faulting instruction a

Re: [PATCH] powerpc64s: Print exception vector name alongside the trap number

2018-04-18 Thread Naveen N. Rao
Benjamin Herrenschmidt wrote: On Wed, 2018-04-18 at 14:32 +0530, Naveen N. Rao wrote: +#ifdef CONFIG_PPC_BOOK3S_64 +static char *print_trap(unsigned long trapno) +{ + trapno &= 0xff0; + switch (trapno) { + case 0x100: return "SRESET"; + case 0x200:

Re: [PATCH] powerpc64s: Print exception vector name alongside the trap number

2018-04-18 Thread Benjamin Herrenschmidt
On Wed, 2018-04-18 at 14:32 +0530, Naveen N. Rao wrote: > > +#ifdef CONFIG_PPC_BOOK3S_64 > +static char *print_trap(unsigned long trapno) > +{ > + trapno &= 0xff0; > + switch (trapno) { > + case 0x100: return "SRESET"; > + case 0x200: return "MCE"; > +

[PATCH] powerpc64s: Print exception vector name alongside the trap number

2018-04-18 Thread Naveen N. Rao
Print a small help text indicating the exception vector alongside the trap number to make it easier while analyzing back traces. As an example: Unable to handle kernel paging request for data at address 0x Faulting instruction address: 0xc06e3728 Oops: Kernel access of