/linux/arch/mips/kernel/ |
A D | kprobes.c | 159 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 160 kcb->prev_kprobe.old_SR = kcb->kprobe_old_SR; in save_previous_kprobe() 161 kcb->prev_kprobe.saved_SR = kcb->kprobe_saved_SR; in save_previous_kprobe() 162 kcb->prev_kprobe.saved_epc = kcb->kprobe_saved_epc; in save_previous_kprobe() 168 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 169 kcb->kprobe_old_SR = kcb->prev_kprobe.old_SR; in restore_previous_kprobe() 170 kcb->kprobe_saved_SR = kcb->prev_kprobe.saved_SR; in restore_previous_kprobe() 171 kcb->kprobe_saved_epc = kcb->prev_kprobe.saved_epc; in restore_previous_kprobe() 178 kcb->kprobe_saved_SR = kcb->kprobe_old_SR = (regs->cp0_status & ST0_IE); in set_current_kprobe() 277 struct kprobe_ctlblk *kcb; in kprobe_handler() local [all …]
|
/linux/arch/csky/kernel/probes/ |
A D | kprobes.c | 75 post_kprobe_handler(kcb, regs); in arch_simulate_insn() 132 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 138 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 157 kcb->saved_sr = regs->sr; in kprobes_save_local_irqflag() 164 regs->sr = kcb->saved_sr; in kprobes_restore_local_irqflag() 179 kcb->ss_ctx.match_addr = 0; in clear_ss_context() 193 save_previous_kprobe(kcb); in setup_singlestep() 220 switch (kcb->kprobe_status) { in reenter_kprobe() 310 struct kprobe_ctlblk *kcb; in kprobe_breakpoint_handler() local 313 kcb = get_kprobe_ctlblk(); in kprobe_breakpoint_handler() [all …]
|
A D | ftrace.c | 12 struct kprobe_ctlblk *kcb; in kprobe_ftrace_handler() local 28 kcb = get_kprobe_ctlblk(); in kprobe_ftrace_handler() 38 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_ftrace_handler() 47 kcb->kprobe_status = KPROBE_HIT_SSDONE; in kprobe_ftrace_handler()
|
/linux/arch/sparc/kernel/ |
A D | kprobes.c | 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() 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() 94 struct kprobe_ctlblk *kcb) in set_current_kprobe() argument 102 struct kprobe_ctlblk *kcb) in prepare_singlestep() argument 121 struct kprobe_ctlblk *kcb; in kprobe_handler() local 128 kcb = get_kprobe_ctlblk(); in kprobe_handler() [all …]
|
/linux/arch/riscv/kernel/probes/ |
A D | kprobes.c | 48 post_kprobe_handler(p, kcb, regs); in arch_simulate_insn() 118 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 124 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 143 kcb->saved_status = regs->status; in kprobes_save_local_irqflag() 160 save_previous_kprobe(kcb); in setup_singlestep() 185 switch (kcb->kprobe_status) { in reenter_kprobe() 214 restore_previous_kprobe(kcb); in post_kprobe_handler() 235 switch (kcb->kprobe_status) { in kprobe_fault_handler() 249 restore_previous_kprobe(kcb); in kprobe_fault_handler() 272 struct kprobe_ctlblk *kcb; in kprobe_breakpoint_handler() local [all …]
|
A D | ftrace.c | 11 struct kprobe_ctlblk *kcb; in kprobe_ftrace_handler() local 23 kcb = get_kprobe_ctlblk(); in kprobe_ftrace_handler() 32 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_ftrace_handler() 41 kcb->kprobe_status = KPROBE_HIT_SSDONE; in kprobe_ftrace_handler()
|
/linux/arch/arm64/kernel/probes/ |
A D | kprobes.c | 76 post_kprobe_handler(p, kcb, regs); in arch_simulate_insn() 152 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 158 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 192 save_previous_kprobe(kcb); in setup_singlestep() 214 struct kprobe_ctlblk *kcb) in reenter_kprobe() argument 216 switch (kcb->kprobe_status) { in reenter_kprobe() 245 restore_previous_kprobe(kcb); in post_kprobe_handler() 261 switch (kcb->kprobe_status) { in kprobe_fault_handler() 275 restore_previous_kprobe(kcb); in kprobe_fault_handler() 297 struct kprobe_ctlblk *kcb; in kprobe_handler() local [all …]
|
/linux/arch/parisc/kernel/ |
A D | kprobes.c | 57 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 63 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 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 88 kcb = get_kprobe_ctlblk(); in parisc_kprobe_break_handler() 104 save_previous_kprobe(kcb); in parisc_kprobe_break_handler() 144 restore_previous_kprobe(kcb); in parisc_kprobe_ss_handler() 165 regs->iaoq[0] = kcb->iaoq[1]; in parisc_kprobe_ss_handler() 168 regs->iaoq[1] = kcb->iaoq[0]; in parisc_kprobe_ss_handler() [all …]
|
A D | ftrace.c | 204 struct kprobe_ctlblk *kcb; in kprobe_ftrace_handler() local 225 kcb = get_kprobe_ctlblk(); in kprobe_ftrace_handler() 226 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_ftrace_handler() 236 kcb->kprobe_status = KPROBE_HIT_SSDONE; in kprobe_ftrace_handler()
|
/linux/arch/powerpc/kernel/ |
A D | kprobes.c | 203 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 204 kcb->prev_kprobe.saved_msr = kcb->kprobe_saved_msr; in save_previous_kprobe() 210 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 211 kcb->kprobe_saved_msr = kcb->prev_kprobe.saved_msr; in restore_previous_kprobe() 215 struct kprobe_ctlblk *kcb) in set_current_kprobe() argument 290 struct kprobe_ctlblk *kcb; in kprobe_handler() local 304 kcb = get_kprobe_ctlblk(); in kprobe_handler() 341 kcb->kprobe_saved_msr); in kprobe_handler() 351 save_previous_kprobe(kcb); in kprobe_handler() 501 switch(kcb->kprobe_status) { in kprobe_fault_handler() [all …]
|
A D | kprobes-ftrace.c | 20 struct kprobe_ctlblk *kcb; in kprobe_ftrace_handler() local 33 kcb = get_kprobe_ctlblk(); in kprobe_ftrace_handler() 44 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_ftrace_handler() 52 kcb->kprobe_status = KPROBE_HIT_SSDONE; in kprobe_ftrace_handler()
|
/linux/arch/s390/kernel/ |
A D | kprobes.c | 268 kcb->prev_kprobe.status = kcb->kprobe_status; in push_kprobe() 281 kcb->kprobe_status = kcb->prev_kprobe.status; in pop_kprobe() 297 switch (kcb->kprobe_status) { in kprobe_reenter_check() 319 struct kprobe_ctlblk *kcb; in kprobe_handler() local 328 kcb = get_kprobe_ctlblk(); in kprobe_handler() 343 push_kprobe(kcb, p); in kprobe_handler() 353 push_kprobe(kcb, p); in kprobe_handler() 356 pop_kprobe(kcb); in kprobe_handler() 449 pop_kprobe(kcb); in post_kprobe_handler() 470 switch(kcb->kprobe_status) { in kprobe_trap_handler() [all …]
|
A D | ftrace.c | 283 struct kprobe_ctlblk *kcb; in kprobe_ftrace_handler() local 304 kcb = get_kprobe_ctlblk(); in kprobe_ftrace_handler() 305 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_ftrace_handler() 314 kcb->kprobe_status = KPROBE_HIT_SSDONE; in kprobe_ftrace_handler()
|
/linux/arch/sh/kernel/ |
A D | kprobes.c | 124 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 130 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 134 struct kprobe_ctlblk *kcb) in set_current_kprobe() argument 218 struct kprobe_ctlblk *kcb; in kprobe_handler() local 225 kcb = get_kprobe_ctlblk(); in kprobe_handler() 243 save_previous_kprobe(kcb); in kprobe_handler() 244 set_current_kprobe(p, regs, kcb); in kprobe_handler() 270 set_current_kprobe(p, regs, kcb); in kprobe_handler() 348 restore_previous_kprobe(kcb); in post_kprobe_handler() 366 switch (kcb->kprobe_status) { in kprobe_fault_handler() [all …]
|
/linux/arch/x86/kernel/kprobes/ |
A D | core.c | 781 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 782 kcb->prev_kprobe.old_flags = kcb->kprobe_old_flags; in save_previous_kprobe() 783 kcb->prev_kprobe.saved_flags = kcb->kprobe_saved_flags; in save_previous_kprobe() 790 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 791 kcb->kprobe_old_flags = kcb->prev_kprobe.old_flags; in restore_previous_kprobe() 792 kcb->kprobe_saved_flags = kcb->prev_kprobe.saved_flags; in restore_previous_kprobe() 800 kcb->kprobe_saved_flags = kcb->kprobe_old_flags in set_current_kprobe() 853 save_previous_kprobe(kcb); in setup_singlestep() 910 switch (kcb->kprobe_status) { in reenter_kprobe() 951 struct kprobe_ctlblk *kcb; in kprobe_int3_handler() local [all …]
|
A D | ftrace.c | 21 struct kprobe_ctlblk *kcb; in kprobe_ftrace_handler() local 32 kcb = get_kprobe_ctlblk(); in kprobe_ftrace_handler() 41 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_ftrace_handler() 49 kcb->kprobe_status = KPROBE_HIT_SSDONE; in kprobe_ftrace_handler()
|
A D | opt.c | 181 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); in optimized_callback() local 191 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in optimized_callback()
|
/linux/arch/arc/kernel/ |
A D | kprobes.c | 81 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 82 kcb->prev_kprobe.status = kcb->kprobe_status; in save_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() 230 kcb->kprobe_status = KPROBE_HIT_SS; in arc_kprobe_handler() 271 restore_previous_kprobe(kcb); in arc_post_kprobe_handler() 294 switch (kcb->kprobe_status) { in kprobe_fault_handler() [all …]
|
/linux/arch/arm/probes/kprobes/ |
A D | core.c | 195 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 201 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 239 struct kprobe_ctlblk *kcb; in kprobe_handler() local 241 kcb = get_kprobe_ctlblk(); in kprobe_handler() 269 switch (kcb->kprobe_status) { in kprobe_handler() 275 save_previous_kprobe(kcb); in kprobe_handler() 278 singlestep(p, regs, kcb); in kprobe_handler() 279 restore_previous_kprobe(kcb); in kprobe_handler() 304 singlestep(p, regs, kcb); in kprobe_handler() 336 switch (kcb->kprobe_status) { in kprobe_fault_handler() [all …]
|
A D | opt-arm.c | 155 struct kprobe_ctlblk *kcb; in optimized_callback() local 162 kcb = get_kprobe_ctlblk(); in optimized_callback() 168 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in optimized_callback()
|
/linux/arch/ia64/kernel/ |
A D | kprobes.c | 377 kcb->prev_kprobe[i-1].status = kcb->kprobe_status; in save_previous_kprobe() 385 kcb->kprobe_status = kcb->prev_kprobe[i-1].status; in restore_previous_kprobe() 390 struct kprobe_ctlblk *kcb) in set_current_kprobe() argument 701 struct kprobe_ctlblk *kcb; in pre_kprobes_handler() local 708 kcb = get_kprobe_ctlblk(); in pre_kprobes_handler() 725 save_previous_kprobe(kcb); in pre_kprobes_handler() 726 set_current_kprobe(p, kcb); in pre_kprobes_handler() 762 set_current_kprobe(p, kcb); in pre_kprobes_handler() 810 restore_previous_kprobe(kcb); in post_kprobes_handler() 826 switch(kcb->kprobe_status) { in kprobe_fault_handler() [all …]
|
/linux/kernel/ |
A D | kprobes.c | 1246 struct kprobe_ctlblk *kcb; in kprobe_busy_begin() local 1250 kcb = get_kprobe_ctlblk(); in kprobe_busy_begin() 1251 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_busy_begin()
|