Searched refs:optinsn (Results 1 – 6 of 6) sorted by relevance
/Linux-v5.10/arch/x86/kernel/kprobes/ |
D | opt.c | 67 memcpy(buf + 1, op->optinsn.copied_insn, DISP32_SIZE); in __recover_optprobed_insn() 70 memcpy(buf, op->optinsn.copied_insn + offs, DISP32_SIZE - offs); in __recover_optprobed_insn() 354 for (i = 1; i < op->optinsn.size; i++) { in arch_check_optimized_kprobe() 368 (unsigned long)op->kp.addr + op->optinsn.size > addr); in arch_within_optimized_kprobe() 375 u8 *slot = op->optinsn.insn; in __arch_remove_optimized_kprobe() 377 int len = TMPL_END_IDX + op->optinsn.size + JMP32_INSN_SIZE; in __arch_remove_optimized_kprobe() 384 op->optinsn.insn = NULL; in __arch_remove_optimized_kprobe() 385 op->optinsn.size = 0; in __arch_remove_optimized_kprobe() 413 op->optinsn.insn = slot = get_optinsn_slot(); in arch_prepare_optimized_kprobe() 437 op->optinsn.size = ret; in arch_prepare_optimized_kprobe() [all …]
|
/Linux-v5.10/arch/arm/probes/kprobes/ |
D | opt-arm.c | 109 int arch_prepared_optinsn(struct arch_optimized_insn *optinsn) in arch_prepared_optinsn() argument 111 return optinsn->insn != NULL; in arch_prepared_optinsn() 142 if (op->optinsn.insn) { in __arch_remove_optimized_kprobe() 143 free_optinsn_slot(op->optinsn.insn, dirty); in __arch_remove_optimized_kprobe() 144 op->optinsn.insn = NULL; in __arch_remove_optimized_kprobe() 287 op->optinsn.insn = code; in NOKPROBE_SYMBOL() 303 memcpy(op->optinsn.copied_insn, op->kp.addr, in arch_optimize_kprobes() 307 (unsigned long)op->optinsn.insn); in arch_optimize_kprobes() 315 op->optinsn.copied_insn[0]) & 0xf0000000) | in arch_optimize_kprobes()
|
/Linux-v5.10/arch/powerpc/kernel/ |
D | optprobes.c | 138 if (op->optinsn.insn) { in arch_remove_optimized_kprobe() 139 free_ppc_optinsn_slot(op->optinsn.insn, 1); in arch_remove_optimized_kprobe() 140 op->optinsn.insn = NULL; in arch_remove_optimized_kprobe() 296 op->optinsn.insn = buff; in arch_prepare_optimized_kprobe() 306 int arch_prepared_optinsn(struct arch_optimized_insn *optinsn) in arch_prepared_optinsn() argument 308 return optinsn->insn != NULL; in arch_prepared_optinsn() 332 memcpy(op->optinsn.copied_insn, op->kp.addr, in arch_optimize_kprobes() 336 (unsigned long)op->optinsn.insn, 0); in arch_optimize_kprobes()
|
/Linux-v5.10/arch/x86/include/asm/ |
D | kprobes.h | 83 static inline int arch_prepared_optinsn(struct arch_optimized_insn *optinsn) in arch_prepared_optinsn() argument 85 return optinsn->size; in arch_prepared_optinsn()
|
/Linux-v5.10/include/linux/ |
D | kprobes.h | 316 struct arch_optimized_insn optinsn; member 320 extern int arch_prepared_optinsn(struct arch_optimized_insn *optinsn); 334 DEFINE_INSN_CACHE_OPS(optinsn);
|
/Linux-v5.10/kernel/ |
D | kprobes.c | 444 return arch_prepared_optinsn(&op->optinsn); in kprobe_optready() 858 if (!arch_prepared_optinsn(&op->optinsn)) { in try_to_optimize_kprobe()
|