KUMANO Syuhei
737480a0d5
kprobes/x86: Fix the return address of multiple kretprobes
...
Fix the return address of subsequent kretprobes when multiple
kretprobes are set on the same function.
For example:
# cd /sys/kernel/debug/tracing
# echo "r:event1 sys_symlink" > kprobe_events
# echo "r:event2 sys_symlink" >> kprobe_events
# echo 1 > events/kprobes/enable
# ln -s /tmp/foo /tmp/bar
(without this patch)
# cat trace
ln-897 [000] 20404.133727: event1: (kretprobe_trampoline+0x0/0x4c <- sys_symlink)
ln-897 [000] 20404.133747: event2: (system_call_fastpath+0x16/0x1b <- sys_symlink)
(with this patch)
# cat trace
ln-740 [000] 13799.491076: event1: (system_call_fastpath+0x16/0x1b <- sys_symlink)
ln-740 [000] 13799.491096: event2: (system_call_fastpath+0x16/0x1b <- sys_symlink)
Signed-off-by: KUMANO Syuhei <kumano.prog@gmail.com>
Reviewed-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
LKML-Reference: <1281853084.3254.11.camel@camp10-laptop>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2010-08-19 12:49:56 +02:00
..
2010-08-02 21:07:20 -07:00
2010-08-14 22:26:53 +02:00
2010-05-03 11:28:58 +08:00
2010-08-13 16:53:13 -07:00
2010-08-14 22:26:51 +02:00
2010-08-19 12:49:56 +02:00
2010-08-06 13:07:19 -07:00
2010-05-28 16:20:35 -04:00
2010-08-13 10:35:48 -07:00
2010-05-10 13:37:16 -07:00
2010-08-13 09:49:20 -07:00
2010-08-05 12:17:38 +02:00
2010-07-30 09:47:33 -07:00
2010-07-19 10:56:54 +02:00
2010-02-07 17:47:51 +01:00
2010-08-06 16:22:59 -07:00
2010-08-12 09:09:41 -07:00
2010-04-08 11:34:34 +02:00
2010-08-06 16:24:34 -07:00
2010-05-18 08:58:16 -07:00
2010-05-18 08:40:21 -07:00
2010-05-13 22:15:18 -07:00
2009-12-08 13:38:11 -08:00