summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/signal_32.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2008-04-19 19:10:57 -0700
committerRoland McGrath <roland@redhat.com>2008-07-26 14:38:05 -0700
commit59e52130f04537d2c80ea44bb007cadd1ad29543 (patch)
tree80531b2e893f1b4a339ffc84351a82c0347601e6 /arch/x86/kernel/signal_32.c
parent4dfcbb997aa9f3a6a3ed8c192f0dac28b027e08f (diff)
downloadop-kernel-dev-59e52130f04537d2c80ea44bb007cadd1ad29543.zip
op-kernel-dev-59e52130f04537d2c80ea44bb007cadd1ad29543.tar.gz
x86: tracehook: TIF_NOTIFY_RESUME
This adds TIF_NOTIFY_RESUME support for x86, both 64-bit and 32-bit. When set, we call tracehook_notify_resume() on the way to user mode. Signed-off-by: Roland McGrath <roland@redhat.com>
Diffstat (limited to 'arch/x86/kernel/signal_32.c')
-rw-r--r--arch/x86/kernel/signal_32.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/kernel/signal_32.c b/arch/x86/kernel/signal_32.c
index 22aae16..4445d26 100644
--- a/arch/x86/kernel/signal_32.c
+++ b/arch/x86/kernel/signal_32.c
@@ -663,5 +663,10 @@ do_notify_resume(struct pt_regs *regs, void *unused, __u32 thread_info_flags)
if (thread_info_flags & _TIF_SIGPENDING)
do_signal(regs);
+ if (thread_info_flags & _TIF_NOTIFY_RESUME) {
+ clear_thread_flag(TIF_NOTIFY_RESUME);
+ tracehook_notify_resume(regs);
+ }
+
clear_thread_flag(TIF_IRET);
}
OpenPOWER on IntegriCloud