/linux-6.3-rc2/include/linux/ |
A D | kprobes.h | 50 struct kprobe; 60 struct kprobe { struct 148 struct kprobe kp; 358 struct kprobe kp; 367 struct kprobe *orig); 382 bool kprobe_disarmed(struct kprobe *p); 399 struct kprobe *get_kprobe(void *addr); 420 int register_kprobe(struct kprobe *p); 438 int disable_kprobe(struct kprobe *kp); 439 int enable_kprobe(struct kprobe *kp); [all …]
|
/linux-6.3-rc2/kernel/ |
A D | kprobes.c | 379 struct kprobe *p; in get_kprobe() 408 static inline void copy_kprobe(struct kprobe *ap, struct kprobe *p) in copy_kprobe() 424 struct kprobe *kp; in opt_pre_handler() 828 static struct kprobe *alloc_aggr_kprobe(struct kprobe *p) in alloc_aggr_kprobe() 843 static void init_aggr_kprobe(struct kprobe *ap, struct kprobe *p); 887 struct kprobe *p; in optimize_all_kprobes() 1052 static struct kprobe *alloc_aggr_kprobe(struct kprobe *p) in alloc_aggr_kprobe() 1258 static int add_new_kprobe(struct kprobe *ap, struct kprobe *p) in add_new_kprobe() 1274 static void init_aggr_kprobe(struct kprobe *ap, struct kprobe *p) in init_aggr_kprobe() 1497 static struct kprobe *__get_valid_kprobe(struct kprobe *p) in __get_valid_kprobe() [all …]
|
/linux-6.3-rc2/arch/sh/kernel/ |
A D | kprobes.c | 17 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL; 40 int __kprobes arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe() 52 void __kprobes arch_copy_kprobe(struct kprobe *p) in arch_copy_kprobe() 58 void __kprobes arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe() 149 struct kprobe *op1, *op2; in prepare_singlestep() 215 struct kprobe *p; in kprobe_handler() 313 struct kprobe *cur = kprobe_running(); in post_kprobe_handler() 316 struct kprobe *p = NULL; in post_kprobe_handler() 362 struct kprobe *cur = kprobe_running(); in kprobe_fault_handler() 412 struct kprobe *p = NULL; in kprobe_exceptions_notify() [all …]
|
/linux-6.3-rc2/arch/riscv/kernel/probes/ |
A D | kprobes.c | 18 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL; 24 static void __kprobes arch_prepare_ss_slot(struct kprobe *p) in arch_prepare_ss_slot() 52 static bool __kprobes arch_check_kprobe(struct kprobe *p) in arch_check_kprobe() 67 int __kprobes arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe() 118 void __kprobes arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe() 127 void __kprobes arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe() 132 void __kprobes arch_remove_kprobe(struct kprobe *p) in arch_remove_kprobe() 202 static int __kprobes reenter_kprobe(struct kprobe *p, in reenter_kprobe() 253 struct kprobe *cur = kprobe_running(); in kprobe_fault_handler() 292 struct kprobe *p, *cur_kprobe; in kprobe_breakpoint_handler() [all …]
|
/linux-6.3-rc2/arch/parisc/kernel/ |
A D | kprobes.c | 17 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL; 20 int __kprobes arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe() 41 void __kprobes arch_remove_kprobe(struct kprobe *p) in arch_remove_kprobe() 50 void __kprobes arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe() 55 void __kprobes arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe() 72 static inline void __kprobes set_current_kprobe(struct kprobe *p) in set_current_kprobe() 77 static void __kprobes setup_singlestep(struct kprobe *p, in setup_singlestep() 87 struct kprobe *p; in parisc_kprobe_break_handler() 138 struct kprobe *p = kprobe_running(); in parisc_kprobe_ss_handler() 190 static struct kprobe trampoline_p = { [all …]
|
/linux-6.3-rc2/arch/loongarch/kernel/ |
A D | kprobes.c | 21 DEFINE_PER_CPU(struct kprobe *, current_kprobe); 45 static bool insns_need_simulation(struct kprobe *p) in insns_need_simulation() 66 static void arch_prepare_ss_slot(struct kprobe *p) in arch_prepare_ss_slot() 80 int arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe() 111 void arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe() 119 void arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe() 126 void arch_remove_kprobe(struct kprobe *p) in arch_remove_kprobe() 257 struct kprobe *p, *cur_kprobe; in kprobe_breakpoint_handler() 319 struct kprobe *cur = kprobe_running(); in kprobe_singlestep_handler() 337 struct kprobe *cur = kprobe_running(); in kprobe_fault_handler() [all …]
|
/linux-6.3-rc2/arch/arm64/kernel/probes/ |
A D | kprobes.c | 38 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL; 44 static void __kprobes arch_prepare_ss_slot(struct kprobe *p) in arch_prepare_ss_slot() 94 int __kprobes arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe() 140 void __kprobes arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe() 149 void __kprobes arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe() 156 void __kprobes arch_remove_kprobe(struct kprobe *p) in arch_remove_kprobe() 227 static int __kprobes reenter_kprobe(struct kprobe *p, in reenter_kprobe() 273 struct kprobe *cur = kprobe_running(); in kprobe_fault_handler() 304 struct kprobe *p, *cur_kprobe; in kprobe_breakpoint_handler() 355 struct kprobe *cur = kprobe_running(); in kprobe_breakpoint_ss_handler() [all …]
|
/linux-6.3-rc2/arch/s390/kernel/ |
A D | kprobes.c | 30 DEFINE_PER_CPU(struct kprobe *, current_kprobe); 129 struct kprobe *kp; in can_probe() 170 int arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe() 185 struct kprobe *p; 192 struct kprobe *p = args->p; in swap_instruction() 201 void arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe() 209 void arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe() 217 void arch_remove_kprobe(struct kprobe *p) in arch_remove_kprobe() 310 struct kprobe *p; in kprobe_handler() 401 struct kprobe *p = kprobe_running(); in post_kprobe_handler() [all …]
|
/linux-6.3-rc2/arch/csky/kernel/probes/ |
A D | kprobes.c | 16 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL; 78 int __kprobes arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe() 114 void __kprobes arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe() 120 void __kprobes arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe() 125 void __kprobes arch_remove_kprobe(struct kprobe *p) in arch_remove_kprobe() 190 static void __kprobes setup_singlestep(struct kprobe *p, in setup_singlestep() 220 static int __kprobes reenter_kprobe(struct kprobe *p, in reenter_kprobe() 247 struct kprobe *cur = kprobe_running(); in post_kprobe_handler() 276 struct kprobe *cur = kprobe_running(); in kprobe_fault_handler() 313 struct kprobe *p, *cur_kprobe; in kprobe_breakpoint_handler() [all …]
|
/linux-6.3-rc2/arch/arc/kernel/ |
A D | kprobes.c | 20 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL; 23 int __kprobes arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe() 37 void __kprobes arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe() 45 void __kprobes arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe() 53 void __kprobes arch_remove_kprobe(struct kprobe *p) in arch_remove_kprobe() 91 static inline void __kprobes set_current_kprobe(struct kprobe *p) in set_current_kprobe() 195 struct kprobe *p; in arc_kprobe_handler() 247 struct kprobe *cur = kprobe_running(); in arc_post_kprobe_handler() 291 struct kprobe *cur = kprobe_running(); in kprobe_fault_handler() 393 static struct kprobe trampoline_p = { [all …]
|
/linux-6.3-rc2/arch/sparc/kernel/ |
A D | kprobes.c | 45 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL; 50 int __kprobes arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe() 65 void __kprobes arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe() 71 void __kprobes arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe() 118 struct kprobe *p; in kprobe_handler() 277 static void __kprobes resume_execution(struct kprobe *p, in resume_execution() 295 struct kprobe *cur = kprobe_running(); in post_kprobe_handler() 322 struct kprobe *cur = kprobe_running(); in kprobe_fault_handler() 449 static int __kprobes trampoline_probe_handler(struct kprobe *p, in trampoline_probe_handler() 473 static struct kprobe trampoline_p = { [all …]
|
/linux-6.3-rc2/arch/powerpc/kernel/ |
A D | kprobes.c | 31 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL; 143 int arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe() 146 struct kprobe *prev; in arch_prepare_kprobe() 190 void arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe() 196 void arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe() 202 void arch_remove_kprobe(struct kprobe *p) in arch_remove_kprobe() 298 struct kprobe *p; in kprobe_handler() 465 struct kprobe *cur = kprobe_running(); in kprobe_post_handler() 508 struct kprobe *cur = kprobe_running(); in kprobe_fault_handler() 556 static struct kprobe trampoline_p = { [all …]
|
/linux-6.3-rc2/arch/mips/kernel/ |
A D | kprobes.c | 44 DEFINE_PER_CPU(struct kprobe *, current_kprobe); 78 int arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe() 139 void arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe() 146 void arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe() 153 void arch_remove_kprobe(struct kprobe *p) in arch_remove_kprobe() 266 static void resume_execution(struct kprobe *p, in resume_execution() 281 struct kprobe *p; in kprobe_handler() 381 struct kprobe *cur = kprobe_running(); in post_kprobe_handler() 410 struct kprobe *cur = kprobe_running(); in kprobe_fault_handler() 508 int arch_trampoline_kprobe(struct kprobe *p) in arch_trampoline_kprobe() [all …]
|
/linux-6.3-rc2/arch/x86/kernel/kprobes/ |
A D | core.c | 60 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL; 195 struct kprobe *kp; in __recover_probed_insn() 674 static int arch_copy_kprobe(struct kprobe *p) in arch_copy_kprobe() 707 int arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe() 733 void arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe() 742 void arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe() 751 void arch_remove_kprobe(struct kprobe *p) in arch_remove_kprobe() 781 set_current_kprobe(struct kprobe *p, struct pt_regs *regs, in set_current_kprobe() 927 struct kprobe *p; in kprobe_int3_handler() 981 struct kprobe *cur = kprobe_running(); in kprobe_fault_handler() [all …]
|
/linux-6.3-rc2/arch/arm/probes/kprobes/ |
A D | test-core.c | 326 static struct kprobe the_kprobe = { 520 struct kprobe k = { in kprobe_benchmark() 1161 struct kprobe kprobe; member 1169 unregister_kprobe(&probe->kprobe); in unregister_test_probe() 1182 ret = register_kprobe(&probe->kprobe); in register_test_probe() 1242 .kprobe.pre_handler = test_before_pre_handler, 1247 .kprobe.pre_handler = test_case_pre_handler, 1251 .kprobe.pre_handler = test_after_pre_handler, 1255 .kprobe.pre_handler = test_after_pre_handler, 1411 test_after2_probe.kprobe.addr = in kprobes_test_case_start() [all …]
|
A D | core.c | 44 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL; 48 int __kprobes arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe() 120 void __kprobes arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe() 178 void __kprobes arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe() 184 void __kprobes arch_remove_kprobe(struct kprobe *p) in arch_remove_kprobe() 204 static void __kprobes set_current_kprobe(struct kprobe *p) in set_current_kprobe() 210 singlestep_skip(struct kprobe *p, struct pt_regs *regs) in singlestep_skip() 224 singlestep(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) in singlestep() 238 struct kprobe *p, *cur; in kprobe_handler() 333 struct kprobe *cur = kprobe_running(); in kprobe_fault_handler() [all …]
|
/linux-6.3-rc2/arch/ia64/kernel/ |
A D | kprobes.c | 25 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL; 88 struct kprobe *p) in update_kprobe_inst_flag() 288 struct kprobe *p, in prepare_break_inst() 476 struct kprobe *other_kp; in prepare_booster() 491 int __kprobes arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe() 530 void __kprobes arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe() 557 void __kprobes arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe() 697 struct kprobe *p; in pre_kprobes_handler() 795 struct kprobe *cur = kprobe_running(); in post_kprobes_handler() 822 struct kprobe *cur = kprobe_running(); in kprobe_fault_handler() [all …]
|
/linux-6.3-rc2/Documentation/bpf/libbpf/ |
A D | program_types.rst | 76 …BE`` | | ``kprobe+`` [#kprobe]_ … 78 … | | ``kretprobe+`` [#kprobe]_ | … 94 | | ``BPF_TRACE_KPROBE_MULTI`` | ``kprobe.mul… 191 .. [#kprobe] The ``kprobe`` attach format is ``kprobe/<function>[+<offset>]``. Valid 197 .. [#kpmulti] The ``kprobe.multi`` attach format is ``kprobe.multi/<pattern>`` where ``pattern``
|
/linux-6.3-rc2/arch/x86/include/asm/ |
A D | kprobes.h | 24 struct kprobe; 51 void arch_remove_kprobe(struct kprobe *p); 80 void (*emulate_op)(struct kprobe *p, struct pt_regs *regs); 101 struct kprobe *kp;
|
/linux-6.3-rc2/drivers/misc/lkdtm/ |
A D | core.c | 40 static int lkdtm_kprobe_handler(struct kprobe *kp, struct pt_regs *regs); 45 .kprobe = { \ 60 struct kprobe kprobe; member 105 static struct kprobe *lkdtm_kprobe; 170 if (!crashpoint->kprobe.symbol_name) { in lkdtm_register_cpoint() 180 lkdtm_kprobe = &crashpoint->kprobe; in lkdtm_register_cpoint() 184 crashpoint->kprobe.symbol_name); in lkdtm_register_cpoint() 199 static int lkdtm_kprobe_handler(struct kprobe *kp, struct pt_regs *regs) in lkdtm_kprobe_handler()
|
/linux-6.3-rc2/Documentation/trace/ |
A D | kprobes.rst | 72 kprobe struct and the saved registers. 235 If the kprobe can be optimized, Kprobes enqueues the kprobe to an 339 kprobe address resolution code. 362 int register_kprobe(struct kprobe *kp); 459 void unregister_kprobe(struct kprobe *kp); 476 int register_kprobes(struct kprobe **kps, int num); 516 int disable_kprobe(struct kprobe *kp); 528 int enable_kprobe(struct kprobe *kp); 646 hit typically takes 50-75% longer than a kprobe hit. 652 k = kprobe; r = return probe; kr = kprobe + return probe [all …]
|
/linux-6.3-rc2/arch/parisc/include/asm/ |
A D | kprobes.h | 26 struct kprobe; 28 void arch_remove_kprobe(struct kprobe *p); 42 struct kprobe *kp;
|
/linux-6.3-rc2/arch/arc/include/asm/ |
A D | kprobes.h | 31 struct kprobe; 33 void arch_remove_kprobe(struct kprobe *p); 39 struct kprobe *kp;
|
/linux-6.3-rc2/arch/sh/include/asm/ |
A D | kprobes.h | 26 struct kprobe; 28 void arch_remove_kprobe(struct kprobe *); 38 struct kprobe *kp;
|
/linux-6.3-rc2/arch/mips/include/asm/ |
A D | kprobes.h | 25 struct kprobe; 43 void arch_remove_kprobe(struct kprobe *p); 53 struct kprobe *kp;
|