Introduce the empty inline tracehook_finish_jctl() helper called by do_signal_stop() after wakeup.
Currently we lack the ability to report this state change. Signed-off-by: Oleg Nesterov <o...@redhat.com> --- include/linux/tracehook.h | 9 +++++++++ kernel/signal.c | 2 ++ 2 files changed, 11 insertions(+) --- __UTRACE/include/linux/tracehook.h~JCTL_1_TRACEHOOK 2009-07-28 22:59:03.000000000 +0200 +++ __UTRACE/include/linux/tracehook.h 2009-07-28 22:59:31.000000000 +0200 @@ -521,6 +521,15 @@ static inline int tracehook_notify_jctl( return notify ?: (current->ptrace & PT_PTRACED) ? why : 0; } +/** + * tracehook_finish_jctl - report about return from job control stop + * + * This is called by do_signal_stop() after wakeup. + */ +static inline void tracehook_finish_jctl(void) +{ +} + #define DEATH_REAP -1 #define DEATH_DELAYED_GROUP_LEADER -2 --- __UTRACE/kernel/signal.c~JCTL_1_TRACEHOOK 2009-07-28 21:39:31.000000000 +0200 +++ __UTRACE/kernel/signal.c 2009-07-28 23:02:00.000000000 +0200 @@ -1738,6 +1738,8 @@ static int do_signal_stop(int signr) do { schedule(); } while (try_to_freeze()); + + tracehook_finish_jctl(); /* * Now we don't run again until continued. */