]> err.no Git - linux-2.6/commit
task_current_syscall
authorRoland McGrath <roland@redhat.com>
Sat, 26 Jul 2008 02:45:59 +0000 (19:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 26 Jul 2008 19:00:10 +0000 (12:00 -0700)
commitbbc698636ed48b6fcd323964e0f847a6a796325d
treec90d31c179aad154089a88d4845f1721ded40860
parent85ba2d862e521375a8ee01526c5c46b1f24bb4af
task_current_syscall

This adds the new function task_current_syscall() on machines where the
asm/syscall.h interface is supported (CONFIG_HAVE_ARCH_TRACEHOOK).  It's
exported for modules to use in the future.  This function safely samples
the state of a blocked thread to collect what system call it is blocked
in, and the six system call argument registers.

Signed-off-by: Roland McGrath <roland@redhat.com>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Reviewed-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/ptrace.h
lib/Makefile
lib/syscall.c [new file with mode: 0644]