Go to the documentation of this file.
22 #ifndef _ASM_KPROBES_H
23 #define _ASM_KPROBES_H
25 #include <linux/ptrace.h>
26 #include <linux/types.h>
28 #include <asm/cacheflush.h>
29 #include <asm/kdebug.h>
32 #define __ARCH_WANT_KPROBES_INSN_SLOT
39 #define MAX_INSN_SIZE 2
41 #define flush_insn_slot(p) \
43 flush_icache_range((unsigned long)p->addr, \
44 (unsigned long)p->addr + \
45 (MAX_INSN_SIZE * sizeof(kprobe_opcode_t))); \
49 #define kretprobe_blacklist_size 0
67 #define MAX_JPROBES_STACK_SIZE 128
68 #define MAX_JPROBES_STACK_ADDR \
69 (((unsigned long)current_thread_info()) + THREAD_SIZE - 32 - sizeof(struct pt_regs))
71 #define MIN_JPROBES_STACK_SIZE(ADDR) \
72 ((((ADDR) + MAX_JPROBES_STACK_SIZE) > MAX_JPROBES_STACK_ADDR) \
73 ? MAX_JPROBES_STACK_ADDR - (ADDR) \
74 : MAX_JPROBES_STACK_SIZE)
77 #define SKIP_DELAYSLOT 0x0001