uprobes: Introduce prepare_uprobe()
authorOleg Nesterov <oleg@redhat.com>
Sun, 30 Sep 2012 18:11:45 +0000 (20:11 +0200)
committerOleg Nesterov <oleg@redhat.com>
Sun, 7 Oct 2012 19:19:42 +0000 (21:19 +0200)
commitcb9a19fe4aa51afa34786bd383e6614fa0083d58
treee85fac9d3a69707cd9c3a98361f5cba845d5d260
parent142b18ddc81439acda4bc4231b291e99fe67d507
uprobes: Introduce prepare_uprobe()

Preparation. Extract the copy_insn/arch_uprobe_analyze_insn code
from install_breakpoint() into the new helper, prepare_uprobe().

And move uprobe->flags defines from uprobes.h to uprobes.c, nobody
else can use them anyway.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
include/linux/uprobes.h
kernel/events/uprobes.c