summaryrefslogtreecommitdiffstats
path: root/runtime/uprobes/uprobes_i386.h
diff options
context:
space:
mode:
authorkenistoj <kenistoj>2007-10-16 23:40:49 +0000
committerkenistoj <kenistoj>2007-10-16 23:40:49 +0000
commitde14b6dab7064616fe2828c7ead9cca6a48463ce (patch)
tree6b0afe6dede588b4ddd32e05c973ed9a5f07a6d5 /runtime/uprobes/uprobes_i386.h
parente3632368cea4bb761f90d001744f03b6b81f339e (diff)
downloadsystemtap-steved-de14b6dab7064616fe2828c7ead9cca6a48463ce.tar.gz
systemtap-steved-de14b6dab7064616fe2828c7ead9cca6a48463ce.tar.xz
systemtap-steved-de14b6dab7064616fe2828c7ead9cca6a48463ce.zip
* runtime/uprobes/uprobes.[ch], uprobes_i386.[ch],
uprobes_ppc64.h, uprobes_s390.h: Adjusted SLOT_IP and arch_validate_probed_insn to accept task pointer (needed by x86_64); added uprobe_probept_arch_info and uprobe_task_arch_info (ditto). * runtime/uprobes/uprobes_i386.c: Fixed a couple of glitches discovered when porting to x86_64
Diffstat (limited to 'runtime/uprobes/uprobes_i386.h')
-rw-r--r--runtime/uprobes/uprobes_i386.h9
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)