Home
last modified time | relevance | path

Searched refs:kprobe_opcode_t (Results 1 – 25 of 30) sorted by relevance

12

/arch/arm/include/asm/
Dkprobes.h29 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/
Dkprobes.h34 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/
Dkprobes.h41 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/
Dkprobes.c45 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/
Dcommon.h70 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()
Dcore.c147 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 …]
Dftrace.c69 p = get_kprobe((kprobe_opcode_t *)ip); in kprobe_ftrace_handler()
79 regs->ip = ip + sizeof(kprobe_opcode_t); in kprobe_ftrace_handler()
Dopt.c43 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/
Dkprobes.c45 (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/
Dkprobes.h14 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/
Dkprobes.h31 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/
Dkprobes.h9 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/
Dkprobes.h37 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/
Dkprobes.h39 typedef u16 kprobe_opcode_t; typedef
62 kprobe_opcode_t *insn;
78 kprobe_opcode_t jprobes_stack[MAX_STACK_SIZE];
/arch/powerpc/kernel/
Dkprobes.c48 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/
Dkprobes.h29 typedef unsigned char kprobe_opcode_t; typedef
38 kprobe_opcode_t insn[MAX_INSN_SIZE];
/arch/avr32/include/asm/
Dkprobes.h16 typedef u16 kprobe_opcode_t; typedef
27 kprobe_opcode_t insn[MAX_INSN_SIZE];
/arch/avr32/kernel/
Dkprobes.c41 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/
Dkprobes.c43 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/
Dkprobes.h7 typedef u32 kprobe_opcode_t; typedef
27 kprobe_opcode_t insn[MAX_INSN_SIZE];
/arch/ia64/include/asm/
Dkprobes.h104 } kprobe_opcode_t; typedef
109 kprobe_opcode_t *insn;
/arch/arm/probes/kprobes/
Dcore.c57 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()
Dopt-arm.c199 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/
Dkprobes.c505 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/
Dkprobes.c185 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,

12