Home
last modified time | relevance | path

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

12

/arch/x86/kernel/kprobes/
Dopt.c45 struct kprobe *kp; in __recover_optprobed_insn() local
50 kp = get_kprobe((void *)addr - i); in __recover_optprobed_insn()
52 if (kp && kprobe_optimized(kp)) { in __recover_optprobed_insn()
53 op = container_of(kp, struct optimized_kprobe, kp); in __recover_optprobed_insn()
68 if (addr == (unsigned long)kp->addr) { in __recover_optprobed_insn()
69 buf[0] = kp->opcode; in __recover_optprobed_insn()
72 offs = addr - (unsigned long)kp->addr - 1; in __recover_optprobed_insn()
148 if (kprobe_disabled(&op->kp)) in optimized_callback()
153 kprobes_inc_nmissed_count(&op->kp); in optimized_callback()
162 regs->ip = (unsigned long)op->kp.addr + INT3_SIZE; in optimized_callback()
[all …]
Dcore.c225 struct kprobe *kp; in __recover_probed_insn() local
227 kp = get_kprobe((void *)addr); in __recover_probed_insn()
229 if (!kp) in __recover_probed_insn()
245 memcpy(buf, kp->addr, MAX_INSN_SIZE * sizeof(kprobe_opcode_t)); in __recover_probed_insn()
246 buf[0] = kp->opcode; in __recover_probed_insn()
438 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()
447 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe()
743 __this_cpu_write(current_kprobe, &ri->rp->kp); in trampoline_handler()
1016 struct jprobe *jp = container_of(p, struct jprobe, kp); in setjmp_pre_handler()
1072 struct jprobe *jp = container_of(p, struct jprobe, kp); in longjmp_break_handler()
/arch/tile/kernel/
Dkprobes.c130 void __kprobes arch_disarm_kprobe(struct kprobe *kp) in arch_disarm_kprobe() argument
135 addr_wr = (unsigned long)kp->addr - MEM_SV_START + PAGE_OFFSET; in arch_disarm_kprobe()
137 if (probe_kernel_write((void *)addr_wr, &kp->opcode, in arch_disarm_kprobe()
138 sizeof(kp->opcode))) in arch_disarm_kprobe()
142 flush_insn_slot(kp); in arch_disarm_kprobe()
155 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()
162 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe()
375 struct jprobe *jp = container_of(p, struct jprobe, kp); in setjmp_pre_handler()
/arch/arm/kernel/
Dkprobes.c155 struct kprobe *kp = p; in __arch_disarm_kprobe() local
156 void *addr = (void *)((uintptr_t)kp->addr & ~1); in __arch_disarm_kprobe()
158 __patch_text(addr, kp->opcode); in __arch_disarm_kprobe()
178 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()
184 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe()
434 __this_cpu_write(current_kprobe, &ri->rp->kp); in trampoline_handler()
474 struct jprobe *jp = container_of(p, struct jprobe, kp); in setjmp_pre_handler()
560 struct jprobe *jp = container_of(p, struct jprobe, kp); in longjmp_break_handler()
Dkprobes-test.c384 the_jprobe.kp.addr = (kprobe_opcode_t *)func; in test_jprobe()
394 the_jprobe.kp.flags = 0; /* Clear disable flag to allow reuse */ in test_jprobe()
429 the_kretprobe.kp.addr = (kprobe_opcode_t *)func; in test_kretprobe()
439 the_kretprobe.kp.flags = 0; /* Clear disable flag to allow reuse */ in test_kretprobe()
/arch/arm/include/asm/
Dkprobes.h37 struct kprobe *kp; member
/arch/avr32/include/asm/
Dkprobes.h31 struct kprobe *kp; member
/arch/arc/include/asm/
Dkprobes.h40 struct kprobe *kp; member
/arch/sparc/include/asm/
Dkprobes.h31 struct kprobe *kp; member
/arch/tile/include/asm/
Dkprobes.h46 struct kprobe *kp; member
/arch/sh/include/asm/
Dkprobes.h35 struct kprobe *kp; member
/arch/mips/include/asm/
Dkprobes.h60 struct kprobe *kp; member
/arch/s390/include/asm/
Dkprobes.h66 struct kprobe *kp; member
/arch/microblaze/include/asm/
Dmmu.h51 unsigned long kp:1; /* User 'key' (normally 1) */ member
/arch/powerpc/include/asm/
Dkprobes.h91 struct kprobe *kp; member
/arch/x86/include/asm/
Dkprobes.h98 struct kprobe *kp; member
/arch/ia64/include/asm/
Dkprobes.h71 struct kprobe *kp; member
/arch/x86/platform/uv/
Duv_nmi.c95 static int param_get_local64(char *buffer, const struct kernel_param *kp) in param_get_local64() argument
97 return sprintf(buffer, "%lu\n", local64_read((local64_t *)kp->arg)); in param_get_local64()
100 static int param_set_local64(const char *val, const struct kernel_param *kp) in param_set_local64() argument
103 local64_set((local64_t *)kp->arg, 0); in param_set_local64()
/arch/sh/kernel/
Dkprobes.c126 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()
132 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe()
339 __this_cpu_write(current_kprobe, &ri->rp->kp); in trampoline_probe_handler()
528 struct jprobe *jp = container_of(p, struct jprobe, kp); in setjmp_pre_handler()
/arch/arc/kernel/
Dkprobes.c84 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()
90 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe()
391 struct jprobe *jp = container_of(p, struct jprobe, kp); in setjmp_pre_handler()
/arch/powerpc/kernel/
Dkprobes.c115 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()
122 __get_cpu_var(current_kprobe) = kcb->prev_kprobe.kp; in restore_previous_kprobe()
502 struct jprobe *jp = container_of(p, struct jprobe, kp); in setjmp_pre_handler()
/arch/sparc/kernel/
Dkprobes.c78 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()
86 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe()
446 struct jprobe *jp = container_of(p, struct jprobe, kp); in setjmp_pre_handler()
/arch/mips/kernel/
Dkprobes.c218 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()
227 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe()
522 struct jprobe *jp = container_of(p, struct jprobe, kp); in setjmp_pre_handler()
/arch/s390/kernel/
Dkprobes.c221 kcb->prev_kprobe.kp = __this_cpu_read(current_kprobe); in push_kprobe()
233 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in pop_kprobe()
622 struct jprobe *jp = container_of(p, struct jprobe, kp); in setjmp_pre_handler()
/arch/avr32/kernel/
Dkprobes.c232 struct jprobe *jp = container_of(p, struct jprobe, kp); in setjmp_pre_handler()

12