]> git.baikalelectronics.ru Git - kernel.git/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)
commit02c09f7f1094d39e853d098f1fb4fc07e2d08abe
treec90d31c179aad154089a88d4845f1721ded40860
parent31ed6b3c0c0e4ae74856c3e19ed3b3e814fb2f90
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]