diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2007-10-21 16:34:49 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2007-10-21 16:34:49 -0400 |
commit | 24993e4fcae48ca014e6b53f3f9a011c9cfa8f06 (patch) | |
tree | 90080b050ab62e79e7d111cc764a75dba91ad485 /runtime/uprobes/uprobes_i386.h | |
parent | 11088605d9c0ab753e613b9ae52b6e59948cfc83 (diff) | |
parent | f994dd4997067ca69b3b10ff8fa1547987aed585 (diff) | |
download | systemtap-steved-24993e4fcae48ca014e6b53f3f9a011c9cfa8f06.tar.gz systemtap-steved-24993e4fcae48ca014e6b53f3f9a011c9cfa8f06.tar.xz systemtap-steved-24993e4fcae48ca014e6b53f3f9a011c9cfa8f06.zip |
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'runtime/uprobes/uprobes_i386.h')
-rw-r--r-- | runtime/uprobes/uprobes_i386.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/runtime/uprobes/uprobes_i386.h b/runtime/uprobes/uprobes_i386.h index 6e2aae70..e4376b95 100644 --- a/runtime/uprobes/uprobes_i386.h +++ b/runtime/uprobes/uprobes_i386.h @@ -32,17 +32,22 @@ typedef u8 uprobe_opcode_t; #define BREAKPOINT_INSTRUCTION 0xcc #define BP_INSN_SIZE 1 #define MAX_UINSN_BYTES 16 -#define SLOT_IP 12 /* instruction pointer slot from include/asm/elf.h */ +#define SLOT_IP(tsk) 12 /* instruction pointer slot from include/asm/elf.h */ #define BREAKPOINT_SIGNAL SIGTRAP #define SSTEP_SIGNAL SIGTRAP +struct uprobe_probept_arch_info {}; +struct uprobe_task_arch_info {}; + /* Architecture specific switch for where the IP points after a bp hit */ #define ARCH_BP_INST_PTR(inst_ptr) (inst_ptr - BP_INSN_SIZE) struct uprobe_probept; struct uprobe_task; -static int arch_validate_probed_insn(struct uprobe_probept *ppt); +struct task_struct; +static int arch_validate_probed_insn(struct uprobe_probept *ppt, + struct task_struct *tsk); /* On i386, the int3 traps leaves eip pointing past the int3 instruction. */ static inline unsigned long arch_get_probept(struct pt_regs *regs) |