mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[SPARC64]: Add kretprobe support.
Passes the smoke tests at least, powerpc implementation was used as a guide. Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
13fa14e185
commit
d38f122066
2 changed files with 115 additions and 2 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue