NAME
spuctx - shows complete info about a SPU context
SYNOPSIS
spuctx [ID | PID | CTXADDR] ...
DESCRIPTION
This command shows the fields of spu and spu_context structs for a
SPU context, including debug info specially saved by kdump after a
crash.
By default, it shows info about all the contexts created by the
system, including ones in the runqueue. To specify the contexts of
interest, the PID of the controller task, ID of the SPU which the
context is bound to or the address of spu_context struct can be used
as parameters.
EXAMPLES
Show info about contexts bound to SPUs 0 and 7, and the one
controlled by thread whose PID is 1524:
crash> spuctx 0 7 1524
Dumping context fields for spu_context c00000003dcbdd80:
state = 0
prio = 120
local_store = 0xc000000039055840
rq = 0xc00000003dcbe720
node = 0
number = 0
pid = 1524
name = spe
slb_replace = 0
mm = 0xc0000000005dd700
timestamp = 0x10000566f
class_0_pending = 0
problem = 0xd000080080210000
priv2 = 0xd000080080230000
flags = 0
saved_mfc_sr1_RW = 59
saved_mfc_dar = 14987979559889612800
saved_mfc_dsisr = 0
saved_spu_runcntl_RW = 1
saved_spu_status_R = 1
saved_spu_npc_RW = 0
Dumping context fields for spu_context c00000003dec4e80:
state = 0
prio = 120
local_store = 0xc00000003b1cea40
rq = 0xc00000003dec5820
node = 0
number = 7
pid = 1538
name = spe
slb_replace = 0
mm = 0xc0000000005d2b80
timestamp = 0x10000566f
class_0_pending = 0
problem = 0xd000080080600000
priv2 = 0xd000080080620000
flags = 0
saved_mfc_sr1_RW = 59
saved_mfc_dar = 14987979559896297472
saved_mfc_dsisr = 0
saved_spu_runcntl_RW = 1
saved_spu_status_R = 1
saved_spu_npc_RW = 0
Dumping context fields for spu_context c00000003dcbdd80:
state = 0
prio = 120
local_store = 0xc000000039055840
rq = 0xc00000003dcbe720
node = 0
number = 0
pid = 1524
name = spe
slb_replace = 0
mm = 0xc0000000005dd700
timestamp = 0x10000566f
class_0_pending = 0
problem = 0xd000080080210000
priv2 = 0xd000080080230000
flags = 0
saved_mfc_sr1_RW = 59
saved_mfc_dar = 14987979559889612800
saved_mfc_dsisr = 0
saved_spu_runcntl_RW = 1
saved_spu_status_R = 1
saved_spu_npc_RW = 0
Show info about the context whose struct spu_context address is
0xc00000003dcbed80:
crash> spuctx 0x00000003dcbed80
...