Home
last modified time | relevance | path

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

/linux-2.6.39/arch/mips/kernel/
Dkprobes.c168 static void save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument
170 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()
171 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe()
172 kcb->prev_kprobe.old_SR = kcb->kprobe_old_SR; in save_previous_kprobe()
173 kcb->prev_kprobe.saved_SR = kcb->kprobe_saved_SR; in save_previous_kprobe()
174 kcb->prev_kprobe.saved_epc = kcb->kprobe_saved_epc; in save_previous_kprobe()
177 static void restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument
179 __get_cpu_var(current_kprobe) = kcb->prev_kprobe.kp; in restore_previous_kprobe()
180 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe()
181 kcb->kprobe_old_SR = kcb->prev_kprobe.old_SR; in restore_previous_kprobe()
[all …]
/linux-2.6.39/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 …]
/linux-2.6.39/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 …]
/linux-2.6.39/arch/powerpc/kernel/
Dkprobes.c131 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument
133 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()
134 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe()
135 kcb->prev_kprobe.saved_msr = kcb->kprobe_saved_msr; in save_previous_kprobe()
138 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument
140 __get_cpu_var(current_kprobe) = kcb->prev_kprobe.kp; in restore_previous_kprobe()
141 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe()
142 kcb->kprobe_saved_msr = kcb->prev_kprobe.saved_msr; in restore_previous_kprobe()
146 struct kprobe_ctlblk *kcb) in set_current_kprobe() argument
149 kcb->kprobe_saved_msr = regs->msr; in set_current_kprobe()
[all …]
/linux-2.6.39/arch/arm/kernel/
Dkprobes.c116 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument
118 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()
119 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe()
122 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument
124 __get_cpu_var(current_kprobe) = kcb->prev_kprobe.kp; in restore_previous_kprobe()
125 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe()
134 struct kprobe_ctlblk *kcb) in singlestep() argument
151 struct kprobe_ctlblk *kcb; in kprobe_handler() local
154 kcb = get_kprobe_ctlblk(); in kprobe_handler()
161 switch (kcb->kprobe_status) { in kprobe_handler()
[all …]
/linux-2.6.39/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 …]
/linux-2.6.39/arch/x86/kernel/
Dkprobes.c396 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument
398 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()
399 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe()
400 kcb->prev_kprobe.old_flags = kcb->kprobe_old_flags; in save_previous_kprobe()
401 kcb->prev_kprobe.saved_flags = kcb->kprobe_saved_flags; in save_previous_kprobe()
404 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument
406 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe()
407 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe()
408 kcb->kprobe_old_flags = kcb->prev_kprobe.old_flags; in restore_previous_kprobe()
409 kcb->kprobe_saved_flags = kcb->prev_kprobe.saved_flags; in restore_previous_kprobe()
[all …]
/linux-2.6.39/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 …]