/linux-4.1.27/include/linux/ |
D | kprobes.h | 60 struct kprobe; 64 typedef int (*kprobe_pre_handler_t) (struct kprobe *, struct pt_regs *); 65 typedef int (*kprobe_break_handler_t) (struct kprobe *, struct pt_regs *); 66 typedef void (*kprobe_post_handler_t) (struct kprobe *, struct pt_regs *, 68 typedef int (*kprobe_fault_handler_t) (struct kprobe *, struct pt_regs *, 73 struct kprobe { struct 133 static inline int kprobe_gone(struct kprobe *p) in kprobe_gone() 139 static inline int kprobe_disabled(struct kprobe *p) in kprobe_disabled() 145 static inline int kprobe_optimized(struct kprobe *p) in kprobe_optimized() 151 static inline int kprobe_ftrace(struct kprobe *p) in kprobe_ftrace() [all …]
|
/linux-4.1.27/kernel/ |
D | kprobes.c | 79 static DEFINE_PER_CPU(struct kprobe *, kprobe_instance) = NULL; 288 static inline void set_kprobe_instance(struct kprobe *kp) in set_kprobe_instance() 304 struct kprobe *get_kprobe(void *addr) in get_kprobe() 307 struct kprobe *p; in get_kprobe() 319 static int aggr_pre_handler(struct kprobe *p, struct pt_regs *regs); 322 static inline int kprobe_aggrprobe(struct kprobe *p) in kprobe_aggrprobe() 328 static inline int kprobe_unused(struct kprobe *p) in kprobe_unused() 337 static inline void copy_kprobe(struct kprobe *ap, struct kprobe *p) in copy_kprobe() 351 void opt_pre_handler(struct kprobe *p, struct pt_regs *regs) in opt_pre_handler() 353 struct kprobe *kp; in opt_pre_handler() [all …]
|
D | test_kprobes.c | 35 static int kp_pre_handler(struct kprobe *p, struct pt_regs *regs) in kp_pre_handler() 41 static void kp_post_handler(struct kprobe *p, struct pt_regs *regs, in kp_post_handler() 51 static struct kprobe kp = { 88 static int kp_pre_handler2(struct kprobe *p, struct pt_regs *regs) in kp_pre_handler2() 94 static void kp_post_handler2(struct kprobe *p, struct pt_regs *regs, in kp_post_handler2() 104 static struct kprobe kp2 = { 113 struct kprobe *kps[2] = {&kp, &kp2}; in test_kprobes()
|
/linux-4.1.27/arch/avr32/kernel/ |
D | kprobes.c | 21 DEFINE_PER_CPU(struct kprobe *, current_kprobe); 27 int __kprobes arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe() 48 void __kprobes arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe() 57 void __kprobes arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe() 66 static void __kprobes prepare_singlestep(struct kprobe *p, struct pt_regs *regs) in prepare_singlestep() 90 static void __kprobes resume_execution(struct kprobe *p, struct pt_regs *regs) in resume_execution() 105 static void __kprobes set_current_kprobe(struct kprobe *p) in set_current_kprobe() 112 struct kprobe *p; in kprobe_handler() 167 struct kprobe *cur = kprobe_running(); in post_kprobe_handler() 188 struct kprobe *cur = kprobe_running(); in kprobe_fault_handler() [all …]
|
/linux-4.1.27/arch/sh/kernel/ |
D | kprobes.c | 20 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL; 23 static DEFINE_PER_CPU(struct kprobe, saved_current_opcode); 24 static DEFINE_PER_CPU(struct kprobe, saved_next_opcode); 25 static DEFINE_PER_CPU(struct kprobe, saved_next_opcode2); 43 int __kprobes arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe() 55 void __kprobes arch_copy_kprobe(struct kprobe *p) in arch_copy_kprobe() 61 void __kprobes arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe() 68 void __kprobes arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe() 75 int __kprobes arch_trampoline_kprobe(struct kprobe *p) in arch_trampoline_kprobe() 91 struct kprobe *p = get_kprobe((kprobe_opcode_t *) pc + 1); in kprobe_handle_illslot() [all …]
|
/linux-4.1.27/arch/tile/kernel/ |
D | kprobes.c | 33 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL; 85 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() 129 void __kprobes arch_disarm_kprobe(struct kprobe *kp) in arch_disarm_kprobe() 144 void __kprobes arch_remove_kprobe(struct kprobe *p) in arch_remove_kprobe() 166 static void __kprobes set_current_kprobe(struct kprobe *p, struct pt_regs *regs, in set_current_kprobe() 173 static void __kprobes prepare_singlestep(struct kprobe *p, struct pt_regs *regs) in prepare_singlestep() 185 struct kprobe *p; in kprobe_handler() 281 static void __kprobes resume_execution(struct kprobe *p, in resume_execution() 291 struct kprobe *cur = kprobe_running(); in post_kprobe_handler() [all …]
|
/linux-4.1.27/arch/arc/kernel/ |
D | kprobes.c | 23 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL; 26 int __kprobes arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe() 40 void __kprobes arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe() 48 void __kprobes arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe() 56 void __kprobes arch_remove_kprobe(struct kprobe *p) in arch_remove_kprobe() 94 static inline void __kprobes set_current_kprobe(struct kprobe *p) in set_current_kprobe() 99 static void __kprobes resume_execution(struct kprobe *p, unsigned long addr, in resume_execution() 128 static void __kprobes setup_singlestep(struct kprobe *p, struct pt_regs *regs) in setup_singlestep() 198 struct kprobe *p; in arc_kprobe_handler() 256 struct kprobe *cur = kprobe_running(); in arc_post_kprobe_handler() [all …]
|
/linux-4.1.27/arch/s390/kernel/ |
D | kprobes.c | 37 DEFINE_PER_CPU(struct kprobe *, current_kprobe); 62 static void copy_instruction(struct kprobe *p) in copy_instruction() 102 static int s390_get_insn_slot(struct kprobe *p) in s390_get_insn_slot() 118 static void s390_free_insn_slot(struct kprobe *p) in s390_free_insn_slot() 130 int arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe() 144 int arch_check_ftrace_location(struct kprobe *p) in arch_check_ftrace_location() 150 struct kprobe *p; 160 struct kprobe *p = args->p; in swap_instruction() 187 void arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe() 195 void arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe() [all …]
|
/linux-4.1.27/arch/powerpc/kernel/ |
D | kprobes.c | 40 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL; 45 int __kprobes arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe() 78 void __kprobes arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe() 85 void __kprobes arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe() 92 void __kprobes arch_remove_kprobe(struct kprobe *p) in arch_remove_kprobe() 100 static void __kprobes prepare_singlestep(struct kprobe *p, struct pt_regs *regs) in prepare_singlestep() 127 static void __kprobes set_current_kprobe(struct kprobe *p, struct pt_regs *regs, in set_current_kprobe() 145 struct kprobe *p; in kprobe_handler() 291 static int __kprobes trampoline_probe_handler(struct kprobe *p, in trampoline_probe_handler() 365 struct kprobe *cur = kprobe_running(); in post_kprobe_handler() [all …]
|
/linux-4.1.27/arch/sparc/kernel/ |
D | kprobes.c | 44 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL; 49 int __kprobes arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe() 64 void __kprobes arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe() 70 void __kprobes arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe() 92 static void __kprobes set_current_kprobe(struct kprobe *p, struct pt_regs *regs, in set_current_kprobe() 100 static void __kprobes prepare_singlestep(struct kprobe *p, struct pt_regs *regs, in prepare_singlestep() 117 struct kprobe *p; in kprobe_handler() 204 static unsigned long __kprobes relbranch_fixup(u32 insn, struct kprobe *p, in relbranch_fixup() 280 static void __kprobes resume_execution(struct kprobe *p, in resume_execution() 298 struct kprobe *cur = kprobe_running(); in post_kprobe_handler() [all …]
|
/linux-4.1.27/arch/mips/kernel/ |
D | kprobes.c | 53 DEFINE_PER_CPU(struct kprobe *, current_kprobe); 141 int __kprobes arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe() 196 void __kprobes arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe() 202 void __kprobes arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe() 208 void __kprobes arch_remove_kprobe(struct kprobe *p) in arch_remove_kprobe() 234 static void set_current_kprobe(struct kprobe *p, struct pt_regs *regs, in set_current_kprobe() 255 static int evaluate_branch_instruction(struct kprobe *p, struct pt_regs *regs, in evaluate_branch_instruction() 289 static void prepare_singlestep(struct kprobe *p, struct pt_regs *regs, in prepare_singlestep() 322 static void __kprobes resume_execution(struct kprobe *p, in resume_execution() 336 struct kprobe *p; in kprobe_handler() [all …]
|
/linux-4.1.27/arch/x86/kernel/kprobes/ |
D | common.h | 85 extern int setup_detour_execution(struct kprobe *p, struct pt_regs *regs, int reenter); 88 static inline int setup_detour_execution(struct kprobe *p, struct pt_regs *regs, int reenter) in setup_detour_execution() 99 extern int skip_singlestep(struct kprobe *p, struct pt_regs *regs, 102 static inline int skip_singlestep(struct kprobe *p, struct pt_regs *regs, in skip_singlestep()
|
D | ftrace.c | 29 int __skip_singlestep(struct kprobe *p, struct pt_regs *regs, in __skip_singlestep() 47 int skip_singlestep(struct kprobe *p, struct pt_regs *regs, in skip_singlestep() 61 struct kprobe *p; in kprobe_ftrace_handler() 94 int arch_prepare_kprobe_ftrace(struct kprobe *p) in arch_prepare_kprobe_ftrace()
|
D | core.c | 65 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL; 225 struct kprobe *kp; in __recover_probed_insn() 403 static int arch_copy_kprobe(struct kprobe *p) in arch_copy_kprobe() 430 int arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe() 445 void arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe() 450 void arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe() 455 void arch_remove_kprobe(struct kprobe *p) in arch_remove_kprobe() 482 set_current_kprobe(struct kprobe *p, struct pt_regs *regs, in set_current_kprobe() 523 static void setup_singlestep(struct kprobe *p, struct pt_regs *regs, in setup_singlestep() 567 static int reenter_kprobe(struct kprobe *p, struct pt_regs *regs, in reenter_kprobe() [all …]
|
D | opt.c | 45 struct kprobe *kp; in __recover_optprobed_insn() 287 struct kprobe *p; in arch_check_optimized_kprobe() 328 struct kprobe *__unused) in arch_prepare_optimized_kprobe() 436 int setup_detour_execution(struct kprobe *p, struct pt_regs *regs, int reenter) in setup_detour_execution()
|
/linux-4.1.27/arch/arm/probes/kprobes/ |
D | test-core.c | 313 static int __kprobes pre_handler(struct kprobe *p, struct pt_regs *regs) in pre_handler() 321 static void __kprobes post_handler(struct kprobe *p, struct pt_regs *regs, in post_handler() 329 static struct kprobe the_kprobe = { 557 benchmark_pre_handler(struct kprobe *p, struct pt_regs *regs) in benchmark_pre_handler() 579 struct kprobe k = { in kprobe_benchmark() 1214 struct kprobe kprobe; member 1222 unregister_kprobe(&probe->kprobe); in unregister_test_probe() 1223 probe->kprobe.flags = 0; /* Clear disable flag to allow reuse */ in unregister_test_probe() 1235 ret = register_kprobe(&probe->kprobe); in register_test_probe() 1244 test_before_pre_handler(struct kprobe *p, struct pt_regs *regs) in test_before_pre_handler() [all …]
|
D | core.c | 51 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL; 55 int __kprobes arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe() 130 void __kprobes arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe() 187 void __kprobes arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe() 193 void __kprobes arch_remove_kprobe(struct kprobe *p) in arch_remove_kprobe() 213 static void __kprobes set_current_kprobe(struct kprobe *p) in set_current_kprobe() 219 singlestep_skip(struct kprobe *p, struct pt_regs *regs) in singlestep_skip() 233 singlestep(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) in singlestep() 247 struct kprobe *p, *cur; in kprobe_handler() 346 struct kprobe *cur = kprobe_running(); in kprobe_fault_handler() [all …]
|
D | opt-arm.c | 138 static int can_optimize(struct kprobe *kp) in can_optimize() 167 struct kprobe *p = &op->kp; in optimized_callback() 195 int arch_prepare_optimized_kprobe(struct optimized_kprobe *op, struct kprobe *orig) in arch_prepare_optimized_kprobe()
|
/linux-4.1.27/arch/mn10300/kernel/ |
D | kprobes.c | 34 static struct kprobe *cur_kprobe; 42 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL; 361 int __kprobes arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe() 366 void __kprobes arch_copy_kprobe(struct kprobe *p) in arch_copy_kprobe() 371 void __kprobes arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe() 378 void __kprobes arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe() 386 void arch_remove_kprobe(struct kprobe *p) in arch_remove_kprobe() 391 void __kprobes disarm_kprobe(struct kprobe *p, struct pt_regs *regs) in disarm_kprobe() 402 void __kprobes prepare_singlestep(struct kprobe *p, struct pt_regs *regs) in prepare_singlestep() 430 struct kprobe *p; in kprobe_handler() [all …]
|
/linux-4.1.27/samples/kprobes/ |
D | kprobe_example.c | 18 static struct kprobe kp = { 23 static int handler_pre(struct kprobe *p, struct pt_regs *regs) in handler_pre() 51 static void handler_post(struct kprobe *p, struct pt_regs *regs, in handler_post() 77 static int handler_fault(struct kprobe *p, struct pt_regs *regs, int trapnr) in handler_fault()
|
/linux-4.1.27/arch/ia64/kernel/ |
D | kprobes.c | 40 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL; 103 struct kprobe *p) in update_kprobe_inst_flag() 303 struct kprobe *p, in prepare_break_inst() 404 static void __kprobes set_current_kprobe(struct kprobe *p, in set_current_kprobe() 422 int __kprobes trampoline_probe_handler(struct kprobe *p, struct pt_regs *regs) in trampoline_probe_handler() 563 static void __kprobes prepare_booster(struct kprobe *p) in prepare_booster() 567 struct kprobe *other_kp; in prepare_booster() 582 int __kprobes arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe() 621 void __kprobes arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe() 648 void __kprobes arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe() [all …]
|
/linux-4.1.27/arch/arc/include/asm/ |
D | kprobes.h | 32 struct kprobe; 34 void arch_remove_kprobe(struct kprobe *p); 40 struct kprobe *kp;
|
/linux-4.1.27/arch/sh/include/asm/ |
D | kprobes.h | 22 struct kprobe; 24 void arch_remove_kprobe(struct kprobe *); 35 struct kprobe *kp;
|
/linux-4.1.27/arch/tile/include/asm/ |
D | kprobes.h | 38 struct kprobe; 46 struct kprobe *kp; 74 void arch_remove_kprobe(struct kprobe *);
|
/linux-4.1.27/arch/mips/include/asm/ |
D | kprobes.h | 34 struct kprobe; 51 void arch_remove_kprobe(struct kprobe *p); 60 struct kprobe *kp;
|
/linux-4.1.27/arch/s390/include/asm/ |
D | kprobes.h | 37 struct kprobe; 67 struct kprobe *kp; 81 void arch_remove_kprobe(struct kprobe *p);
|
/linux-4.1.27/arch/arm/include/asm/ |
D | kprobes.h | 30 struct kprobe; 36 struct kprobe *kp; 48 void arch_remove_kprobe(struct kprobe *);
|
/linux-4.1.27/arch/ia64/include/asm/ |
D | kprobes.h | 56 struct kprobe; 71 struct kprobe *kp; 125 extern void arch_remove_kprobe(struct kprobe *p);
|
/linux-4.1.27/arch/x86/include/asm/ |
D | kprobes.h | 32 struct kprobe; 63 void arch_remove_kprobe(struct kprobe *p); 98 struct kprobe *kp;
|
/linux-4.1.27/Documentation/ |
D | kprobes.txt | 30 kretprobes (also called return probes). A kprobe can be inserted 58 When a kprobe is registered, Kprobes makes a copy of the probed 65 associated with the kprobe, passing the handler the addresses of the 66 kprobe struct and the saved registers. 75 "post_handler," if any, that is associated with the kprobe. 80 A jprobe is implemented using a kprobe that is placed on a function's 110 When you call register_kretprobe(), Kprobes establishes a kprobe at 115 At boot time, Kprobes registers a kprobe at the trampoline. 147 field of the kretprobe struct. Whenever the kprobe placed by kretprobe at the 178 Kprobes inserts an ordinary, breakpoint-based kprobe at the specified [all …]
|
/linux-4.1.27/arch/powerpc/include/asm/ |
D | kprobes.h | 38 struct kprobe; 102 extern void arch_remove_kprobe(struct kprobe *p); 116 struct kprobe *kp;
|
/linux-4.1.27/arch/mn10300/include/asm/ |
D | kprobes.h | 27 struct kprobe; 48 extern void arch_remove_kprobe(struct kprobe *p);
|
/linux-4.1.27/arch/avr32/include/asm/ |
D | kprobes.h | 31 struct kprobe *kp;
|
/linux-4.1.27/arch/sparc/include/asm/ |
D | kprobes.h | 31 struct kprobe *kp;
|
/linux-4.1.27/Documentation/trace/ |
D | uprobetracer.txt | 9 Uprobe based trace events are similar to kprobe based trace events. 12 Similar to the kprobe-event tracer, this doesn't need to be activated via 17 However unlike kprobe-event tracer, the uprobe event interface expects the
|
D | kprobetrace.txt | 10 this is based on kprobes (kprobe and kretprobe). So it can probe wherever 102 This sets a kprobe on the top of do_sys_open() function with recording
|
/linux-4.1.27/tools/testing/selftests/ftrace/ |
D | README | 21 # ./ftracetest test.d/kprobe/
|
/linux-4.1.27/kernel/trace/ |
D | trace_kprobe.c | 82 static int kprobe_dispatcher(struct kprobe *kp, struct pt_regs *regs); 1236 static int kprobe_dispatcher(struct kprobe *kp, struct pt_regs *regs) in kprobe_dispatcher()
|
D | Kconfig | 441 This allows the user to attach BPF programs to kprobe events.
|
/linux-4.1.27/tools/perf/Documentation/ |
D | perf-probe.txt | 150 …ray with fixed index (e.g. array[1], var->array[0], var->pointer[2]), or kprobe-tracer argument fo…
|
/linux-4.1.27/arch/arm/kernel/ |
D | entry-armv.S | 250 @ If a kprobe is about to simulate a "stmdb sp..." instruction,
|
/linux-4.1.27/lib/ |
D | Kconfig.debug | 1562 boot. A sample kprobe, jprobe and kretprobe are inserted and
|