Home
last modified time | relevance | path

Searched refs:kprobe (Results 1 – 42 of 42) sorted by relevance

/linux-4.4.14/include/linux/
Dkprobes.h60 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.4.14/kernel/
Dkprobes.c79 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 …]
Dtest_kprobes.c35 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.4.14/arch/avr32/kernel/
Dkprobes.c21 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.4.14/arch/sh/kernel/
Dkprobes.c20 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.4.14/arch/tile/kernel/
Dkprobes.c33 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.4.14/arch/arc/kernel/
Dkprobes.c23 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.4.14/arch/s390/kernel/
Dkprobes.c37 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.4.14/arch/powerpc/kernel/
Dkprobes.c40 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.4.14/arch/sparc/kernel/
Dkprobes.c44 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.4.14/arch/mips/kernel/
Dkprobes.c53 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.4.14/arch/x86/kernel/kprobes/
Dcommon.h85 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()
Dftrace.c29 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()
Dcore.c65 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 …]
Dopt.c45 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.4.14/arch/arm/probes/kprobes/
Dtest-core.c313 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 …]
Dcore.c51 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 …]
Dopt-arm.c138 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.4.14/arch/mn10300/kernel/
Dkprobes.c34 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.4.14/samples/kprobes/
Dkprobe_example.c18 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.4.14/arch/ia64/kernel/
Dkprobes.c40 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.4.14/arch/arc/include/asm/
Dkprobes.h32 struct kprobe;
34 void arch_remove_kprobe(struct kprobe *p);
40 struct kprobe *kp;
/linux-4.4.14/arch/sh/include/asm/
Dkprobes.h22 struct kprobe;
24 void arch_remove_kprobe(struct kprobe *);
35 struct kprobe *kp;
/linux-4.4.14/arch/tile/include/asm/
Dkprobes.h38 struct kprobe;
46 struct kprobe *kp;
74 void arch_remove_kprobe(struct kprobe *);
/linux-4.4.14/arch/mips/include/asm/
Dkprobes.h34 struct kprobe;
51 void arch_remove_kprobe(struct kprobe *p);
60 struct kprobe *kp;
/linux-4.4.14/arch/s390/include/asm/
Dkprobes.h37 struct kprobe;
67 struct kprobe *kp;
81 void arch_remove_kprobe(struct kprobe *p);
/linux-4.4.14/arch/arm/include/asm/
Dkprobes.h30 struct kprobe;
36 struct kprobe *kp;
48 void arch_remove_kprobe(struct kprobe *);
/linux-4.4.14/arch/x86/include/asm/
Dkprobes.h32 struct kprobe;
63 void arch_remove_kprobe(struct kprobe *p);
98 struct kprobe *kp;
/linux-4.4.14/arch/ia64/include/asm/
Dkprobes.h56 struct kprobe;
71 struct kprobe *kp;
125 extern void arch_remove_kprobe(struct kprobe *p);
/linux-4.4.14/Documentation/
Dkprobes.txt30 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.4.14/arch/powerpc/include/asm/
Dkprobes.h38 struct kprobe;
102 extern void arch_remove_kprobe(struct kprobe *p);
116 struct kprobe *kp;
/linux-4.4.14/arch/mn10300/include/asm/
Dkprobes.h27 struct kprobe;
48 extern void arch_remove_kprobe(struct kprobe *p);
/linux-4.4.14/arch/avr32/include/asm/
Dkprobes.h31 struct kprobe *kp;
/linux-4.4.14/arch/sparc/include/asm/
Dkprobes.h31 struct kprobe *kp;
/linux-4.4.14/Documentation/trace/
Duprobetracer.txt9 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
Dkprobetrace.txt10 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.4.14/tools/testing/selftests/ftrace/
DREADME21 # ./ftracetest test.d/kprobe/
/linux-4.4.14/kernel/trace/
Dtrace_kprobe.c82 static int kprobe_dispatcher(struct kprobe *kp, struct pt_regs *regs);
1224 static int kprobe_dispatcher(struct kprobe *kp, struct pt_regs *regs) in kprobe_dispatcher()
DKconfig441 This allows the user to attach BPF programs to kprobe events.
/linux-4.4.14/tools/perf/Documentation/
Dperf-probe.txt157 …ray with fixed index (e.g. array[1], var->array[0], var->pointer[2]), or kprobe-tracer argument fo…
/linux-4.4.14/arch/arm/kernel/
Dentry-armv.S257 @ If a kprobe is about to simulate a "stmdb sp..." instruction,
/linux-4.4.14/lib/
DKconfig.debug1626 boot. A sample kprobe, jprobe and kretprobe are inserted and