/arch/arm/probes/kprobes/ |
D | opt-arm.c | 125 static int can_optimize(struct kprobe *kp) in can_optimize() argument 127 if (kp->ainsn.stack_space < 0) in can_optimize() 133 if (kp->ainsn.stack_space > 255 - sizeof(struct pt_regs)) in can_optimize() 152 struct kprobe *p = &op->kp; in optimized_callback() 156 regs->ARM_pc = (unsigned long)op->kp.addr; in optimized_callback() 163 kprobes_inc_nmissed_count(&op->kp); in optimized_callback() 165 __this_cpu_write(current_kprobe, &op->kp); in optimized_callback() 167 opt_pre_handler(&op->kp, regs); in optimized_callback() 176 op->kp.ainsn.insn_singlestep(p->opcode, &p->ainsn, regs); in optimized_callback() 264 (unsigned long)(op->kp.addr) + 4); in NOKPROBE_SYMBOL() [all …]
|
D | core.c | 192 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 198 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe() 465 __this_cpu_write(current_kprobe, &ri->rp->kp); in trampoline_handler()
|
/arch/x86/kernel/kprobes/ |
D | opt.c | 37 struct kprobe *kp; in __recover_optprobed_insn() local 42 kp = get_kprobe((void *)addr - i); in __recover_optprobed_insn() 44 if (kp && kprobe_optimized(kp)) { in __recover_optprobed_insn() 45 op = container_of(kp, struct optimized_kprobe, kp); in __recover_optprobed_insn() 63 if (addr == (unsigned long)kp->addr) { in __recover_optprobed_insn() 64 buf[0] = kp->opcode; in __recover_optprobed_insn() 67 offs = addr - (unsigned long)kp->addr - 1; in __recover_optprobed_insn() 151 if (kprobe_disabled(&op->kp)) in optimized_callback() 156 kprobes_inc_nmissed_count(&op->kp); in optimized_callback() 165 regs->ip = (unsigned long)op->kp.addr + INT3_SIZE; in optimized_callback() [all …]
|
D | core.c | 214 struct kprobe *kp; in __recover_probed_insn() local 217 kp = get_kprobe((void *)addr); in __recover_probed_insn() 230 if (!kp && !faddr) in __recover_probed_insn() 259 buf[0] = kp->opcode; in __recover_probed_insn() 530 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 539 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe() 829 ri->rp->kp.addr); in trampoline_handler() 852 __this_cpu_write(current_kprobe, &ri->rp->kp); in trampoline_handler()
|
/arch/powerpc/kernel/ |
D | optprobes.c | 115 if (kprobe_disabled(&op->kp)) in optimized_callback() 121 kprobes_inc_nmissed_count(&op->kp); in optimized_callback() 123 __this_cpu_write(current_kprobe, &op->kp); in optimized_callback() 124 regs->nip = (unsigned long)op->kp.addr; in optimized_callback() 126 opt_pre_handler(&op->kp, regs); in optimized_callback() 316 memcpy(op->optinsn.copied_insn, op->kp.addr, in arch_optimize_kprobes() 318 patch_instruction(op->kp.addr, in arch_optimize_kprobes() 319 create_branch((unsigned int *)op->kp.addr, in arch_optimize_kprobes() 327 arch_arm_kprobe(&op->kp); in arch_unoptimize_kprobe() 345 return ((unsigned long)op->kp.addr <= addr && in arch_within_optimized_kprobe() [all …]
|
/arch/arm64/include/asm/ |
D | kprobes.h | 27 struct kprobe *kp; member
|
/arch/parisc/kernel/ |
D | kprobes.c | 56 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 62 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe() 243 __this_cpu_write(current_kprobe, &ri->rp->kp); in trampoline_probe_handler()
|
/arch/parisc/include/asm/ |
D | kprobes.h | 41 struct kprobe *kp; member
|
/arch/arm/boot/dts/ |
D | imx6q-kp-tpc.dts | 9 #include "imx6q-kp.dtsi"
|
D | imx53-kp-ddc.dts | 8 #include "imx53-kp.dtsi" 105 imx53-kp-ddc {
|
D | imx53-kp-hsc.dts | 8 #include "imx53-kp.dtsi"
|
/arch/arc/include/asm/ |
D | kprobes.h | 39 struct kprobe *kp; member
|
/arch/sh/include/asm/ |
D | kprobes.h | 38 struct kprobe *kp; member
|
/arch/sparc/include/asm/ |
D | kprobes.h | 36 struct kprobe *kp; member
|
/arch/mips/include/asm/ |
D | kprobes.h | 53 struct kprobe *kp; member
|
/arch/s390/include/asm/ |
D | kprobes.h | 61 struct kprobe *kp; member
|
/arch/microblaze/include/asm/ |
D | mmu.h | 51 unsigned long kp:1; /* User 'key' (normally 1) */ member
|
/arch/arm/include/asm/ |
D | kprobes.h | 31 struct kprobe *kp; member
|
/arch/x86/platform/uv/ |
D | uv_nmi.c | 96 static int param_get_local64(char *buffer, const struct kernel_param *kp) in param_get_local64() argument 98 return sprintf(buffer, "%lu\n", local64_read((local64_t *)kp->arg)); in param_get_local64() 101 static int param_set_local64(const char *val, const struct kernel_param *kp) in param_set_local64() argument 104 local64_set((local64_t *)kp->arg, 0); in param_set_local64() 179 static int param_get_action(char *buffer, const struct kernel_param *kp) in param_get_action() argument 184 static int param_set_action(const char *val, const struct kernel_param *kp) in param_set_action() argument
|
/arch/powerpc/include/asm/ |
D | kprobes.h | 69 struct kprobe *kp; member
|
/arch/ia64/include/asm/ |
D | kprobes.h | 63 struct kprobe *kp; member
|
/arch/x86/include/asm/ |
D | kprobes.h | 90 struct kprobe *kp; member
|
/arch/sh/kernel/ |
D | kprobes.c | 123 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 129 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe() 333 __this_cpu_write(current_kprobe, &ri->rp->kp); in trampoline_probe_handler()
|
/arch/arm64/kernel/probes/ |
D | kprobes.c | 152 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 158 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe() 504 __this_cpu_write(current_kprobe, &ri->rp->kp); in trampoline_probe_handler()
|
/arch/s390/kernel/ |
D | kprobes.c | 243 kcb->prev_kprobe.kp = __this_cpu_read(current_kprobe); in push_kprobe() 256 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in pop_kprobe() 258 kcb->prev_kprobe.kp = NULL; in pop_kprobe()
|