summaryrefslogtreecommitdiffstats
path: root/include/asm-sparc64/kprobes.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@huronp11.davemloft.net>2008-02-09 12:40:55 +0100
committerDavid S. Miller <davem@davemloft.net>2008-02-09 12:42:22 +0100
commitd38f1220666a2bd89c4f62d286723a3417b34b9e (patch)
tree1bf4182b09bf2496d21c025023e87e4f2478f597 /include/asm-sparc64/kprobes.h
parent[SPARC64]: Add SG merging support back into IOMMU code. (diff)
downloadlinux-d38f1220666a2bd89c4f62d286723a3417b34b9e.tar.xz
linux-d38f1220666a2bd89c4f62d286723a3417b34b9e.zip
[SPARC64]: Add kretprobe support.
Passes the smoke tests at least, powerpc implementation was used as a guide. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-sparc64/kprobes.h')
-rw-r--r--include/asm-sparc64/kprobes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-sparc64/kprobes.h b/include/asm-sparc64/kprobes.h
index 5020eaf67c29..7237dd87663e 100644
--- a/include/asm-sparc64/kprobes.h
+++ b/include/asm-sparc64/kprobes.h
@@ -14,11 +14,15 @@ typedef u32 kprobe_opcode_t;
#define arch_remove_kprobe(p) do {} while (0)
+#define ARCH_SUPPORTS_KRETPROBES
+
#define flush_insn_slot(p) \
do { flushi(&(p)->ainsn.insn[0]); \
flushi(&(p)->ainsn.insn[1]); \
} while (0)
+void kretprobe_trampoline(void);
+
/* Architecture specific copy of original instruction*/
struct arch_specific_insn {
/* copy of the original instruction */