Lines Matching refs:kprobe

49 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 {
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 really running optimized path ? */
120 static inline bool kprobe_optimized(struct kprobe *p)
125 /* Is this kprobe uses ftrace ? */
126 static inline bool kprobe_ftrace(struct kprobe *p)
147 struct kprobe kp;
187 DECLARE_PER_CPU(struct kprobe *, current_kprobe);
195 extern int arch_trampoline_kprobe(struct kprobe *p);
223 /* If the trampoline handler called from a kprobe, use this version */
233 * Set a dummy kprobe for avoiding kretprobe recursion.
234 * Since kretprobe never runs in kprobe handler, no kprobe must
260 static inline int arch_trampoline_kprobe(struct kprobe *p)
281 extern int arch_prepare_kprobe(struct kprobe *p);
282 extern void arch_arm_kprobe(struct kprobe *p);
283 extern void arch_disarm_kprobe(struct kprobe *p);
285 extern void kprobes_inc_nmissed_count(struct kprobe *p);
348 struct kprobe kp;
357 struct kprobe *orig);
366 extern void opt_pre_handler(struct kprobe *p, struct pt_regs *regs);
372 bool kprobe_disarmed(struct kprobe *p);
380 extern int arch_prepare_kprobe_ftrace(struct kprobe *p);
385 static inline int arch_prepare_kprobe_ftrace(struct kprobe *p)
392 /* Get the kprobe at this addr (if any) - called with preemption disabled */
393 struct kprobe *get_kprobe(void *addr);
396 static inline struct kprobe *kprobe_running(void)
414 int register_kprobe(struct kprobe *p);
415 void unregister_kprobe(struct kprobe *p);
416 int register_kprobes(struct kprobe **kps, int num);
417 void unregister_kprobes(struct kprobe **kps, int num);
432 int disable_kprobe(struct kprobe *kp);
433 int enable_kprobe(struct kprobe *kp);
435 void dump_kprobe(struct kprobe *kp);
457 static inline struct kprobe *get_kprobe(void *addr)
461 static inline struct kprobe *kprobe_running(void)
468 static inline int register_kprobe(struct kprobe *p)
472 static inline int register_kprobes(struct kprobe **kps, int num)
476 static inline void unregister_kprobe(struct kprobe *p)
479 static inline void unregister_kprobes(struct kprobe **kps, int num)
505 static inline int disable_kprobe(struct kprobe *kp)
509 static inline int enable_kprobe(struct kprobe *kp)
593 * To be potentially processing a kprobe fault and to be allowed