Home
last modified time | relevance | path

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

12

/arch/x86/kernel/kprobes/
Dopt.c40 struct kprobe *kp; in __recover_optprobed_insn() local
45 kp = get_kprobe((void *)addr - i); in __recover_optprobed_insn()
47 if (kp && kprobe_optimized(kp)) { in __recover_optprobed_insn()
48 op = container_of(kp, struct optimized_kprobe, kp); in __recover_optprobed_insn()
66 if (addr == (unsigned long)kp->addr) { in __recover_optprobed_insn()
67 buf[0] = kp->opcode; in __recover_optprobed_insn()
70 offs = addr - (unsigned long)kp->addr - 1; in __recover_optprobed_insn()
175 if (kprobe_disabled(&op->kp)) in optimized_callback()
180 kprobes_inc_nmissed_count(&op->kp); in optimized_callback()
188 regs->ip = (unsigned long)op->kp.addr + INT3_INSN_SIZE; in optimized_callback()
[all …]
Dcore.c196 struct kprobe *kp; in __recover_probed_insn() local
199 kp = get_kprobe((void *)addr); in __recover_probed_insn()
212 if (!kp && !faddr) in __recover_probed_insn()
241 buf[0] = kp->opcode; in __recover_probed_insn()
785 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()
794 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe()
/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 …]
/arch/powerpc/kernel/
Doptprobes.c100 if (kprobe_disabled(&op->kp)) in optimized_callback()
106 kprobes_inc_nmissed_count(&op->kp); in optimized_callback()
108 __this_cpu_write(current_kprobe, &op->kp); in optimized_callback()
109 regs_set_return_ip(regs, (unsigned long)op->kp.addr); in optimized_callback()
111 opt_pre_handler(&op->kp, regs); in optimized_callback()
281 memcpy(op->optinsn.copied_insn, op->kp.addr, RELATIVEJUMP_SIZE); in arch_optimize_kprobes()
282 create_branch(&instr, op->kp.addr, (unsigned long)op->optinsn.insn, 0); in arch_optimize_kprobes()
283 patch_instruction(op->kp.addr, instr); in arch_optimize_kprobes()
290 arch_arm_kprobe(&op->kp); in arch_unoptimize_kprobe()
306 return ((unsigned long)op->kp.addr <= addr && in arch_within_optimized_kprobe()
[all …]
/arch/s390/lib/
Dtest_unwind.c160 struct kprobe kp; in unwindme_func4() local
164 memset(&kp, 0, sizeof(kp)); in unwindme_func4()
165 kp.symbol_name = "do_report_trap"; in unwindme_func4()
166 kp.pre_handler = pgm_pre_handler; in unwindme_func4()
167 ret = register_kprobe(&kp); in unwindme_func4()
183 unregister_kprobe(&kp); in unwindme_func4()
/arch/arm64/include/asm/
Dkprobes.h27 struct kprobe *kp; member
/arch/riscv/include/asm/
Dkprobes.h28 struct kprobe *kp; member
/arch/csky/include/asm/
Dkprobes.h22 struct kprobe *kp; member
/arch/arm/boot/dts/
Dimx53-kp-ddc.dts8 #include "imx53-kp.dtsi"
105 imx53-kp-ddc {
Dimx6q-kp-tpc.dts9 #include "imx6q-kp.dtsi"
Dimx53-kp-hsc.dts8 #include "imx53-kp.dtsi"
Dste-href-family-pinctrl.dtsi106 function = "kp";
166 function = "kp";
/arch/parisc/include/asm/
Dkprobes.h41 struct kprobe *kp; member
/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.h60 struct kprobe *kp; member
/arch/microblaze/include/asm/
Dmmu.h45 unsigned long kp:1; /* User 'key' (normally 1) */ member
/arch/x86/platform/uv/
Duv_nmi.c113 static int param_get_local64(char *buffer, const struct kernel_param *kp) in param_get_local64() argument
115 return sprintf(buffer, "%lu\n", local64_read((local64_t *)kp->arg)); in param_get_local64()
118 static int param_set_local64(const char *val, const struct kernel_param *kp) in param_set_local64() argument
121 local64_set((local64_t *)kp->arg, 0); in param_set_local64()
196 static int param_get_action(char *buffer, const struct kernel_param *kp) in param_get_action() argument
201 static int param_set_action(const char *val, const struct kernel_param *kp) in param_set_action() argument
/arch/arm/include/asm/
Dkprobes.h31 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()
/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.h104 struct kprobe *kp; member

12