android_kernel_xiaomi_sm8350/arch/powerpc/platforms/cell/spufs
Gerhard Stenzel ada397e93d [POWERPC] spufs: fix incorrect file descriptors in SPU coredump note names
At present, ppu-gdb can't trace spu infomation with coredump generated
by the kernel. While the core dumps notes have correct contents, they
have the wrong names, as the file descriptors used to generate the note
names are off-by-one. An application that opens a SPE context as fd 3,
the current core dump code will generate notes like:
  SPU/4/mem
  SPU/4/regs
etc.

This confuses GDB, which knows it is looking for SPE context 3 (from
parsing the spu_context_run system call arguments), and cannot find
any notes that match context 3.

This change corrects the file descriptor counting, to only increment
the fd until after we've written the note name.

Signed-off-by: Gerhard Stenzel <stenzel@de.ibm.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2008-03-28 14:36:15 +11:00
..
backing_ops.c [POWERPC] spufs: Update SPU_Status[CISHP] in backing runcntl write 2008-02-08 19:52:35 +11:00
context.c [POWERPC] spufs: fix rescheduling of non-runnable contexts 2008-03-11 12:46:18 +11:00
coredump.c [POWERPC] spufs: fix incorrect file descriptors in SPU coredump note names 2008-03-28 14:36:15 +11:00
fault.c [POWERPC] spufs: Fix state_mutex leaks 2008-02-08 19:52:35 +11:00
file.c [POWERPC] spufs: add newline to signal{1,2}_type files 2008-03-28 14:35:56 +11:00
gang.c [CELL] cell: add placement computation for scheduling of affinity contexts 2007-07-20 21:42:17 +02:00
hw_ops.c [POWERPC] spufs: use #defines for SPU class [012] exception status 2007-12-21 19:46:20 +11:00
inode.c Embed a struct path into struct nameidata instead of nd->{dentry,mnt} 2008-02-14 21:13:33 -08:00
lscsa_alloc.c [POWERPC] spufs: move fault, lscsa_alloc and switch code to spufs module 2007-12-21 19:46:19 +11:00
Makefile [POWERPC] spufs: Add marker-based tracing facility 2008-02-06 16:26:59 +11:00
run.c [POWERPC] spufs: reacquire LS pointer in spu_process_callback 2008-03-28 14:36:01 +11:00
sched.c [POWERPC] spufs: don't (ab)use SCHED_IDLE 2008-03-11 12:28:02 +11:00
spu_restore_crt0.S
spu_restore_dump.h_shipped [CELL] spufs: change decrementer restore timing 2007-07-20 21:42:03 +02:00
spu_restore.c [CELL] spufs: change decrementer restore timing 2007-07-20 21:42:03 +02:00
spu_save_crt0.S
spu_save_dump.h_shipped
spu_save.c [POWERPC] spufs: fix building spufs/spu_save_dump.h 2007-07-03 15:24:44 +10:00
spu_utils.h
spufs.h [POWERPC] spufs: don't (ab)use SCHED_IDLE 2008-03-11 12:28:02 +11:00
sputrace.c [POWERPC] spufs: fix order of sputrace thread IDs 2008-02-29 15:00:08 +11:00
switch.c [POWERPC] spufs: save MFC command channel before purging MFC queue 2008-03-28 14:36:08 +11:00
syscalls.c Introduce path_put() 2008-02-14 21:13:33 -08:00