kernel_optimize_test/arch/powerpc
Michael Ellerman 24a24c85d3 [POWERPC] Add a sd command (spu dump) to xmon to dump spu local store
Add a command to xmon to dump the memory of a spu's local store.
This mimics the 'd' command which dumps regular memory, but does
a little hand holding by taking the user supplied address and
finding that offset in the local store for the specified spu.

This makes it easy for example to look at what was executing on a spu:

1:mon> ss
...
Stopped spu 04 (was running)
...
1:mon> sf 4
Dumping spu fields at address c0000000019e0a00:
...
  problem->spu_npc_RW     = 0x228
...
1:mon> sd 4 0x228
d000080080318228 01a00c021cffc408 4020007f217ff488  |........@ ..!...|

Aha, 01a00c02, which is of course rdch $2,$ch24 !

--

Updated to only do the setjmp goo around the spu access, and not
around prdump because it does its own (via mread).

Also the num variable is now common between sf and sd, so you don't
have to keep typing the spu number in if you're repeating commands
on the same spu.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
2006-12-04 20:40:26 +11:00
..
boot [POWERPC] Cleanup zImage handling of kernel entry with flat device tree 2006-12-04 20:39:34 +11:00
configs [POWERPC] cell: Add oprofile support 2006-12-04 20:40:14 +11:00
kernel [POWERPC] powerpc: Workaround for of_platform without "reg" nor "dcr-reg" 2006-12-04 20:40:17 +11:00
lib [POWERPC] Disallow kprobes on emulate_step and branch_taken 2006-11-01 15:14:12 +11:00
math-emu [POWERPC] ppc math-emu needs -fno-builtin-fabs for math.c and fabs.c 2006-09-26 15:24:35 +10:00
mm [POWERPC] setup_kcore(): Fix incorrect function name in panic() call. 2006-12-04 20:39:39 +11:00
oprofile [POWERPC] cell: Add oprofile support 2006-12-04 20:40:14 +11:00
platforms [POWERPC] cell: hard disable interrupts in power_save() 2006-12-04 20:40:21 +11:00
sysdev [POWERPC] Don't compile arch/powerpc mpc52xx_pic driver for ARCH=ppc 2006-12-04 20:39:37 +11:00
xmon [POWERPC] Add a sd command (spu dump) to xmon to dump spu local store 2006-12-04 20:40:26 +11:00
Kconfig [POWERPC] Remove ioremap64 and fixup_bigphys_addr 2006-12-04 20:39:04 +11:00
Kconfig.debug [POWERPC] print backtrace when entering xmon 2006-09-13 18:39:53 +10:00
Makefile [POWERPC] Create a "wrapper" script and use it in arch/powerpc/boot 2006-09-28 14:30:02 +10:00