Home
last modified time | relevance | path

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

/arch/mips/kernel/
Dkprobes.c216 static void save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument
218 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()
219 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe()
220 kcb->prev_kprobe.old_SR = kcb->kprobe_old_SR; in save_previous_kprobe()
221 kcb->prev_kprobe.saved_SR = kcb->kprobe_saved_SR; in save_previous_kprobe()
222 kcb->prev_kprobe.saved_epc = kcb->kprobe_saved_epc; in save_previous_kprobe()
225 static void restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument
227 __get_cpu_var(current_kprobe) = kcb->prev_kprobe.kp; in restore_previous_kprobe()
228 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe()
229 kcb->kprobe_old_SR = kcb->prev_kprobe.old_SR; in restore_previous_kprobe()
[all …]
/arch/sparc/kernel/
Dkprobes.c75 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument
77 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()
78 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe()
79 kcb->prev_kprobe.orig_tnpc = kcb->kprobe_orig_tnpc; in save_previous_kprobe()
80 kcb->prev_kprobe.orig_tstate_pil = kcb->kprobe_orig_tstate_pil; in save_previous_kprobe()
83 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument
85 __get_cpu_var(current_kprobe) = kcb->prev_kprobe.kp; in restore_previous_kprobe()
86 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe()
87 kcb->kprobe_orig_tnpc = kcb->prev_kprobe.orig_tnpc; in restore_previous_kprobe()
88 kcb->kprobe_orig_tstate_pil = kcb->prev_kprobe.orig_tstate_pil; in restore_previous_kprobe()
[all …]
/arch/powerpc/kernel/
Dkprobes.c130 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument
132 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()
133 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe()
134 kcb->prev_kprobe.saved_msr = kcb->kprobe_saved_msr; in save_previous_kprobe()
137 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument
139 __get_cpu_var(current_kprobe) = kcb->prev_kprobe.kp; in restore_previous_kprobe()
140 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe()
141 kcb->kprobe_saved_msr = kcb->prev_kprobe.saved_msr; in restore_previous_kprobe()
145 struct kprobe_ctlblk *kcb) in set_current_kprobe() argument
148 kcb->kprobe_saved_msr = regs->msr; in set_current_kprobe()
[all …]
/arch/s390/kernel/
Dkprobes.c142 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); in swap_instruction() local
143 unsigned long status = kcb->kprobe_status; in swap_instruction()
146 kcb->kprobe_status = KPROBE_SWAP_INST; in swap_instruction()
148 kcb->kprobe_status = status; in swap_instruction()
174 static void __kprobes enable_singlestep(struct kprobe_ctlblk *kcb, in enable_singlestep() argument
186 __ctl_store(kcb->kprobe_saved_ctl, 9, 11); in enable_singlestep()
187 kcb->kprobe_saved_imask = regs->psw.mask & in enable_singlestep()
197 static void __kprobes disable_singlestep(struct kprobe_ctlblk *kcb, in disable_singlestep() argument
202 __ctl_load(kcb->kprobe_saved_ctl, 9, 11); in disable_singlestep()
204 regs->psw.mask |= kcb->kprobe_saved_imask; in disable_singlestep()
[all …]
/arch/x86/kernel/kprobes/
Dcore.c428 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument
430 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()
431 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe()
432 kcb->prev_kprobe.old_flags = kcb->kprobe_old_flags; in save_previous_kprobe()
433 kcb->prev_kprobe.saved_flags = kcb->kprobe_saved_flags; in save_previous_kprobe()
436 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument
438 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe()
439 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe()
440 kcb->kprobe_old_flags = kcb->prev_kprobe.old_flags; in restore_previous_kprobe()
441 kcb->kprobe_saved_flags = kcb->prev_kprobe.saved_flags; in restore_previous_kprobe()
[all …]
Dftrace.c29 struct kprobe_ctlblk *kcb) in __skip_singlestep() argument
37 kcb->kprobe_status = KPROBE_HIT_SSDONE; in __skip_singlestep()
45 struct kprobe_ctlblk *kcb) in skip_singlestep() argument
48 return __skip_singlestep(p, regs, kcb); in skip_singlestep()
58 struct kprobe_ctlblk *kcb; in kprobe_ftrace_handler() local
68 kcb = get_kprobe_ctlblk(); in kprobe_ftrace_handler()
76 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_ftrace_handler()
78 __skip_singlestep(p, regs, kcb); in kprobe_ftrace_handler()
Dcommon.h105 struct kprobe_ctlblk *kcb);
108 struct kprobe_ctlblk *kcb) in skip_singlestep() argument
Dopt.c146 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); in optimized_callback() local
168 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in optimized_callback()
/arch/arm/kernel/
Dkprobes.c166 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument
168 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()
169 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe()
172 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument
174 __get_cpu_var(current_kprobe) = kcb->prev_kprobe.kp; in restore_previous_kprobe()
175 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe()
198 singlestep(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) in singlestep() argument
213 struct kprobe_ctlblk *kcb; in kprobe_handler() local
215 kcb = get_kprobe_ctlblk(); in kprobe_handler()
235 switch (kcb->kprobe_status) { in kprobe_handler()
[all …]
/arch/sh/kernel/
Dkprobes.c124 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument
126 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()
127 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe()
130 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument
132 __get_cpu_var(current_kprobe) = kcb->prev_kprobe.kp; in restore_previous_kprobe()
133 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe()
137 struct kprobe_ctlblk *kcb) in set_current_kprobe() argument
220 struct kprobe_ctlblk *kcb; in kprobe_handler() local
227 kcb = get_kprobe_ctlblk(); in kprobe_handler()
235 if (kcb->kprobe_status == KPROBE_HIT_SS && in kprobe_handler()
[all …]
/arch/arc/kernel/
Dkprobes.c82 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument
84 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()
85 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe()
88 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument
90 __get_cpu_var(current_kprobe) = kcb->prev_kprobe.kp; in restore_previous_kprobe()
91 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe()
199 struct kprobe_ctlblk *kcb; in arc_kprobe_handler() local
203 kcb = get_kprobe_ctlblk(); in arc_kprobe_handler()
215 save_previous_kprobe(kcb); in arc_kprobe_handler()
219 kcb->kprobe_status = KPROBE_REENTER; in arc_kprobe_handler()
[all …]
/arch/ia64/kernel/
Dkprobes.c387 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument
390 i = atomic_add_return(1, &kcb->prev_kprobe_index); in save_previous_kprobe()
391 kcb->prev_kprobe[i-1].kp = kprobe_running(); in save_previous_kprobe()
392 kcb->prev_kprobe[i-1].status = kcb->kprobe_status; in save_previous_kprobe()
395 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument
398 i = atomic_read(&kcb->prev_kprobe_index); in restore_previous_kprobe()
399 __get_cpu_var(current_kprobe) = kcb->prev_kprobe[i-1].kp; in restore_previous_kprobe()
400 kcb->kprobe_status = kcb->prev_kprobe[i-1].status; in restore_previous_kprobe()
401 atomic_sub(1, &kcb->prev_kprobe_index); in restore_previous_kprobe()
405 struct kprobe_ctlblk *kcb) in set_current_kprobe() argument
[all …]