]> git.baikalelectronics.ru Git - kernel.git/commit
uprobes/x86: Introduce uprobe_xol_ops and arch_uprobe->ops
authorOleg Nesterov <oleg@redhat.com>
Mon, 31 Mar 2014 19:01:31 +0000 (21:01 +0200)
committerOleg Nesterov <oleg@redhat.com>
Thu, 17 Apr 2014 19:58:19 +0000 (21:58 +0200)
commitb5d55978d3ff458cfe2c6c4d6cb6ffc7e79187ff
tree746e9f28e45b400e3ca4afe2866616545be92de9
parent06b111ea553db5e0ac14719e6dc9aa47cd7600a3
uprobes/x86: Introduce uprobe_xol_ops and arch_uprobe->ops

Introduce arch_uprobe->ops pointing to the "struct uprobe_xol_ops",
move the current UPROBE_FIX_{RIP*,IP,CALL} code into the default
set of methods and change arch_uprobe_pre/post_xol() accordingly.

This way we can add the new uprobe_xol_ops's to handle the insns
which need the special processing (rip-relative jmp/call at least).

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Reviewed-by: Jim Keniston <jkenisto@us.ibm.com>
Reviewed-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
arch/x86/include/asm/uprobes.h
arch/x86/kernel/uprobes.c