Searched refs:kprobe (Results 1 - 25 of 60) sorted by path

123

/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/arc/kernel/
H A Dkprobes.c20 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL;
23 int __kprobes arch_prepare_kprobe(struct kprobe *p)
37 void __kprobes arch_arm_kprobe(struct kprobe *p)
45 void __kprobes arch_disarm_kprobe(struct kprobe *p)
53 void __kprobes arch_remove_kprobe(struct kprobe *p)
57 /* Can we remove the kprobe in the middle of kprobe handling? */
91 static inline void __kprobes set_current_kprobe(struct kprobe *p)
96 static void __kprobes resume_execution(struct kprobe *p, unsigned long addr,
125 static void __kprobes setup_singlestep(struct kprobe *
[all...]
/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/arm/kernel/
H A Dentry-armv.S264 @ If a kprobe is about to simulate a "stmdb sp..." instruction,
/linux-master/arch/arm/probes/kprobes/
H A Dcore.c44 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL;
48 int __kprobes arch_prepare_kprobe(struct kprobe *p)
120 void __kprobes arch_arm_kprobe(struct kprobe *p)
178 void __kprobes arch_disarm_kprobe(struct kprobe *p)
184 void __kprobes arch_remove_kprobe(struct kprobe *p)
204 static void __kprobes set_current_kprobe(struct kprobe *p)
210 singlestep_skip(struct kprobe *p, struct pt_regs *regs)
224 singlestep(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb)
231 * all the way until processing this kprobe is complete. The current
233 * kprobe, an
[all...]
H A Dopt-arm.c115 * In ARM ISA, kprobe opt always replace one instruction (4 bytes
117 * kprobe in the address range. So always return 0.
125 static int can_optimize(struct kprobe *kp)
152 struct kprobe *p = &op->kp;
182 int arch_prepare_optimized_kprobe(struct optimized_kprobe *op, struct kprobe *orig)
200 * kprobe opt use a 'b' instruction to branch to optinsn.insn.
H A Dtest-core.c40 * When the test case is run a kprobe is placed of each nop. The
48 * step a second time but with an additional kprobe on the test_case
172 * inserts a kprobe on the test case instruction 'test_insn' and returns a
177 * numbered run (the one without the kprobe on test_insn). These should be
178 * the same if the kprobe instruction simulation routine is correct.
310 static int __kprobes pre_handler(struct kprobe *p, struct pt_regs *regs)
318 static void __kprobes post_handler(struct kprobe *p, struct pt_regs *regs,
326 static struct kprobe the_kprobe = {
351 pr_err("FAIL: kprobe pre_handler not called\n");
355 pr_err("FAIL: kprobe post_handle
1161 struct kprobe kprobe; member in struct:test_probe
[all...]
/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/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)
132 /* arm kprobe: install breakpoint in text */
133 void __kprobes arch_arm_kprobe(struct kprobe *
[all...]
/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/csky/kernel/probes/
H A Dftrace.c11 struct kprobe *p;
66 int arch_prepare_kprobe_ftrace(struct kprobe *p)
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/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/loongarch/kernel/
H A Dftrace_dyn.c287 struct kprobe *p;
339 int arch_prepare_kprobe_ftrace(struct kprobe *p)
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/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/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/parisc/include/asm/
H A Dkprobes.h27 struct kprobe;
29 void arch_remove_kprobe(struct kprobe *p);
43 struct kprobe *kp;
/linux-master/arch/parisc/kernel/
H A Dftrace.c206 struct kprobe *p;
249 int arch_prepare_kprobe_ftrace(struct kprobe *p)
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/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/powerpc/kernel/
H A Dkprobes-ftrace.c19 struct kprobe *p;
70 int arch_prepare_kprobe_ftrace(struct kprobe *p)
H A Dkprobes.c31 DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL;
129 int arch_prepare_kprobe(struct kprobe *p)
132 struct kprobe *prev;
136 printk("Attempt to register kprobe at an unaligned address\n");
139 printk("Cannot register a kprobe on instructions that can't be single stepped\n");
143 printk("Cannot register a kprobe on the second word of prefixed instruction\n");
149 * When prev is a ftrace-based kprobe, we don't have an insn, and it
154 printk("Cannot register a kprobe on the second word of prefixed instruction\n");
176 void arch_arm_kprobe(struct kprobe *p)
182 void arch_disarm_kprobe(struct kprobe *
[all...]
H A Doptprobes.c47 static unsigned long can_optimize(struct kprobe *p)
55 * kprobe placed for kretprobe during boot time
154 int arch_prepare_optimized_kprobe(struct optimized_kprobe *op, struct kprobe *p)
259 * kprobe in this address range. So always return 0.
/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);

Completed in 497 milliseconds

123