Home
last modified time | relevance | path

Searched refs:kcb (Results 1 – 16 of 16) sorted by relevance

/arch/mips/kernel/
Dkprobes.c155 static void save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument
157 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()
158 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe()
159 kcb->prev_kprobe.old_SR = kcb->kprobe_old_SR; in save_previous_kprobe()
160 kcb->prev_kprobe.saved_SR = kcb->kprobe_saved_SR; in save_previous_kprobe()
161 kcb->prev_kprobe.saved_epc = kcb->kprobe_saved_epc; in save_previous_kprobe()
164 static void restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument
166 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe()
167 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe()
168 kcb->kprobe_old_SR = kcb->prev_kprobe.old_SR; in restore_previous_kprobe()
[all …]
/arch/sparc/kernel/
Dkprobes.c77 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument
79 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()
80 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe()
81 kcb->prev_kprobe.orig_tnpc = kcb->kprobe_orig_tnpc; in save_previous_kprobe()
82 kcb->prev_kprobe.orig_tstate_pil = kcb->kprobe_orig_tstate_pil; in save_previous_kprobe()
85 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument
87 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe()
88 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe()
89 kcb->kprobe_orig_tnpc = kcb->prev_kprobe.orig_tnpc; in restore_previous_kprobe()
90 kcb->kprobe_orig_tstate_pil = kcb->prev_kprobe.orig_tstate_pil; in restore_previous_kprobe()
[all …]
/arch/arm64/kernel/probes/
Dkprobes.c65 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); in arch_simulate_insn() local
71 post_kprobe_handler(kcb, regs); in arch_simulate_insn()
150 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument
152 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()
153 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe()
156 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument
158 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe()
159 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe()
172 static void __kprobes kprobes_save_local_irqflag(struct kprobe_ctlblk *kcb, in kprobes_save_local_irqflag() argument
175 kcb->saved_irqflag = regs->pstate & DAIF_MASK; in kprobes_save_local_irqflag()
[all …]
/arch/parisc/kernel/
Dkprobes.c54 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument
56 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()
57 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe()
60 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument
62 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe()
63 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe()
72 struct kprobe_ctlblk *kcb, struct pt_regs *regs) in setup_singlestep() argument
74 kcb->iaoq[0] = regs->iaoq[0]; in setup_singlestep()
75 kcb->iaoq[1] = regs->iaoq[1]; in setup_singlestep()
84 struct kprobe_ctlblk *kcb; in parisc_kprobe_break_handler() local
[all …]
Dftrace.c208 struct kprobe_ctlblk *kcb; in kprobe_ftrace_handler() local
221 kcb = get_kprobe_ctlblk(); in kprobe_ftrace_handler()
222 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_ftrace_handler()
232 kcb->kprobe_status = KPROBE_HIT_SSDONE; in kprobe_ftrace_handler()
/arch/powerpc/kernel/
Dkprobes.c173 static nokprobe_inline void save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument
175 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()
176 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe()
177 kcb->prev_kprobe.saved_msr = kcb->kprobe_saved_msr; in save_previous_kprobe()
180 static nokprobe_inline void restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument
182 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe()
183 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe()
184 kcb->kprobe_saved_msr = kcb->prev_kprobe.saved_msr; in restore_previous_kprobe()
188 struct kprobe_ctlblk *kcb) in set_current_kprobe() argument
191 kcb->kprobe_saved_msr = regs->msr; in set_current_kprobe()
[all …]
Dkprobes-ftrace.c20 struct kprobe_ctlblk *kcb; in kprobe_ftrace_handler() local
26 kcb = get_kprobe_ctlblk(); in kprobe_ftrace_handler()
37 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_ftrace_handler()
45 kcb->kprobe_status = KPROBE_HIT_SSDONE; in kprobe_ftrace_handler()
/arch/x86/kernel/kprobes/
Dcore.c528 save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument
530 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()
531 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe()
532 kcb->prev_kprobe.old_flags = kcb->kprobe_old_flags; in save_previous_kprobe()
533 kcb->prev_kprobe.saved_flags = kcb->kprobe_saved_flags; in save_previous_kprobe()
537 restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument
539 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe()
540 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe()
541 kcb->kprobe_old_flags = kcb->prev_kprobe.old_flags; in restore_previous_kprobe()
542 kcb->kprobe_saved_flags = kcb->prev_kprobe.saved_flags; in restore_previous_kprobe()
[all …]
Dftrace.c20 struct kprobe_ctlblk *kcb; in kprobe_ftrace_handler() local
27 kcb = get_kprobe_ctlblk(); in kprobe_ftrace_handler()
36 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_ftrace_handler()
44 kcb->kprobe_status = KPROBE_HIT_SSDONE; in kprobe_ftrace_handler()
Dopt.c158 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); in optimized_callback() local
169 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in optimized_callback()
/arch/s390/kernel/
Dkprobes.c200 static void enable_singlestep(struct kprobe_ctlblk *kcb, in enable_singlestep() argument
212 __ctl_store(kcb->kprobe_saved_ctl, 9, 11); in enable_singlestep()
213 kcb->kprobe_saved_imask = regs->psw.mask & in enable_singlestep()
224 static void disable_singlestep(struct kprobe_ctlblk *kcb, in disable_singlestep() argument
229 __ctl_load(kcb->kprobe_saved_ctl, 9, 11); in disable_singlestep()
231 regs->psw.mask |= kcb->kprobe_saved_imask; in disable_singlestep()
241 static void push_kprobe(struct kprobe_ctlblk *kcb, struct kprobe *p) in push_kprobe() argument
243 kcb->prev_kprobe.kp = __this_cpu_read(current_kprobe); in push_kprobe()
244 kcb->prev_kprobe.status = kcb->kprobe_status; in push_kprobe()
254 static void pop_kprobe(struct kprobe_ctlblk *kcb) in pop_kprobe() argument
[all …]
/arch/sh/kernel/
Dkprobes.c121 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument
123 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()
124 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe()
127 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument
129 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe()
130 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe()
134 struct kprobe_ctlblk *kcb) in set_current_kprobe() argument
217 struct kprobe_ctlblk *kcb; in kprobe_handler() local
224 kcb = get_kprobe_ctlblk(); in kprobe_handler()
232 if (kcb->kprobe_status == KPROBE_HIT_SS && in kprobe_handler()
[all …]
/arch/arc/kernel/
Dkprobes.c79 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument
81 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()
82 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe()
85 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument
87 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe()
88 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe()
196 struct kprobe_ctlblk *kcb; in arc_kprobe_handler() local
200 kcb = get_kprobe_ctlblk(); in arc_kprobe_handler()
212 save_previous_kprobe(kcb); in arc_kprobe_handler()
216 kcb->kprobe_status = KPROBE_REENTER; in arc_kprobe_handler()
[all …]
/arch/arm/probes/kprobes/
Dcore.c190 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument
192 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()
193 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe()
196 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument
198 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe()
199 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe()
222 singlestep(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) in singlestep() argument
237 struct kprobe_ctlblk *kcb; in kprobe_handler() local
239 kcb = get_kprobe_ctlblk(); in kprobe_handler()
267 switch (kcb->kprobe_status) { in kprobe_handler()
[all …]
Dopt-arm.c153 struct kprobe_ctlblk *kcb; in optimized_callback() local
160 kcb = get_kprobe_ctlblk(); in optimized_callback()
166 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in optimized_callback()
/arch/ia64/kernel/
Dkprobes.c372 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument
375 i = atomic_add_return(1, &kcb->prev_kprobe_index); in save_previous_kprobe()
376 kcb->prev_kprobe[i-1].kp = kprobe_running(); in save_previous_kprobe()
377 kcb->prev_kprobe[i-1].status = kcb->kprobe_status; in save_previous_kprobe()
380 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument
383 i = atomic_read(&kcb->prev_kprobe_index); in restore_previous_kprobe()
384 __this_cpu_write(current_kprobe, kcb->prev_kprobe[i-1].kp); in restore_previous_kprobe()
385 kcb->kprobe_status = kcb->prev_kprobe[i-1].status; in restore_previous_kprobe()
386 atomic_sub(1, &kcb->prev_kprobe_index); in restore_previous_kprobe()
390 struct kprobe_ctlblk *kcb) in set_current_kprobe() argument
[all …]