summaryrefslogtreecommitdiffstats
path: root/include/linux/uprobes.h
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2012-09-30 20:11:45 +0200
committerOleg Nesterov <oleg@redhat.com>2012-10-07 21:19:42 +0200
commitcb9a19fe4aa51afa34786bd383e6614fa0083d58 (patch)
treee85fac9d3a69707cd9c3a98361f5cba845d5d260 /include/linux/uprobes.h
parent142b18ddc81439acda4bc4231b291e99fe67d507 (diff)
downloadlinux-stable-cb9a19fe4aa51afa34786bd383e6614fa0083d58.tar.gz
linux-stable-cb9a19fe4aa51afa34786bd383e6614fa0083d58.tar.bz2
linux-stable-cb9a19fe4aa51afa34786bd383e6614fa0083d58.zip
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>
Diffstat (limited to 'include/linux/uprobes.h')
-rw-r--r--include/linux/uprobes.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/include/linux/uprobes.h b/include/linux/uprobes.h
index 18d839da6517..24594571c5a3 100644
--- a/include/linux/uprobes.h
+++ b/include/linux/uprobes.h
@@ -35,16 +35,6 @@ struct inode;
# include <asm/uprobes.h>
#endif
-/* flags that denote/change uprobes behaviour */
-
-/* Have a copy of original instruction */
-#define UPROBE_COPY_INSN 0x1
-
-/* Dont run handlers when first register/ last unregister in progress*/
-#define UPROBE_RUN_HANDLER 0x2
-/* Can skip singlestep */
-#define UPROBE_SKIP_SSTEP 0x4
-
struct uprobe_consumer {
int (*handler)(struct uprobe_consumer *self, struct pt_regs *regs);
/*