access_process_vm device memory infrastructure
In order to be able to debug things like the X server and programs using the PPC Cell SPUs, the debugger needs to be able to access device memory through ptrace and /proc/pid/mem. This patch: Add the generic_access_phys access function and put the hooks in place to allow access_process_vm to access device or PPC Cell SPU memory. [riel@redhat.com: Add documentation for the vm_ops->access function] Signed-off-by:Rik van Riel <riel@redhat.com> Signed-off-by:
Benjamin Herrensmidt <benh@kernel.crashing.org> Cc: Dave Airlie <airlied@linux.ie> Cc: Hugh Dickins <hugh@veritas.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Arnd Bergmann <arnd@arndb.de> Acked-by:
Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- Documentation/filesystems/Locking 7 additions, 0 deletionsDocumentation/filesystems/Locking
- arch/Kconfig 3 additions, 0 deletionsarch/Kconfig
- arch/x86/Kconfig 1 addition, 0 deletionsarch/x86/Kconfig
- arch/x86/mm/ioremap.c 8 additions, 0 deletionsarch/x86/mm/ioremap.c
- include/asm-x86/io_32.h 2 additions, 0 deletionsinclude/asm-x86/io_32.h
- include/asm-x86/io_64.h 2 additions, 0 deletionsinclude/asm-x86/io_64.h
- include/linux/mm.h 8 additions, 0 deletionsinclude/linux/mm.h
- mm/memory.c 113 additions, 18 deletionsmm/memory.c
Loading
Please register or sign in to comment