[Crash-utility] Updating PPC

Toshikazu Nakayama nakayama.ts at ncos.nec.co.jp
Fri Oct 28 08:47:02 UTC 2011


Hello Dave,

I attach patches which are updating powerpc based on linux-2.6.27.
Please review them.

Following updates have been done but
some of them could not test yet because of constraints in environment.
(Non-SMP powerpc virtual machine of qemu can only use)

- Get rid of __func__. symbols (patch 0001)
 This patch can delete such symbols from command output like

crash> sym -l | grep __func__ -m 3
c03604ac (r) __func__.21434
c0360500 (r) __func__.21333
c0360508 (r) __func__.21309

- Minor updates (patch 0002/0003/0004)
  ppc_processor_speed() support "ibm,extended-clock-frequency" [Not tested]
  ppc_get_smp_cpus() can return correct cpu numbers on SMP [Not tested]
  "bt", "mach" can handle (tt->flags & IRQSTACKS) [Not tested]

- Enhancement of "bt" (patch 0005/0006/0007/0008)
  Detect exeption frame of linux-2.6 style ("bt" can dispaly '+' parts of below)
  Some functions are cleanuped with ppc64's.
* Link Register of nested exception frame could not be tested.
  This may require the exception in kernel mode like oops but
  can not try kernel dump for a while...

crash> bt 1
PID: 1      TASK: c8818000  CPU: 0   COMMAND: "init"
 #0 [c881da10] schedule at c0356ac4
 #1 [c881da70] schedule_timeout at c0357468
 #2 [c881dab0] do_select at c00c4758
 #3 [c881dd90] core_sys_select at c00c4bd0
 #4 [c881dee0] sys_select at c00c52b0
 #5 [c881df30] ppc_select at c00053c0
 #6 [c881df40] ret_from_syscall at c0011f64
+ syscall  [c01] exception frame:
+R0:  0000008e   R1:  b8c11a60   R2:  48008660   R3:  0000000b
+R4:  b8c11cac   R5:  00000000   R6:  00000000   R7:  b8c11b24
+R8:  00000000   R9:  00000400   R10: 00000000   R11: 0ff24b2c
+R12: 0ff1b8ec   R13: 100207f0
+NIP: 0ff24b40   MSR: 0000d032   OR3: 0000000b   CTR: 0ff24b2c
+LR:  10005314   XER: 00000000   CCR: 24002462   MQ:  00000000
+DAR: 0ffb4cd0 DSISR: 0a000000        Syscall Result: 00000000

Still remaining the parts of PPC update and I have to setup more useful environment
for the tests as soon as possible.

Thanks,
Toshi.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-ppc-handle-link-register.patch
Type: text/x-patch
Size: 6246 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20111028/fee0e8e0/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ppc-update-symbol-table.patch
Type: text/x-patch
Size: 1048 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20111028/fee0e8e0/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-ppc-update-processor-frequency.patch
Type: text/x-patch
Size: 2601 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20111028/fee0e8e0/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-ppc-update-get_smp_cpus.patch
Type: text/x-patch
Size: 1065 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20111028/fee0e8e0/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-ppc-mach-and-bt-can-handle-irq-stack.patch
Type: text/x-patch
Size: 4124 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20111028/fee0e8e0/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-ppc-cleanup-backtrace-loop.patch
Type: text/x-patch
Size: 2755 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20111028/fee0e8e0/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-ppc-update-exception-frame-search.patch
Type: text/x-patch
Size: 3112 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20111028/fee0e8e0/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-ppc-devided-exception-frame-printer-function.patch
Type: text/x-patch
Size: 7479 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20111028/fee0e8e0/attachment-0007.bin>


More information about the Crash-utility mailing list