/linux/arch/loongarch/kernel/ |
H A D | kprobes.c | 88 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 95 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 136 if (kcb->kprobe_status == KPROBE_REENTER) { in post_kprobe_handler() 146 kcb->kprobe_status = KPROBE_HIT_SSDONE; in post_kprobe_handler() 163 kcb->kprobe_status = KPROBE_REENTER; in setup_singlestep() 165 kcb->kprobe_status = KPROBE_HIT_SS; in setup_singlestep() 186 switch (kcb->kprobe_status) { in reenter_kprobe() 229 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_breakpoint_handler() 276 if (cur && (kcb->kprobe_status & (KPROBE_HIT_SS | KPROBE_REENTER)) && in kprobe_singlestep_handler() 293 switch (kcb->kprobe_status) { in kprobe_fault_handler() [all …]
|
/linux/arch/sh/kernel/ |
H A D | kprobes.c | 119 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 125 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 228 if (kcb->kprobe_status == KPROBE_HIT_SS && in kprobe_handler() 242 kcb->kprobe_status = KPROBE_REENTER; in kprobe_handler() 266 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_handler() 276 kcb->kprobe_status = KPROBE_HIT_SS; in kprobe_handler() 316 if ((kcb->kprobe_status != KPROBE_REENTER) && cur->post_handler) { in post_kprobe_handler() 317 kcb->kprobe_status = KPROBE_HIT_SSDONE; in post_kprobe_handler() 342 if (kcb->kprobe_status == KPROBE_REENTER) { in post_kprobe_handler() 361 switch (kcb->kprobe_status) { in kprobe_fault_handler() [all …]
|
/linux/arch/riscv/kernel/probes/ |
H A D | kprobes.c | 131 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 137 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 175 kcb->kprobe_status = KPROBE_REENTER; in setup_singlestep() 177 kcb->kprobe_status = KPROBE_HIT_SS; in setup_singlestep() 198 switch (kcb->kprobe_status) { in reenter_kprobe() 226 if (kcb->kprobe_status == KPROBE_REENTER) { in post_kprobe_handler() 232 kcb->kprobe_status = KPROBE_HIT_SSDONE; in post_kprobe_handler() 248 switch (kcb->kprobe_status) { in kprobe_fault_handler() 261 if (kcb->kprobe_status == KPROBE_REENTER) in kprobe_fault_handler() 300 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_breakpoint_handler() [all …]
|
/linux/arch/sparc/kernel/ |
H A D | kprobes.c | 80 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 88 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 133 if (kcb->kprobe_status == KPROBE_HIT_SS) { in kprobe_handler() 147 kcb->kprobe_status = KPROBE_REENTER; in kprobe_handler() 177 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_handler() 185 kcb->kprobe_status = KPROBE_HIT_SS; in kprobe_handler() 301 if ((kcb->kprobe_status != KPROBE_REENTER) && cur->post_handler) { in post_kprobe_handler() 302 kcb->kprobe_status = KPROBE_HIT_SSDONE; in post_kprobe_handler() 309 if (kcb->kprobe_status == KPROBE_REENTER) { in post_kprobe_handler() 326 switch(kcb->kprobe_status) { in kprobe_fault_handler() [all …]
|
/linux/arch/arc/kernel/ |
H A D | kprobes.c | 82 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 88 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 217 kcb->kprobe_status = KPROBE_REENTER; in arc_kprobe_handler() 222 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in arc_kprobe_handler() 231 kcb->kprobe_status = KPROBE_HIT_SS; in arc_kprobe_handler() 266 if ((kcb->kprobe_status != KPROBE_REENTER) && cur->post_handler) { in arc_post_kprobe_handler() 267 kcb->kprobe_status = KPROBE_HIT_SSDONE; in arc_post_kprobe_handler() 271 if (kcb->kprobe_status == KPROBE_REENTER) { in arc_post_kprobe_handler() 295 switch (kcb->kprobe_status) { in kprobe_fault_handler() 306 if (kcb->kprobe_status == KPROBE_REENTER) in kprobe_fault_handler()
|
/linux/arch/mips/kernel/ |
H A D | kprobes.c | 165 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 174 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 299 if (kcb->kprobe_status == KPROBE_HIT_SS && in kprobe_handler() 316 kcb->kprobe_status = KPROBE_REENTER; in kprobe_handler() 351 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_handler() 362 kcb->kprobe_status = KPROBE_HIT_SSDONE; in kprobe_handler() 368 kcb->kprobe_status = KPROBE_HIT_SS; in kprobe_handler() 387 if ((kcb->kprobe_status != KPROBE_REENTER) && cur->post_handler) { in post_kprobe_handler() 388 kcb->kprobe_status = KPROBE_HIT_SSDONE; in post_kprobe_handler() 397 if (kcb->kprobe_status == KPROBE_REENTER) { in post_kprobe_handler() [all …]
|
/linux/arch/csky/kernel/probes/ |
H A D | kprobes.c | 136 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 142 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 199 kcb->kprobe_status = KPROBE_REENTER; in setup_singlestep() 201 kcb->kprobe_status = KPROBE_HIT_SS; in setup_singlestep() 224 switch (kcb->kprobe_status) { in reenter_kprobe() 257 if (kcb->kprobe_status == KPROBE_REENTER) { in post_kprobe_handler() 263 kcb->kprobe_status = KPROBE_HIT_SSDONE; in post_kprobe_handler() 279 switch (kcb->kprobe_status) { in kprobe_fault_handler() 292 if (kcb->kprobe_status == KPROBE_REENTER) in kprobe_fault_handler() 329 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_breakpoint_handler()
|
H A D | ftrace.c | 41 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_ftrace_handler() 50 kcb->kprobe_status = KPROBE_HIT_SSDONE; in kprobe_ftrace_handler()
|
/linux/arch/x86/kernel/kprobes/ |
H A D | core.c | 848 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 857 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 875 if (kcb->kprobe_status == KPROBE_REENTER) { in kprobe_post_process() 883 kcb->kprobe_status = KPROBE_HIT_SSDONE; in kprobe_post_process() 914 kcb->kprobe_status = KPROBE_REENTER; in setup_singlestep() 916 kcb->kprobe_status = KPROBE_HIT_SS; in setup_singlestep() 969 switch (kcb->kprobe_status) { in reenter_kprobe() 998 return (kcb->kprobe_status == KPROBE_HIT_SS || in kprobe_is_ss() 999 kcb->kprobe_status == KPROBE_REENTER); in kprobe_is_ss() 1031 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_int3_handler() [all …]
|
H A D | opt.c | 199 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in optimized_callback()
|
/linux/arch/powerpc/kernel/ |
H A D | kprobes-ftrace.c | 47 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_ftrace_handler() 55 kcb->kprobe_status = KPROBE_HIT_SSDONE; in kprobe_ftrace_handler()
|
/linux/arch/arm64/include/asm/ |
H A D | kprobes.h | 33 unsigned int kprobe_status; member
|
/linux/arch/riscv/include/asm/ |
H A D | kprobes.h | 34 unsigned int kprobe_status; member
|
/linux/arch/csky/include/asm/ |
H A D | kprobes.h | 34 unsigned int kprobe_status; member
|
/linux/arch/sh/include/asm/ |
H A D | kprobes.h | 44 unsigned long kprobe_status; member
|
/linux/arch/arc/include/asm/ |
H A D | kprobes.h | 41 unsigned int kprobe_status; member
|
/linux/arch/parisc/include/asm/ |
H A D | kprobes.h | 48 unsigned int kprobe_status; member
|
/linux/arch/sparc/include/asm/ |
H A D | kprobes.h | 44 unsigned long kprobe_status; member
|
/linux/arch/mips/include/asm/ |
H A D | kprobes.h | 64 unsigned long kprobe_status; member
|
/linux/arch/loongarch/include/asm/ |
H A D | kprobes.h | 42 unsigned int kprobe_status; member
|
/linux/arch/s390/include/asm/ |
H A D | kprobes.h | 67 unsigned long kprobe_status; member
|
/linux/arch/arm/include/asm/ |
H A D | kprobes.h | 37 unsigned int kprobe_status; member
|
/linux/arch/s390/kernel/ |
H A D | ftrace.c | 335 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_ftrace_handler() 344 kcb->kprobe_status = KPROBE_HIT_SSDONE; in kprobe_ftrace_handler()
|
/linux/arch/x86/include/asm/ |
H A D | kprobes.h | 109 unsigned long kprobe_status; member
|
/linux/kernel/ |
H A D | kprobes.c | 1249 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_busy_begin() 2165 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kretprobe_rethook_handler()
|