kprobes, x86: Disable irqs during optimized callback
authorJiri Olsa <jolsa@redhat.com>
Wed, 11 May 2011 11:06:13 +0000 (13:06 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 11 May 2011 11:21:23 +0000 (13:21 +0200)
commit9bbeacf52f66d165739a4bbe9c018d17493a74b5
treed47a268e184907bc1c962e91f361907f29b4093b
parent693d92a1bbc9e42681c42ed190bd42b636ca876f
kprobes, x86: Disable irqs during optimized callback

Disable irqs during optimized callback, so we dont miss any in-irq kprobes.

The following commands:

 # cd /debug/tracing/
 # echo "p mutex_unlock" >> kprobe_events
 # echo "p _raw_spin_lock" >> kprobe_events
 # echo "p smp_apic_timer_interrupt" >> ./kprobe_events
 # echo 1 > events/enable

Cause the optimized kprobes to be missed. None is missed
with the fix applied.

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Acked-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Link: http://lkml.kernel.org/r/20110511110613.GB2390@jolsa.brq.redhat.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/kprobes.c