Home
last modified time | relevance | path

Searched refs:kp (Results 1 – 25 of 43) sorted by relevance

12

/arch/arm/probes/kprobes/
Dopt-arm.c125 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 …]
Dcore.c192 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/
Dopt.c37 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 …]
Dcore.c214 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/
Doptprobes.c115 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/
Dkprobes.h27 struct kprobe *kp; member
/arch/parisc/kernel/
Dkprobes.c56 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/
Dkprobes.h41 struct kprobe *kp; member
/arch/arm/boot/dts/
Dimx6q-kp-tpc.dts9 #include "imx6q-kp.dtsi"
Dimx53-kp-ddc.dts8 #include "imx53-kp.dtsi"
105 imx53-kp-ddc {
Dimx53-kp-hsc.dts8 #include "imx53-kp.dtsi"
/arch/arc/include/asm/
Dkprobes.h39 struct kprobe *kp; member
/arch/sh/include/asm/
Dkprobes.h38 struct kprobe *kp; member
/arch/sparc/include/asm/
Dkprobes.h36 struct kprobe *kp; member
/arch/mips/include/asm/
Dkprobes.h53 struct kprobe *kp; member
/arch/s390/include/asm/
Dkprobes.h61 struct kprobe *kp; member
/arch/microblaze/include/asm/
Dmmu.h51 unsigned long kp:1; /* User 'key' (normally 1) */ member
/arch/arm/include/asm/
Dkprobes.h31 struct kprobe *kp; member
/arch/x86/platform/uv/
Duv_nmi.c96 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/
Dkprobes.h69 struct kprobe *kp; member
/arch/ia64/include/asm/
Dkprobes.h63 struct kprobe *kp; member
/arch/x86/include/asm/
Dkprobes.h90 struct kprobe *kp; member
/arch/sh/kernel/
Dkprobes.c123 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/
Dkprobes.c152 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/
Dkprobes.c243 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()

12