Lines Matching refs:kprobe
48 struct kprobe;
52 typedef int (*kprobe_pre_handler_t) (struct kprobe *, struct pt_regs *);
53 typedef void (*kprobe_post_handler_t) (struct kprobe *, struct pt_regs *,
55 typedef int (*kprobe_fault_handler_t) (struct kprobe *, struct pt_regs *,
60 struct kprobe {
98 * Protected by kprobe_mutex after this kprobe is registered.
113 /* Has this kprobe gone ? */
114 static inline int kprobe_gone(struct kprobe *p)
119 /* Is this kprobe disabled ? */
120 static inline int kprobe_disabled(struct kprobe *p)
125 /* Is this kprobe really running optimized path ? */
126 static inline int kprobe_optimized(struct kprobe *p)
131 /* Is this kprobe uses ftrace ? */
132 static inline int kprobe_ftrace(struct kprobe *p)
148 struct kprobe kp;
184 DECLARE_PER_CPU(struct kprobe *, current_kprobe);
201 extern int arch_trampoline_kprobe(struct kprobe *p);
203 /* If the trampoline handler called from a kprobe, use this version */
215 * Set a dummy kprobe for avoiding kretprobe recursion.
216 * Since kretprobe never runs in kprobe handler, no kprobe must
231 static inline int arch_trampoline_kprobe(struct kprobe *p)
248 extern int arch_prepare_kprobe(struct kprobe *p);
249 extern void arch_arm_kprobe(struct kprobe *p);
250 extern void arch_disarm_kprobe(struct kprobe *p);
252 extern void kprobes_inc_nmissed_count(struct kprobe *p);
316 struct kprobe kp;
325 struct kprobe *orig);
334 extern void opt_pre_handler(struct kprobe *p, struct pt_regs *regs);
346 bool kprobe_disarmed(struct kprobe *p);
353 extern int arch_prepare_kprobe_ftrace(struct kprobe *p);
356 int arch_check_ftrace_location(struct kprobe *p);
358 /* Get the kprobe at this addr (if any) - called with preemption disabled */
359 struct kprobe *get_kprobe(void *addr);
362 static inline struct kprobe *kprobe_running(void)
378 int register_kprobe(struct kprobe *p);
379 void unregister_kprobe(struct kprobe *p);
380 int register_kprobes(struct kprobe **kps, int num);
381 void unregister_kprobes(struct kprobe **kps, int num);
393 int disable_kprobe(struct kprobe *kp);
394 int enable_kprobe(struct kprobe *kp);
396 void dump_kprobe(struct kprobe *kp);
416 static inline struct kprobe *get_kprobe(void *addr)
420 static inline struct kprobe *kprobe_running(void)
424 static inline int register_kprobe(struct kprobe *p)
428 static inline int register_kprobes(struct kprobe **kps, int num)
432 static inline void unregister_kprobe(struct kprobe *p)
435 static inline void unregister_kprobes(struct kprobe **kps, int num)
458 static inline int disable_kprobe(struct kprobe *kp)
462 static inline int enable_kprobe(struct kprobe *kp)
508 * To be potentially processing a kprobe fault and to be allowed