Home
last modified time | relevance | path

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

123

/linux/include/linux/
A Dkprobes.h49 struct kprobe;
59 struct kprobe { struct
146 struct kprobe kp;
329 struct kprobe kp;
338 struct kprobe *orig);
374 struct kprobe *get_kprobe(void *addr);
393 int register_kprobe(struct kprobe *p);
394 void unregister_kprobe(struct kprobe *p);
407 int disable_kprobe(struct kprobe *kp);
408 int enable_kprobe(struct kprobe *kp);
[all …]
/linux/kernel/
A Dkprobes.c376 struct kprobe *p; in get_kprobe()
405 static inline void copy_kprobe(struct kprobe *ap, struct kprobe *p) in copy_kprobe()
421 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()
1034 static struct kprobe *alloc_aggr_kprobe(struct kprobe *p) in alloc_aggr_kprobe()
1311 static int add_new_kprobe(struct kprobe *ap, struct kprobe *p) in add_new_kprobe()
1327 static void init_aggr_kprobe(struct kprobe *ap, struct kprobe *p) in init_aggr_kprobe()
1505 static struct kprobe *__get_valid_kprobe(struct kprobe *p) in __get_valid_kprobe()
[all …]
/linux/arch/sh/kernel/
A Dkprobes.c17 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/arch/riscv/kernel/probes/
A Dkprobes.c18 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL;
24 static void __kprobes arch_prepare_ss_slot(struct kprobe *p) in arch_prepare_ss_slot()
51 int __kprobes arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe()
97 void __kprobes arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe()
106 void __kprobes arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe()
111 void __kprobes arch_remove_kprobe(struct kprobe *p) in arch_remove_kprobe()
181 static int __kprobes reenter_kprobe(struct kprobe *p, in reenter_kprobe()
232 struct kprobe *cur = kprobe_running(); in kprobe_fault_handler()
271 struct kprobe *p, *cur_kprobe; in kprobe_breakpoint_handler()
323 struct kprobe *cur = kprobe_running(); in kprobe_single_step_handler()
[all …]
/linux/arch/parisc/kernel/
A Dkprobes.c16 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL;
19 int __kprobes arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe()
35 void __kprobes arch_remove_kprobe(struct kprobe *p) in arch_remove_kprobe()
44 void __kprobes arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe()
49 void __kprobes arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe()
66 static inline void __kprobes set_current_kprobe(struct kprobe *p) in set_current_kprobe()
71 static void __kprobes setup_singlestep(struct kprobe *p, in setup_singlestep()
83 struct kprobe *p; in parisc_kprobe_break_handler()
134 struct kprobe *p = kprobe_running(); in parisc_kprobe_ss_handler()
187 static struct kprobe trampoline_p = {
[all …]
/linux/arch/s390/kernel/
A Dkprobes.c130 struct kprobe *kp; in can_probe()
171 int arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe()
186 struct kprobe *p;
193 struct kprobe *p = args->p; in swap_instruction()
202 void arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe()
210 void arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe()
218 void arch_remove_kprobe(struct kprobe *p) in arch_remove_kprobe()
320 struct kprobe *p; in kprobe_handler()
438 struct kprobe *p = kprobe_running(); in post_kprobe_handler()
467 struct kprobe *p = kprobe_running(); in kprobe_trap_handler()
[all …]
/linux/arch/arm64/kernel/probes/
A Dkprobes.c38 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL;
79 int __kprobes arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe()
125 void __kprobes arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe()
134 void __kprobes arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe()
141 void __kprobes arch_remove_kprobe(struct kprobe *p) in arch_remove_kprobe()
185 static void __kprobes setup_singlestep(struct kprobe *p, in setup_singlestep()
212 static int __kprobes reenter_kprobe(struct kprobe *p, in reenter_kprobe()
258 struct kprobe *cur = kprobe_running(); in kprobe_fault_handler()
296 struct kprobe *p, *cur_kprobe; in kprobe_handler()
342 struct kprobe *cur = kprobe_running(); in kprobe_breakpoint_ss_handler()
[all …]
/linux/arch/csky/kernel/probes/
A Dkprobes.c16 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()
186 static void __kprobes setup_singlestep(struct kprobe *p, in setup_singlestep()
216 static int __kprobes reenter_kprobe(struct kprobe *p, in reenter_kprobe()
243 struct kprobe *cur = kprobe_running(); in post_kprobe_handler()
272 struct kprobe *cur = kprobe_running(); in kprobe_fault_handler()
309 struct kprobe *p, *cur_kprobe; in kprobe_breakpoint_handler()
[all …]
/linux/arch/arc/kernel/
A Dkprobes.c20 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/arch/sparc/kernel/
A Dkprobes.c45 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/arch/mips/kernel/
A Dkprobes.c44 DEFINE_PER_CPU(struct kprobe *, current_kprobe);
76 int __kprobes arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe()
136 void __kprobes arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe()
142 void __kprobes arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe()
148 void __kprobes arch_remove_kprobe(struct kprobe *p) in arch_remove_kprobe()
260 static void __kprobes resume_execution(struct kprobe *p, in resume_execution()
274 struct kprobe *p; in kprobe_handler()
373 struct kprobe *cur = kprobe_running(); in post_kprobe_handler()
402 struct kprobe *cur = kprobe_running(); in kprobe_fault_handler()
497 int __kprobes arch_trampoline_kprobe(struct kprobe *p) in arch_trampoline_kprobe()
[all …]
/linux/arch/powerpc/kernel/
A Dkprobes.c31 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL;
123 int arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe()
126 struct kprobe *prev; in arch_prepare_kprobe()
166 void arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe()
172 void arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe()
178 void arch_remove_kprobe(struct kprobe *p) in arch_remove_kprobe()
287 struct kprobe *p; in kprobe_handler()
454 struct kprobe *cur = kprobe_running(); in kprobe_post_handler()
497 struct kprobe *cur = kprobe_running(); in kprobe_fault_handler()
545 static struct kprobe trampoline_p = {
[all …]
/linux/arch/arm/probes/kprobes/
A Dtest-core.c326 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 Dcore.c44 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/arch/x86/kernel/kprobes/
A Dcore.c58 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL;
195 struct kprobe *kp; in __recover_probed_insn()
689 static int arch_copy_kprobe(struct kprobe *p) in arch_copy_kprobe()
722 int arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe()
748 void arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe()
757 void arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe()
766 void arch_remove_kprobe(struct kprobe *p) in arch_remove_kprobe()
796 set_current_kprobe(struct kprobe *p, struct pt_regs *regs, in set_current_kprobe()
950 struct kprobe *p; in kprobe_int3_handler()
1112 struct kprobe *cur = kprobe_running(); in kprobe_fault_handler()
[all …]
/linux/arch/ia64/kernel/
A Dkprobes.c25 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/Documentation/trace/
A Dkprobes.rst72 kprobe struct and the saved registers.
236 If the kprobe can be optimized, Kprobes enqueues the kprobe to an
340 kprobe address resolution code.
363 int register_kprobe(struct kprobe *kp);
460 void unregister_kprobe(struct kprobe *kp);
477 int register_kprobes(struct kprobe **kps, int num);
517 int disable_kprobe(struct kprobe *kp);
529 int enable_kprobe(struct kprobe *kp);
647 hit typically takes 50-75% longer than a kprobe hit.
653 k = kprobe; r = return probe; kr = kprobe + return probe
[all …]
/linux/arch/x86/include/asm/
A Dkprobes.h24 struct kprobe;
51 void arch_remove_kprobe(struct kprobe *p);
82 void (*emulate_op)(struct kprobe *p, struct pt_regs *regs);
103 struct kprobe *kp;
/linux/arch/parisc/include/asm/
A Dkprobes.h25 struct kprobe;
27 void arch_remove_kprobe(struct kprobe *p);
41 struct kprobe *kp;
/linux/arch/arc/include/asm/
A Dkprobes.h31 struct kprobe;
33 void arch_remove_kprobe(struct kprobe *p);
39 struct kprobe *kp;
/linux/drivers/misc/lkdtm/
A Dcore.c40 static int lkdtm_kprobe_handler(struct kprobe *kp, struct pt_regs *regs);
45 .kprobe = { \
60 struct kprobe kprobe; member
192 static struct kprobe *lkdtm_kprobe;
248 if (!crashpoint->kprobe.symbol_name) { in lkdtm_register_cpoint()
258 lkdtm_kprobe = &crashpoint->kprobe; in lkdtm_register_cpoint()
262 crashpoint->kprobe.symbol_name); in lkdtm_register_cpoint()
277 static int lkdtm_kprobe_handler(struct kprobe *kp, struct pt_regs *regs) in lkdtm_kprobe_handler()
/linux/lib/
A Dtest_kprobes.c30 static int kp_pre_handler(struct kprobe *p, struct pt_regs *regs) in kp_pre_handler()
37 static void kp_post_handler(struct kprobe *p, struct pt_regs *regs, in kp_post_handler()
45 static struct kprobe kp = {
93 static int kp_pre_handler2(struct kprobe *p, struct pt_regs *regs) in kp_pre_handler2()
99 static void kp_post_handler2(struct kprobe *p, struct pt_regs *regs, in kp_post_handler2()
106 static struct kprobe kp2 = {
114 struct kprobe *kps[2] = {&kp, &kp2}; in test_kprobes()
/linux/arch/sh/include/asm/
A Dkprobes.h26 struct kprobe;
28 void arch_remove_kprobe(struct kprobe *);
38 struct kprobe *kp;
/linux/arch/mips/include/asm/
A Dkprobes.h25 struct kprobe;
43 void arch_remove_kprobe(struct kprobe *p);
53 struct kprobe *kp;
/linux/arch/s390/include/asm/
A Dkprobes.h39 struct kprobe;
60 struct kprobe *kp;
72 void arch_remove_kprobe(struct kprobe *p);

Completed in 63 milliseconds

123