Skip to contentSkip to conversation

powerpc: Append linux_banner to exception information in xmon.

PATCH Applied Rashmica Gupta 5 participants 5 messages Nov 25, 2015 – Dec 15, 2015 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 powerpc: Append linux_banner to exception information in xmon.

Currently if you are in xmon without an oops etc. to view the kernel version you have to type "d $linux_banner" - not necessarily obvious. As this is useful information, append to the output of "e" command.

Example output:
$mon> e
cpu 0x1: Vector: 0 at [c0000000f879ba80]

    pc: c000000000081718: sysrq_handle_xmon+0x68/0x80
    lr: c000000000081718: sysrq_handle_xmon+0x68/0x80
    sp: c0000000f879bbe0
   msr: 8000000000009033
  current = 0xc0000000f604d5c0
  paca    = 0xc00000000fdc0480	 softe: 0	 irq_happened: 0x01
    pid   = 2467, comm = bash

Linux version 4.4.0-rc2-00008-gc51af91c3ab3-dirty (rashmica@circle) (gcc version 5.1.1 20150629 (GCC) ) #45 SMP Wed Nov 25 10:25:12 AEDT 2015

---
Added example output and word wrapping.

 arch/powerpc/xmon/xmon.c | 2 ++
 1 file changed, 2 insertions(+)
arch/powerpc/xmon/xmon.c +2 -0
index df05bd2fca07..6d3d9d031aea 100644
@@ -1528,6 +1528,8 @@ static void excprint(struct pt_regs *fp)
 
 	if (trap == 0x700)
 		print_bug_trap(fp);
+
+	printf(linux_banner);
 }
 
 static void prregs(struct pt_regs *fp)
Signature · 1 line
2.5.0
#1 lore raw
Quoted 14 lines · Rashmica Gupta

Currently if you are in xmon without an oops etc. to view the kernel version you have to type "d $linux_banner" - not necessarily obvious. As this is useful information, append to the output of "e" command.

Example output:
$mon> e
cpu 0x1: Vector: 0 at [c0000000f879ba80]

    pc: c000000000081718: sysrq_handle_xmon+0x68/0x80
    lr: c000000000081718: sysrq_handle_xmon+0x68/0x80
    sp: c0000000f879bbe0
   msr: 8000000000009033
  current = 0xc0000000f604d5c0
  paca    = 0xc00000000fdc0480	 softe: 0	 irq_happened: 0x01
    pid   = 2467, comm = bash
Quoted 4 lines

Linux version 4.4.0-rc2-00008-gc51af91c3ab3-dirty (rashmica@circle) (gcc version 5.1.1 20150629 (GCC) ) #45 SMP Wed Nov 25 10:25:12 AEDT 2015

You forgot to update the subject line

Quoted 26 lines

---
Added example output and word wrapping.

 arch/powerpc/xmon/xmon.c | 2 ++
 1 file changed, 2 insertions(+)
arch/powerpc/xmon/xmon.c +2 -1
index df05bd2fca07..6d3d9d031aea 100644
@@ -1528,6 +1528,8 @@ static void excprint(struct pt_regs *fp)
 
 	if (trap == 0x700)
 		print_bug_trap(fp);
+
+	printf(linux_banner);
 }
 
 static void prregs(struct pt_regs *fp)
--

2.5.0

_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://lists.ozlabs.org/listinfo/linuxppc-dev

#2 lore raw
Quoted 1 line · Denis Kirjanov

You forgot to update the subject line

That's OK I will fix it up when I apply it.

cheers

Signature · 1 line
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
Acked-by on v2 1/1
#3 lore raw
In reply to Rashmica Gupta
Quoted 14 lines · Rashmica Gupta

Currently if you are in xmon without an oops etc. to view the kernel version you have to type "d $linux_banner" - not necessarily obvious. As this is useful information, append to the output of "e" command.

Example output:
$mon> e
cpu 0x1: Vector: 0 at [c0000000f879ba80]

    pc: c000000000081718: sysrq_handle_xmon+0x68/0x80
    lr: c000000000081718: sysrq_handle_xmon+0x68/0x80
    sp: c0000000f879bbe0
   msr: 8000000000009033
  current = 0xc0000000f604d5c0
  paca    = 0xc00000000fdc0480	 softe: 0	 irq_happened: 0x01
    pid   = 2467, comm = bash
Quoted 4 lines

Linux version 4.4.0-rc2-00008-gc51af91c3ab3-dirty (rashmica@circle) (gcc version 5.1.1 20150629 (GCC) ) #45 SMP Wed Nov 25 10:25:12 AEDT 2015

+10,245,789

If I had a dollar for every time this would have helped *this morning*, I'd at least be buying you enough coffee for it to be problematic.

I'd be keen in it heading to stable@ fixing the actual problem of "people can't actually include the damn kernel version in their bug report" - but maybe somebody else can work out if this is something that's likely to be accepted.

reviewer Applied
#4 lore raw
In reply to Rashmica Gupta
Quoted 14 lines · Rashmica Gupta

Currently if you are in xmon without an oops etc. to view the kernel version you have to type "d $linux_banner" - not necessarily obvious. As this is useful information, append to the output of "e" command.

Example output:
$mon> e
cpu 0x1: Vector: 0 at [c0000000f879ba80]

    pc: c000000000081718: sysrq_handle_xmon+0x68/0x80
    lr: c000000000081718: sysrq_handle_xmon+0x68/0x80
    sp: c0000000f879bbe0
   msr: 8000000000009033
  current = 0xc0000000f604d5c0
  paca    = 0xc00000000fdc0480	 softe: 0	 irq_happened: 0x01
    pid   = 2467, comm = bash
Quoted 4 lines

Linux version 4.4.0-rc2-00008-gc51af91c3ab3-dirty (rashmica@circle) (gcc version 5.1.1 20150629 (GCC) ) #45 SMP Wed Nov 25 10:25:12 AEDT 2015

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/eb925d64604991095b6e9476

cheers