/linux-6.12.1/arch/loongarch/kernel/ |
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-6.12.1/arch/sh/kernel/ |
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-6.12.1/arch/powerpc/kernel/ |
D | kprobes.c | 213 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 220 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 324 if (kcb->kprobe_status == KPROBE_HIT_SS && is_trap(insn)) { in kprobe_handler() 341 kcb->kprobe_status = KPROBE_REENTER; in kprobe_handler() 355 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_handler() 371 kcb->kprobe_status = KPROBE_HIT_SSDONE; in kprobe_handler() 378 kcb->kprobe_status = KPROBE_HIT_SS; in kprobe_handler() 409 if ((kcb->kprobe_status != KPROBE_REENTER) && cur->post_handler) { in kprobe_post_handler() 410 kcb->kprobe_status = KPROBE_HIT_SSDONE; in kprobe_post_handler() 419 if (kcb->kprobe_status == KPROBE_REENTER) { in kprobe_post_handler() [all …]
|
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-6.12.1/arch/riscv/kernel/probes/ |
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-6.12.1/arch/arm64/kernel/probes/ |
D | kprobes.c | 160 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 166 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 202 kcb->kprobe_status = KPROBE_REENTER; in setup_singlestep() 204 kcb->kprobe_status = KPROBE_HIT_SS; in setup_singlestep() 224 switch (kcb->kprobe_status) { in reenter_kprobe() 252 if (kcb->kprobe_status == KPROBE_REENTER) { in post_kprobe_handler() 257 kcb->kprobe_status = KPROBE_HIT_SSDONE; in post_kprobe_handler() 269 switch (kcb->kprobe_status) { in kprobe_fault_handler() 282 if (kcb->kprobe_status == KPROBE_REENTER) { in kprobe_fault_handler() 320 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_breakpoint_handler() [all …]
|
/linux-6.12.1/arch/sparc/kernel/ |
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-6.12.1/arch/arc/kernel/ |
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-6.12.1/arch/parisc/kernel/ |
D | kprobes.c | 63 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 69 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 112 kcb->kprobe_status = KPROBE_REENTER; in parisc_kprobe_break_handler() 117 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in parisc_kprobe_break_handler() 127 kcb->kprobe_status = KPROBE_HIT_SS; in parisc_kprobe_break_handler() 147 if (kcb->kprobe_status == KPROBE_REENTER) { in parisc_kprobe_ss_handler() 176 kcb->kprobe_status = KPROBE_HIT_SSDONE; in parisc_kprobe_ss_handler()
|
D | ftrace.c | 229 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_ftrace_handler() 239 kcb->kprobe_status = KPROBE_HIT_SSDONE; in kprobe_ftrace_handler()
|
/linux-6.12.1/arch/mips/kernel/ |
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-6.12.1/arch/csky/kernel/probes/ |
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()
|
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-6.12.1/arch/arm/probes/kprobes/ |
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() 269 switch (kcb->kprobe_status) { in kprobe_handler() 277 kcb->kprobe_status = KPROBE_REENTER; in kprobe_handler() 293 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_handler() 303 kcb->kprobe_status = KPROBE_HIT_SS; in kprobe_handler() 306 kcb->kprobe_status = KPROBE_HIT_SSDONE; in kprobe_handler() 336 switch (kcb->kprobe_status) { in kprobe_fault_handler() 347 if (kcb->kprobe_status == KPROBE_REENTER) { in kprobe_fault_handler()
|
/linux-6.12.1/arch/s390/kernel/ |
D | kprobes.c | 238 kcb->prev_kprobe.status = kcb->kprobe_status; in push_kprobe() 251 kcb->kprobe_status = kcb->prev_kprobe.status; in pop_kprobe() 258 switch (kcb->kprobe_status) { in kprobe_reenter_check() 305 kcb->kprobe_status = KPROBE_REENTER; in kprobe_handler() 315 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_handler() 321 kcb->kprobe_status = KPROBE_HIT_SS; in kprobe_handler() 378 if (kcb->kprobe_status != KPROBE_REENTER && p->post_handler) { in post_kprobe_handler() 379 kcb->kprobe_status = KPROBE_HIT_SSDONE; in post_kprobe_handler() 402 switch(kcb->kprobe_status) { in kprobe_trap_handler()
|
/linux-6.12.1/arch/x86/kernel/kprobes/ |
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 …]
|
D | ftrace.c | 44 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_ftrace_handler() 52 kcb->kprobe_status = KPROBE_HIT_SSDONE; in kprobe_ftrace_handler()
|
/linux-6.12.1/arch/arm64/include/asm/ |
D | kprobes.h | 33 unsigned int kprobe_status; member
|
/linux-6.12.1/arch/riscv/include/asm/ |
D | kprobes.h | 34 unsigned int kprobe_status; member
|
/linux-6.12.1/arch/csky/include/asm/ |
D | kprobes.h | 34 unsigned int kprobe_status; member
|
/linux-6.12.1/arch/arc/include/asm/ |
D | kprobes.h | 41 unsigned int kprobe_status; member
|
/linux-6.12.1/arch/sh/include/asm/ |
D | kprobes.h | 44 unsigned long kprobe_status; member
|
/linux-6.12.1/arch/sparc/include/asm/ |
D | kprobes.h | 44 unsigned long kprobe_status; member
|
/linux-6.12.1/arch/parisc/include/asm/ |
D | kprobes.h | 48 unsigned int kprobe_status; member
|
/linux-6.12.1/arch/mips/include/asm/ |
D | kprobes.h | 64 unsigned long kprobe_status; member
|