/linux-6.6.21/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.6.21/arch/riscv/kernel/probes/ |
D | kprobes.c | 139 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 145 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 183 kcb->kprobe_status = KPROBE_REENTER; in setup_singlestep() 185 kcb->kprobe_status = KPROBE_HIT_SS; in setup_singlestep() 206 switch (kcb->kprobe_status) { in reenter_kprobe() 234 if (kcb->kprobe_status == KPROBE_REENTER) { in post_kprobe_handler() 240 kcb->kprobe_status = KPROBE_HIT_SSDONE; in post_kprobe_handler() 256 switch (kcb->kprobe_status) { in kprobe_fault_handler() 269 if (kcb->kprobe_status == KPROBE_REENTER) in kprobe_fault_handler() 308 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_breakpoint_handler() [all …]
|
D | ftrace.c | 32 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_ftrace_handler() 41 kcb->kprobe_status = KPROBE_HIT_SSDONE; in kprobe_ftrace_handler()
|
/linux-6.6.21/arch/sh/kernel/ |
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() 233 if (kcb->kprobe_status == KPROBE_HIT_SS && in kprobe_handler() 247 kcb->kprobe_status = KPROBE_REENTER; in kprobe_handler() 271 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_handler() 281 kcb->kprobe_status = KPROBE_HIT_SS; in kprobe_handler() 321 if ((kcb->kprobe_status != KPROBE_REENTER) && cur->post_handler) { in post_kprobe_handler() 322 kcb->kprobe_status = KPROBE_HIT_SSDONE; in post_kprobe_handler() 347 if (kcb->kprobe_status == KPROBE_REENTER) { in post_kprobe_handler() 366 switch (kcb->kprobe_status) { in kprobe_fault_handler() [all …]
|
/linux-6.6.21/arch/arm64/kernel/probes/ |
D | kprobes.c | 167 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 173 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 209 kcb->kprobe_status = KPROBE_REENTER; in setup_singlestep() 211 kcb->kprobe_status = KPROBE_HIT_SS; in setup_singlestep() 231 switch (kcb->kprobe_status) { in reenter_kprobe() 259 if (kcb->kprobe_status == KPROBE_REENTER) { in post_kprobe_handler() 264 kcb->kprobe_status = KPROBE_HIT_SSDONE; in post_kprobe_handler() 276 switch (kcb->kprobe_status) { in kprobe_fault_handler() 289 if (kcb->kprobe_status == KPROBE_REENTER) { in kprobe_fault_handler() 327 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_breakpoint_handler() [all …]
|
/linux-6.6.21/arch/powerpc/kernel/ |
D | kprobes.c | 227 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 234 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 348 if (kcb->kprobe_status == KPROBE_HIT_SS && is_trap(insn)) { in kprobe_handler() 365 kcb->kprobe_status = KPROBE_REENTER; in kprobe_handler() 379 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_handler() 395 kcb->kprobe_status = KPROBE_HIT_SSDONE; in kprobe_handler() 402 kcb->kprobe_status = KPROBE_HIT_SS; in kprobe_handler() 476 if ((kcb->kprobe_status != KPROBE_REENTER) && cur->post_handler) { in kprobe_post_handler() 477 kcb->kprobe_status = KPROBE_HIT_SSDONE; in kprobe_post_handler() 486 if (kcb->kprobe_status == KPROBE_REENTER) { in kprobe_post_handler() [all …]
|
D | kprobes-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.6.21/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.6.21/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() 216 kcb->kprobe_status = KPROBE_REENTER; in arc_kprobe_handler() 221 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in arc_kprobe_handler() 230 kcb->kprobe_status = KPROBE_HIT_SS; in arc_kprobe_handler() 265 if ((kcb->kprobe_status != KPROBE_REENTER) && cur->post_handler) { in arc_post_kprobe_handler() 266 kcb->kprobe_status = KPROBE_HIT_SSDONE; in arc_post_kprobe_handler() 270 if (kcb->kprobe_status == KPROBE_REENTER) { in arc_post_kprobe_handler() 294 switch (kcb->kprobe_status) { in kprobe_fault_handler() 305 if (kcb->kprobe_status == KPROBE_REENTER) in kprobe_fault_handler()
|
/linux-6.6.21/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 | 226 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_ftrace_handler() 236 kcb->kprobe_status = KPROBE_HIT_SSDONE; in kprobe_ftrace_handler()
|
/linux-6.6.21/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.6.21/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 | 38 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_ftrace_handler() 47 kcb->kprobe_status = KPROBE_HIT_SSDONE; in kprobe_ftrace_handler()
|
/linux-6.6.21/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.6.21/arch/s390/kernel/ |
D | kprobes.c | 267 kcb->prev_kprobe.status = kcb->kprobe_status; in push_kprobe() 280 kcb->kprobe_status = kcb->prev_kprobe.status; in pop_kprobe() 287 switch (kcb->kprobe_status) { in kprobe_reenter_check() 334 kcb->kprobe_status = KPROBE_REENTER; in kprobe_handler() 344 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_handler() 350 kcb->kprobe_status = KPROBE_HIT_SS; in kprobe_handler() 407 if (kcb->kprobe_status != KPROBE_REENTER && p->post_handler) { in post_kprobe_handler() 408 kcb->kprobe_status = KPROBE_HIT_SSDONE; in post_kprobe_handler() 431 switch(kcb->kprobe_status) { in kprobe_trap_handler()
|
/linux-6.6.21/arch/x86/kernel/kprobes/ |
D | core.c | 801 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 810 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 828 if (kcb->kprobe_status == KPROBE_REENTER) { in kprobe_post_process() 836 kcb->kprobe_status = KPROBE_HIT_SSDONE; in kprobe_post_process() 867 kcb->kprobe_status = KPROBE_REENTER; in setup_singlestep() 869 kcb->kprobe_status = KPROBE_HIT_SS; in setup_singlestep() 922 switch (kcb->kprobe_status) { in reenter_kprobe() 951 return (kcb->kprobe_status == KPROBE_HIT_SS || in kprobe_is_ss() 952 kcb->kprobe_status == KPROBE_REENTER); in kprobe_is_ss() 984 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_int3_handler() [all …]
|
D | ftrace.c | 41 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_ftrace_handler() 49 kcb->kprobe_status = KPROBE_HIT_SSDONE; in kprobe_ftrace_handler()
|
/linux-6.6.21/arch/ia64/kernel/ |
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() 714 if ((kcb->kprobe_status == KPROBE_HIT_SS) && in pre_kprobes_handler() 729 kcb->kprobe_status = KPROBE_REENTER; in pre_kprobes_handler() 763 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in pre_kprobes_handler() 785 kcb->kprobe_status = KPROBE_HIT_SS; in pre_kprobes_handler() 801 if ((kcb->kprobe_status != KPROBE_REENTER) && cur->post_handler) { in post_kprobes_handler() 802 kcb->kprobe_status = KPROBE_HIT_SSDONE; in post_kprobes_handler() 809 if (kcb->kprobe_status == KPROBE_REENTER) { in post_kprobes_handler() 826 switch(kcb->kprobe_status) { in kprobe_fault_handler() [all …]
|
/linux-6.6.21/arch/arm64/include/asm/ |
D | kprobes.h | 33 unsigned int kprobe_status; member
|
/linux-6.6.21/arch/riscv/include/asm/ |
D | kprobes.h | 34 unsigned int kprobe_status; member
|
/linux-6.6.21/arch/csky/include/asm/ |
D | kprobes.h | 34 unsigned int kprobe_status; member
|
/linux-6.6.21/arch/arc/include/asm/ |
D | kprobes.h | 44 unsigned int kprobe_status; member
|
/linux-6.6.21/arch/parisc/include/asm/ |
D | kprobes.h | 47 unsigned int kprobe_status; member
|
/linux-6.6.21/arch/sh/include/asm/ |
D | kprobes.h | 44 unsigned long kprobe_status; member
|