diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-02-08 15:10:03 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:40:46 -0400 |
commit | e0bf0f75bdc441abb05365abc56ee96ba44ca073 (patch) | |
tree | 00b750d3d11367882571cd6c54f1758b945263a1 /arch/x86/kernel/signal_64.c | |
parent | 866bc13fc4c625186dd01429c68c5cf708f1cfd5 (diff) |
x86: define DEBUG_SIG in signal_64.c
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/signal_64.c')
-rw-r--r-- | arch/x86/kernel/signal_64.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/x86/kernel/signal_64.c b/arch/x86/kernel/signal_64.c index f3247d71edbc..043294582f41 100644 --- a/arch/x86/kernel/signal_64.c +++ b/arch/x86/kernel/signal_64.c | |||
@@ -28,7 +28,7 @@ | |||
28 | #include <asm/mce.h> | 28 | #include <asm/mce.h> |
29 | #include "sigframe.h" | 29 | #include "sigframe.h" |
30 | 30 | ||
31 | /* #define DEBUG_SIG 1 */ | 31 | #define DEBUG_SIG 0 |
32 | 32 | ||
33 | #define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP))) | 33 | #define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP))) |
34 | 34 | ||
@@ -142,7 +142,7 @@ asmlinkage long sys_rt_sigreturn(struct pt_regs *regs) | |||
142 | if (restore_sigcontext(regs, &frame->uc.uc_mcontext, &ax)) | 142 | if (restore_sigcontext(regs, &frame->uc.uc_mcontext, &ax)) |
143 | goto badframe; | 143 | goto badframe; |
144 | 144 | ||
145 | #ifdef DEBUG_SIG | 145 | #if DEBUG_SIG |
146 | printk("%d sigreturn ip:%lx sp:%lx frame:%p ax:%lx\n",current->pid,regs->ip,regs->sp,frame,ax); | 146 | printk("%d sigreturn ip:%lx sp:%lx frame:%p ax:%lx\n",current->pid,regs->ip,regs->sp,frame,ax); |
147 | #endif | 147 | #endif |
148 | 148 | ||
@@ -274,7 +274,7 @@ static int setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, | |||
274 | if (err) | 274 | if (err) |
275 | goto give_sigsegv; | 275 | goto give_sigsegv; |
276 | 276 | ||
277 | #ifdef DEBUG_SIG | 277 | #if DEBUG_SIG |
278 | printk("%d old ip %lx old sp %lx old ax %lx\n", current->pid,regs->ip,regs->sp,regs->ax); | 278 | printk("%d old ip %lx old sp %lx old ax %lx\n", current->pid,regs->ip,regs->sp,regs->ax); |
279 | #endif | 279 | #endif |
280 | 280 | ||
@@ -302,7 +302,7 @@ static int setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, | |||
302 | regs->flags &= ~(X86_EFLAGS_TF | X86_EFLAGS_DF); | 302 | regs->flags &= ~(X86_EFLAGS_TF | X86_EFLAGS_DF); |
303 | if (test_thread_flag(TIF_SINGLESTEP)) | 303 | if (test_thread_flag(TIF_SINGLESTEP)) |
304 | ptrace_notify(SIGTRAP); | 304 | ptrace_notify(SIGTRAP); |
305 | #ifdef DEBUG_SIG | 305 | #if DEBUG_SIG |
306 | printk("SIG deliver (%s:%d): sp=%p pc=%lx ra=%p\n", | 306 | printk("SIG deliver (%s:%d): sp=%p pc=%lx ra=%p\n", |
307 | current->comm, current->pid, frame, regs->ip, frame->pretcode); | 307 | current->comm, current->pid, frame, regs->ip, frame->pretcode); |
308 | #endif | 308 | #endif |
@@ -353,7 +353,7 @@ handle_signal(unsigned long sig, siginfo_t *info, struct k_sigaction *ka, | |||
353 | { | 353 | { |
354 | int ret; | 354 | int ret; |
355 | 355 | ||
356 | #ifdef DEBUG_SIG | 356 | #if DEBUG_SIG |
357 | printk("handle_signal pid:%d sig:%lu ip:%lx sp:%lx regs=%p\n", | 357 | printk("handle_signal pid:%d sig:%lu ip:%lx sp:%lx regs=%p\n", |
358 | current->pid, sig, | 358 | current->pid, sig, |
359 | regs->ip, regs->sp, regs); | 359 | regs->ip, regs->sp, regs); |
@@ -491,7 +491,7 @@ static void do_signal(struct pt_regs *regs) | |||
491 | void do_notify_resume(struct pt_regs *regs, void *unused, | 491 | void do_notify_resume(struct pt_regs *regs, void *unused, |
492 | __u32 thread_info_flags) | 492 | __u32 thread_info_flags) |
493 | { | 493 | { |
494 | #ifdef DEBUG_SIG | 494 | #if DEBUG_SIG |
495 | printk("do_notify_resume flags:%x ip:%lx sp:%lx caller:%p pending:%x\n", | 495 | printk("do_notify_resume flags:%x ip:%lx sp:%lx caller:%p pending:%x\n", |
496 | thread_info_flags, regs->ip, regs->sp, __builtin_return_address(0),signal_pending(current)); | 496 | thread_info_flags, regs->ip, regs->sp, __builtin_return_address(0),signal_pending(current)); |
497 | #endif | 497 | #endif |