/arch/arm/include/asm/ |
D | kprobes.h | 29 typedef u32 kprobe_opcode_t; typedef 54 extern __visible kprobe_opcode_t optprobe_template_entry; 55 extern __visible kprobe_opcode_t optprobe_template_val; 56 extern __visible kprobe_opcode_t optprobe_template_call; 57 extern __visible kprobe_opcode_t optprobe_template_end; 58 extern __visible kprobe_opcode_t optprobe_template_sub_sp; 59 extern __visible kprobe_opcode_t optprobe_template_add_sp; 60 extern __visible kprobe_opcode_t optprobe_template_restore_begin; 61 extern __visible kprobe_opcode_t optprobe_template_restore_orig_insn; 62 extern __visible kprobe_opcode_t optprobe_template_restore_end; [all …]
|
/arch/x86/include/asm/ |
D | kprobes.h | 34 typedef u8 kprobe_opcode_t; typedef 51 extern __visible kprobe_opcode_t optprobe_template_entry; 52 extern __visible kprobe_opcode_t optprobe_template_val; 53 extern __visible kprobe_opcode_t optprobe_template_call; 54 extern __visible kprobe_opcode_t optprobe_template_end; 69 kprobe_opcode_t *insn; 84 kprobe_opcode_t copied_insn[RELATIVE_ADDR_SIZE]; 86 kprobe_opcode_t *insn; 111 kprobe_opcode_t jprobes_stack[MAX_STACK_SIZE];
|
/arch/powerpc/include/asm/ |
D | kprobes.h | 41 typedef ppc_opcode_t kprobe_opcode_t; typedef 49 addr = (kprobe_opcode_t *)kallsyms_lookup_name(name); \ 51 addr = (kprobe_opcode_t *)ppc_function_entry(addr); \ 90 addr = (kprobe_opcode_t *)kallsyms_lookup_name(dot_name); \ 93 addr = (kprobe_opcode_t *)kallsyms_lookup_name(name); \ 108 kprobe_opcode_t *insn;
|
/arch/sh/kernel/ |
D | kprobes.c | 45 kprobe_opcode_t opcode = *(kprobe_opcode_t *) (p->addr); in arch_prepare_kprobe() 57 memcpy(p->ainsn.insn, p->addr, MAX_INSN_SIZE * sizeof(kprobe_opcode_t)); in arch_copy_kprobe() 65 (unsigned long)p->addr + sizeof(kprobe_opcode_t)); in arch_arm_kprobe() 72 (unsigned long)p->addr + sizeof(kprobe_opcode_t)); in arch_disarm_kprobe() 91 struct kprobe *p = get_kprobe((kprobe_opcode_t *) pc + 1); in kprobe_handle_illslot() 149 __this_cpu_write(saved_current_opcode.addr, (kprobe_opcode_t *)regs->pc); in prepare_singlestep() 161 op1->addr = (kprobe_opcode_t *) regs->regs[reg_nr]; in prepare_singlestep() 165 (kprobe_opcode_t *) (regs->pc + 4 + disp * 2); in prepare_singlestep() 170 (kprobe_opcode_t *) (regs->pc + 4 + in prepare_singlestep() 174 op1->addr = (kprobe_opcode_t *) regs->pr; in prepare_singlestep() [all …]
|
/arch/x86/kernel/kprobes/ |
D | common.h | 70 extern int can_boost(kprobe_opcode_t *instruction, void *addr); 72 extern unsigned long recover_probed_instruction(kprobe_opcode_t *buf, 86 extern unsigned long __recover_optprobed_insn(kprobe_opcode_t *buf, unsigned long addr); 92 static inline unsigned long __recover_optprobed_insn(kprobe_opcode_t *buf, unsigned long addr) in __recover_optprobed_insn()
|
D | core.c | 147 static kprobe_opcode_t *skip_prefixes(kprobe_opcode_t *insn) in skip_prefixes() 168 int can_boost(kprobe_opcode_t *opcodes, void *addr) in can_boost() 170 kprobe_opcode_t opcode; in can_boost() 171 kprobe_opcode_t *orig_opcodes = opcodes; in can_boost() 227 __recover_probed_insn(kprobe_opcode_t *buf, unsigned long addr) in __recover_probed_insn() 267 memcpy(buf, (void *)addr, MAX_INSN_SIZE * sizeof(kprobe_opcode_t)); in __recover_probed_insn() 281 unsigned long recover_probed_instruction(kprobe_opcode_t *buf, unsigned long addr) in recover_probed_instruction() 297 kprobe_opcode_t buf[MAX_INSN_SIZE]; in can_probe() 334 static int is_IF_modifier(kprobe_opcode_t *insn) in is_IF_modifier() 360 kprobe_opcode_t buf[MAX_INSN_SIZE]; in __copy_instruction() [all …]
|
D | ftrace.c | 69 p = get_kprobe((kprobe_opcode_t *)ip); in kprobe_ftrace_handler() 79 regs->ip = ip + sizeof(kprobe_opcode_t); in kprobe_ftrace_handler()
|
D | opt.c | 43 unsigned long __recover_optprobed_insn(kprobe_opcode_t *buf, unsigned long addr) in __recover_optprobed_insn() 68 memcpy(buf, (void *)addr, MAX_INSN_SIZE * sizeof(kprobe_opcode_t)); in __recover_optprobed_insn() 81 static void synthesize_set_arg1(kprobe_opcode_t *addr, unsigned long val) in synthesize_set_arg1() 139 #define INT3_SIZE sizeof(kprobe_opcode_t) 254 kprobe_opcode_t buf[MAX_INSN_SIZE]; in can_optimize()
|
/arch/arc/kernel/ |
D | kprobes.c | 45 (unsigned long)p->addr + sizeof(kprobe_opcode_t)); in arch_arm_kprobe() 53 (unsigned long)p->addr + sizeof(kprobe_opcode_t)); in arch_disarm_kprobe() 66 sizeof(kprobe_opcode_t)); in arch_remove_kprobe() 76 sizeof(kprobe_opcode_t)); in arch_remove_kprobe() 110 sizeof(kprobe_opcode_t)); in resume_execution() 120 sizeof(kprobe_opcode_t)); in resume_execution() 142 (unsigned long)p->addr + sizeof(kprobe_opcode_t)); in setup_singlestep() 177 p->ainsn.t1_addr = (kprobe_opcode_t *) next_pc; in setup_singlestep() 183 sizeof(kprobe_opcode_t)); in setup_singlestep() 186 p->ainsn.t2_addr = (kprobe_opcode_t *) tgt_if_br; in setup_singlestep() [all …]
|
/arch/arc/include/asm/ |
D | kprobes.h | 14 typedef u16 kprobe_opcode_t; typedef 24 kprobe_opcode_t *t1_addr, *t2_addr; 25 kprobe_opcode_t t1_opcode, t2_opcode;
|
/arch/tile/include/asm/ |
D | kprobes.h | 31 typedef tile_bundle_bits kprobe_opcode_t; typedef 36 (MAX_INSN_SIZE * sizeof(kprobe_opcode_t))) 42 kprobe_opcode_t *insn;
|
/arch/sh/include/asm/ |
D | kprobes.h | 9 typedef insn_size_t kprobe_opcode_t; typedef 31 kprobe_opcode_t insn[MAX_INSN_SIZE]; 44 kprobe_opcode_t jprobes_stack[MAX_STACK_SIZE];
|
/arch/mips/include/asm/ |
D | kprobes.h | 37 typedef union mips_instruction kprobe_opcode_t; typedef 46 (MAX_INSN_SIZE * sizeof(kprobe_opcode_t))); \ 57 kprobe_opcode_t *insn;
|
/arch/s390/include/asm/ |
D | kprobes.h | 39 typedef u16 kprobe_opcode_t; typedef 62 kprobe_opcode_t *insn; 78 kprobe_opcode_t jprobes_stack[MAX_STACK_SIZE];
|
/arch/powerpc/kernel/ |
D | kprobes.c | 48 kprobe_opcode_t insn = *p->addr; in arch_prepare_kprobe() 68 MAX_INSN_SIZE * sizeof(kprobe_opcode_t)); in arch_prepare_kprobe() 71 (unsigned long)p->ainsn.insn + sizeof(kprobe_opcode_t)); in arch_prepare_kprobe() 82 (unsigned long) p->addr + sizeof(kprobe_opcode_t)); in arch_arm_kprobe() 89 (unsigned long) p->addr + sizeof(kprobe_opcode_t)); in arch_disarm_kprobe() 137 ri->ret_addr = (kprobe_opcode_t *)regs->link; in arch_prepare_kretprobe() 161 kprobe_opcode_t insn = *p->ainsn.insn; in kprobe_handler() 185 kprobe_opcode_t cur_insn = *addr; in kprobe_handler() 211 kprobe_opcode_t cur_insn = *addr; in kprobe_handler() 555 .addr = (kprobe_opcode_t *) &kretprobe_trampoline, [all …]
|
/arch/mn10300/include/asm/ |
D | kprobes.h | 29 typedef unsigned char kprobe_opcode_t; typedef 38 kprobe_opcode_t insn[MAX_INSN_SIZE];
|
/arch/avr32/include/asm/ |
D | kprobes.h | 16 typedef u16 kprobe_opcode_t; typedef 27 kprobe_opcode_t insn[MAX_INSN_SIZE];
|
/arch/avr32/kernel/ |
D | kprobes.c | 41 memcpy(p->ainsn.insn, p->addr, MAX_INSN_SIZE * sizeof(kprobe_opcode_t)); in arch_prepare_kprobe() 54 (unsigned long)p->addr + sizeof(kprobe_opcode_t)); in arch_arm_kprobe() 63 (unsigned long)p->addr + sizeof(kprobe_opcode_t)); in arch_disarm_kprobe() 87 (unsigned long)p->addr + sizeof(kprobe_opcode_t)); in prepare_singlestep() 102 (unsigned long)p->addr + sizeof(kprobe_opcode_t)); in resume_execution()
|
/arch/tile/kernel/ |
D | kprobes.c | 43 static int __kprobes insn_has_control(kprobe_opcode_t insn) in insn_has_control() 89 if (addr & (sizeof(kprobe_opcode_t) - 1)) in arch_prepare_kprobe() 107 memcpy(&p->ainsn.insn[0], p->addr, sizeof(kprobe_opcode_t)); in arch_prepare_kprobe() 187 kprobe_opcode_t *addr; in kprobe_handler() 190 addr = (kprobe_opcode_t *)regs->pc; in kprobe_handler() 436 ri->ret_addr = (kprobe_opcode_t *) regs->lr; in arch_prepare_kretprobe() 512 if (p->addr == (kprobe_opcode_t *)kretprobe_trampoline) in arch_trampoline_kprobe() 519 .addr = (kprobe_opcode_t *)kretprobe_trampoline,
|
/arch/sparc/include/asm/ |
D | kprobes.h | 7 typedef u32 kprobe_opcode_t; typedef 27 kprobe_opcode_t insn[MAX_INSN_SIZE];
|
/arch/ia64/include/asm/ |
D | kprobes.h | 104 } kprobe_opcode_t; typedef 109 kprobe_opcode_t *insn;
|
/arch/arm/probes/kprobes/ |
D | core.c | 57 kprobe_opcode_t insn; in arch_prepare_kprobe() 58 kprobe_opcode_t tmp_insn[MAX_INSN_SIZE]; in arch_prepare_kprobe() 144 kprobe_opcode_t insn = p->opcode; in arch_arm_kprobe() 259 p = get_kprobe((kprobe_opcode_t *)(regs->ARM_pc | 1)); in kprobe_handler() 261 p = get_kprobe((kprobe_opcode_t *)regs->ARM_pc); in kprobe_handler() 264 p = get_kprobe((kprobe_opcode_t *)regs->ARM_pc); in kprobe_handler() 442 kprobe_opcode_t *correct_ret_addr = NULL; in trampoline_handler() 517 ri->ret_addr = (kprobe_opcode_t *)regs->ARM_lr; in arch_prepare_kretprobe()
|
D | opt-arm.c | 199 kprobe_opcode_t *code; in NOKPROBE_SYMBOL() 251 TMPL_END_IDX * sizeof(kprobe_opcode_t)); in NOKPROBE_SYMBOL() 277 kprobe_opcode_t final_branch = arm_gen_branch( in NOKPROBE_SYMBOL()
|
/arch/ia64/kernel/ |
D | kprobes.c | 505 ri->ret_addr = (kprobe_opcode_t *)regs->b0; in arch_prepare_kretprobe() 591 bundle = &((kprobe_opcode_t *)kprobe_addr)->bundle; in arch_prepare_kprobe() 611 memcpy(&p->opcode, kprobe_addr, sizeof(kprobe_opcode_t)); in arch_prepare_kprobe() 612 memcpy(p->ainsn.insn, kprobe_addr, sizeof(kprobe_opcode_t)); in arch_prepare_kprobe() 627 dest = &((kprobe_opcode_t *)arm_addr)->bundle; in arch_arm_kprobe() 632 sizeof(kprobe_opcode_t) * MAX_INSN_SIZE); in arch_arm_kprobe() 645 flush_icache_range(arm_addr, arm_addr + sizeof(kprobe_opcode_t)); in arch_arm_kprobe() 654 dest = &((kprobe_opcode_t *)arm_addr)->bundle; in arch_disarm_kprobe() 668 flush_icache_range(arm_addr, arm_addr + sizeof(kprobe_opcode_t)); in arch_disarm_kprobe() 791 kprobe_opcode_t *addr = (kprobe_opcode_t *)instruction_pointer(regs); in pre_kprobes_handler() [all …]
|
/arch/mips/kernel/ |
D | kprobes.c | 185 memcpy(&p->ainsn.insn[0], p->addr + 1, sizeof(kprobe_opcode_t)); in arch_prepare_kprobe() 187 memcpy(&p->ainsn.insn[0], p->addr, sizeof(kprobe_opcode_t)); in arch_prepare_kprobe() 338 kprobe_opcode_t *addr; in kprobe_handler() 341 addr = (kprobe_opcode_t *) regs->cp0_epc; in kprobe_handler() 590 ri->ret_addr = (kprobe_opcode_t *) regs->regs[31]; in arch_prepare_kretprobe() 665 if (p->addr == (kprobe_opcode_t *)kretprobe_trampoline) in arch_trampoline_kprobe() 672 .addr = (kprobe_opcode_t *)kretprobe_trampoline,
|