summaryrefslogtreecommitdiffstats
path: root/runtime/uprobes/uprobes_ppc64.h
diff options
context:
space:
mode:
authorsrikar <srikar>2007-10-25 13:54:41 +0000
committersrikar <srikar>2007-10-25 13:54:41 +0000
commiteca23f3dbde340a85adbeb3ea4e81df5cbc10c0b (patch)
tree043efb940f4386e5122fc9949cbce5edfdc513b8 /runtime/uprobes/uprobes_ppc64.h
parentaa1547b49b569064715d939d6a9dad4cd14e708c (diff)
downloadsystemtap-steved-eca23f3dbde340a85adbeb3ea4e81df5cbc10c0b.tar.gz
systemtap-steved-eca23f3dbde340a85adbeb3ea4e81df5cbc10c0b.tar.xz
systemtap-steved-eca23f3dbde340a85adbeb3ea4e81df5cbc10c0b.zip
uprobes ppc64 ssol changes
Diffstat (limited to 'runtime/uprobes/uprobes_ppc64.h')
-rw-r--r--runtime/uprobes/uprobes_ppc64.h23
1 files changed, 9 insertions, 14 deletions
diff --git a/runtime/uprobes/uprobes_ppc64.h b/runtime/uprobes/uprobes_ppc64.h
index 9f56119a..1e274a94 100644
--- a/runtime/uprobes/uprobes_ppc64.h
+++ b/runtime/uprobes/uprobes_ppc64.h
@@ -27,7 +27,7 @@
#define SSTEP_SIGNAL SIGTRAP
/* Normally defined in Kconfig */
-#undef CONFIG_UPROBES_SSOL
+#define CONFIG_UPROBES_SSOL
#define CONFIG_URETPROBES 1
typedef unsigned int uprobe_opcode_t;
@@ -46,12 +46,6 @@ struct uprobe_probept;
struct uprobe_task;
struct task_struct;
-static inline int arch_validate_probed_insn(struct uprobe_probept *ppt,
- struct task_struct *tsk)
-{
- return 0;
-}
-
/* On powerpc, nip points to the trap. */
static inline unsigned long arch_get_probept(struct pt_regs *regs)
{
@@ -62,14 +56,15 @@ static inline void arch_reset_ip_for_sstep(struct pt_regs *regs)
{
}
-#ifdef CONFIG_URETPROBES
-static inline void arch_restore_uret_addr(unsigned long ret_addr,
- struct pt_regs *regs)
-{
- regs->nip = ret_addr;
-}
-#endif /* CONFIG_URETPROBES */
+static inline int arch_validate_probed_insn(struct uprobe_probept *ppt,
+ struct task_struct *tsk);
static unsigned long arch_hijack_uret_addr(unsigned long trampoline_addr,
struct pt_regs *regs, struct uprobe_task *utask);
+
+static inline void arch_restore_uret_addr(unsigned long ret_addr,
+ struct pt_regs *regs)
+{
+ regs->nip = ret_addr;
+}
#endif /* _ASM_UPROBES_H */