]> git.baikalelectronics.ru Git - kernel.git/commit
tracehook: wait_task_inactive
authorRoland McGrath <roland@redhat.com>
Sat, 26 Jul 2008 02:45:58 +0000 (19:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 26 Jul 2008 19:00:09 +0000 (12:00 -0700)
commit31ed6b3c0c0e4ae74856c3e19ed3b3e814fb2f90
treef098555cb580b2864f145aa845b574f07d2cf694
parent807c7ba5ba411ddfd1f8bcf053d453255ff6e66c
tracehook: wait_task_inactive

This extends wait_task_inactive() with a new argument so it can be used in
a "soft" mode where it will check for the task changing state unexpectedly
and back off.  There is no change to existing callers.  This lays the
groundwork to allow robust, noninvasive tracing that can try to sample a
blocked thread but back off safely if it wakes up.

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>
arch/ia64/kernel/perfmon.c
include/linux/sched.h
kernel/kthread.c
kernel/ptrace.c
kernel/sched.c