Searched refs:kprobe (Results 1 - 25 of 59) sorted by relevance

123

/linux-master/include/linux/
H A Dkprobes.h49 struct kprobe;
53 typedef int (*kprobe_pre_handler_t) (struct kprobe *, struct pt_regs *);
54 typedef void (*kprobe_post_handler_t) (struct kprobe *, struct pt_regs *,
59 struct kprobe { struct
91 * Protected by kprobe_mutex after this kprobe is registered.
107 /* Has this kprobe gone ? */
108 static inline bool kprobe_gone(struct kprobe *p)
113 /* Is this kprobe disabled ? */
114 static inline bool kprobe_disabled(struct kprobe *p)
119 /* Is this kprobe reall
[all...]
/linux-master/arch/sh/include/asm/
H A Dkprobes.h26 struct kprobe;
28 void arch_remove_kprobe(struct kprobe *);
38 struct kprobe *kp;
42 /* per-cpu kprobe control block */
/linux-master/arch/arc/include/asm/
H A Dkprobes.h31 struct kprobe;
33 void arch_remove_kprobe(struct kprobe *p);
36 struct kprobe *kp;
/linux-master/arch/parisc/kernel/
H A Dkprobes.c17 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL;
20 int __kprobes arch_prepare_kprobe(struct kprobe *p)
41 void __kprobes arch_remove_kprobe(struct kprobe *p)
50 void __kprobes arch_arm_kprobe(struct kprobe *p)
55 void __kprobes arch_disarm_kprobe(struct kprobe *p)
72 static inline void __kprobes set_current_kprobe(struct kprobe *p)
77 static void __kprobes setup_singlestep(struct kprobe *p,
87 struct kprobe *p;
102 * We have reentered the kprobe_handler, since another kprobe
138 struct kprobe *
[all...]
/linux-master/arch/mips/include/asm/
H A Dkprobes.h25 struct kprobe;
43 void arch_remove_kprobe(struct kprobe *p);
53 struct kprobe *kp;
62 /* per-cpu kprobe control block */
/linux-master/arch/parisc/include/asm/
H A Dkprobes.h27 struct kprobe;
29 void arch_remove_kprobe(struct kprobe *p);
43 struct kprobe *kp;
/linux-master/arch/csky/include/asm/
H A Dkprobes.h22 struct kprobe *kp;
26 /* Single step context for kprobe */
32 /* per-cpu kprobe control block */
40 void arch_remove_kprobe(struct kprobe *p);
/linux-master/arch/riscv/kernel/probes/
H A Dkprobes.c18 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL;
22 post_kprobe_handler(struct kprobe *, struct kprobe_ctlblk *, struct pt_regs *);
24 static void __kprobes arch_prepare_ss_slot(struct kprobe *p)
36 static void __kprobes arch_prepare_simulate(struct kprobe *p)
41 static void __kprobes arch_simulate_insn(struct kprobe *p, struct pt_regs *regs)
52 static bool __kprobes arch_check_kprobe(struct kprobe *p)
67 int __kprobes arch_prepare_kprobe(struct kprobe *p)
118 void __kprobes arch_arm_kprobe(struct kprobe *p)
127 void __kprobes arch_disarm_kprobe(struct kprobe *p)
132 void __kprobes arch_remove_kprobe(struct kprobe *
[all...]
/linux-master/arch/riscv/include/asm/
H A Dkprobes.h28 struct kprobe *kp;
32 /* per-cpu kprobe control block */
39 void arch_remove_kprobe(struct kprobe *p);
/linux-master/arch/arm64/include/asm/
H A Dkprobes.h27 struct kprobe *kp;
31 /* per-cpu kprobe control block */
38 void arch_remove_kprobe(struct kprobe *);
/linux-master/arch/x86/include/asm/
H A Dkprobes.h24 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;
107 /* per-cpu kprobe control block */
/linux-master/arch/loongarch/kernel/
H A Dkprobes.c10 DEFINE_PER_CPU(struct kprobe *, current_kprobe);
13 static void arch_prepare_ss_slot(struct kprobe *p)
21 static void arch_prepare_simulate(struct kprobe *p)
27 int arch_prepare_kprobe(struct kprobe *p)
61 void arch_arm_kprobe(struct kprobe *p)
69 void arch_disarm_kprobe(struct kprobe *p)
76 void arch_remove_kprobe(struct kprobe *p)
99 static void set_current_kprobe(struct kprobe *p)
128 static void post_kprobe_handler(struct kprobe *cur, struct kprobe_ctlblk *kcb,
135 /* restore back original saved kprobe variable
[all...]
/linux-master/arch/arm64/kernel/probes/
H A Dkprobes.c38 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL;
42 post_kprobe_handler(struct kprobe *, struct kprobe_ctlblk *, struct pt_regs *);
44 static void __kprobes arch_prepare_ss_slot(struct kprobe *p)
53 * *before* the kprobe BRK is written (and aarch64_insn_patch_text_nosync()
57 * - That the kprobe BRK results in an exception (and consequently a
77 static void __kprobes arch_prepare_simulate(struct kprobe *p)
83 static void __kprobes arch_simulate_insn(struct kprobe *p, struct pt_regs *regs)
94 int __kprobes arch_prepare_kprobe(struct kprobe *p)
139 /* arm kprobe: install breakpoint in text */
140 void __kprobes arch_arm_kprobe(struct kprobe *
[all...]
/linux-master/tools/testing/selftests/bpf/benchs/
H A Drun_bench_trigger.sh5 for i in base tp rawtp kprobe fentry fmodret
H A Drun_bench_rename.sh5 for i in base kprobe kretprobe rawtp fentry fexit
/linux-master/arch/loongarch/include/asm/
H A Dkprobes.h36 struct kprobe *kp;
40 /* per-cpu kprobe control block */
47 void arch_remove_kprobe(struct kprobe *p);
/linux-master/arch/x86/kernel/kprobes/
H A Dcommon.h96 extern int setup_detour_execution(struct kprobe *p, struct pt_regs *regs, int reenter);
99 static inline int setup_detour_execution(struct kprobe *p, struct pt_regs *regs, int reenter)
/linux-master/arch/sh/kernel/
H A Dkprobes.c17 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL;
20 static DEFINE_PER_CPU(struct kprobe, saved_current_opcode);
21 static DEFINE_PER_CPU(struct kprobe, saved_next_opcode);
22 static DEFINE_PER_CPU(struct kprobe, saved_next_opcode2);
40 int __kprobes arch_prepare_kprobe(struct kprobe *p)
52 void __kprobes arch_copy_kprobe(struct kprobe *p)
58 void __kprobes arch_arm_kprobe(struct kprobe *p)
65 void __kprobes arch_disarm_kprobe(struct kprobe *p)
72 int __kprobes arch_trampoline_kprobe(struct kprobe *p)
82 * containing a kprobe, remov
[all...]
/linux-master/arch/csky/kernel/probes/
H A Dkprobes.c16 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL;
54 static void __kprobes arch_prepare_ss_slot(struct kprobe *p)
63 static void __kprobes arch_prepare_simulate(struct kprobe *p)
68 static void __kprobes arch_simulate_insn(struct kprobe *p, struct pt_regs *regs)
78 int __kprobes arch_prepare_kprobe(struct kprobe *p)
114 void __kprobes arch_arm_kprobe(struct kprobe *p)
120 void __kprobes arch_disarm_kprobe(struct kprobe *p)
125 void __kprobes arch_remove_kprobe(struct kprobe *p)
145 static void __kprobes set_current_kprobe(struct kprobe *p)
172 set_ss_context(struct kprobe_ctlblk *kcb, unsigned long addr, struct kprobe *
[all...]
/linux-master/arch/s390/lib/
H A Dtest_kprobes.c9 static struct kprobe kp;
11 static void setup_kprobe(struct kunit *test, struct kprobe *kp,
19 static void test_kprobe_offset(struct kunit *test, struct kprobe *kp,
/linux-master/arch/arm/include/asm/
H A Dkprobes.h25 struct kprobe;
31 struct kprobe *kp;
35 /* per-cpu kprobe control block */
41 void arch_remove_kprobe(struct kprobe *);
/linux-master/arch/powerpc/include/asm/
H A Dkprobes.h30 struct kprobe;
55 extern void arch_remove_kprobe(struct kprobe *p);
69 struct kprobe *kp;
74 /* per-cpu kprobe control block */
/linux-master/arch/s390/include/asm/
H A Dkprobes.h40 struct kprobe;
61 struct kprobe *kp;
65 /* per-cpu kprobe control block */
73 void arch_remove_kprobe(struct kprobe *p);
/linux-master/arch/mips/kernel/
H A Dkprobes.c44 DEFINE_PER_CPU(struct kprobe *, current_kprobe);
78 int arch_prepare_kprobe(struct kprobe *p)
114 * In the kprobe->ainsn.insn[] array we store the original
139 void arch_arm_kprobe(struct kprobe *p)
146 void arch_disarm_kprobe(struct kprobe *p)
153 void arch_remove_kprobe(struct kprobe *p)
180 static void set_current_kprobe(struct kprobe *p, struct pt_regs *regs,
195 * The result is also saved in the kprobe control block for later use,
199 * SKIP_DELAYSLOT in the kprobe control block
201 static int evaluate_branch_instruction(struct kprobe *
[all...]
/linux-master/arch/sparc/kernel/
H A Dkprobes.c22 * In the kprobe->ainsn.insn[] array we store the original
26 * When we hit a kprobe we:
31 * - Set regs->tpc to point to kprobe->ainsn.insn[0]
32 * - Set regs->tnpc to point to kprobe->ainsn.insn[1]
33 * - Mark that we are actively in a kprobe
36 * kprobe->ainsn.insn[1] to hit. When it does we:
42 * - Mark that we are no longer actively in a kprobe.
45 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL;
50 int __kprobes arch_prepare_kprobe(struct kprobe *p)
65 void __kprobes arch_arm_kprobe(struct kprobe *
[all...]

Completed in 231 milliseconds

123