Lines Matching refs:kprobe
57 static DEFINE_PER_CPU(struct kprobe *, kprobe_instance) = NULL;
307 static inline void set_kprobe_instance(struct kprobe *kp) in set_kprobe_instance()
323 struct kprobe *get_kprobe(void *addr) in get_kprobe()
326 struct kprobe *p; in get_kprobe()
338 static int aggr_pre_handler(struct kprobe *p, struct pt_regs *regs);
341 static inline int kprobe_aggrprobe(struct kprobe *p) in kprobe_aggrprobe()
347 static inline int kprobe_unused(struct kprobe *p) in kprobe_unused()
356 static inline void copy_kprobe(struct kprobe *ap, struct kprobe *p) in copy_kprobe()
370 void opt_pre_handler(struct kprobe *p, struct pt_regs *regs) in opt_pre_handler()
372 struct kprobe *kp; in opt_pre_handler()
385 static void free_aggr_kprobe(struct kprobe *p) in free_aggr_kprobe()
396 static inline int kprobe_optready(struct kprobe *p) in kprobe_optready()
409 static inline int kprobe_disarmed(struct kprobe *p) in kprobe_disarmed()
423 static int kprobe_queued(struct kprobe *p) in kprobe_queued()
439 static struct kprobe *get_optimized_kprobe(unsigned long addr) in get_optimized_kprobe()
442 struct kprobe *p = NULL; in get_optimized_kprobe()
614 static void optimize_kprobe(struct kprobe *p) in optimize_kprobe()
657 static void unoptimize_kprobe(struct kprobe *p, bool force) in unoptimize_kprobe()
696 static int reuse_unused_kprobe(struct kprobe *ap) in reuse_unused_kprobe()
717 static void kill_optimized_kprobe(struct kprobe *p) in kill_optimized_kprobe()
743 void __prepare_optimized_kprobe(struct optimized_kprobe *op, struct kprobe *p) in __prepare_optimized_kprobe()
750 static void prepare_optimized_kprobe(struct kprobe *p) in prepare_optimized_kprobe()
759 static struct kprobe *alloc_aggr_kprobe(struct kprobe *p) in alloc_aggr_kprobe()
774 static void init_aggr_kprobe(struct kprobe *ap, struct kprobe *p);
780 static void try_to_optimize_kprobe(struct kprobe *p) in try_to_optimize_kprobe()
782 struct kprobe *ap; in try_to_optimize_kprobe()
819 struct kprobe *p; in optimize_all_kprobes()
844 struct kprobe *p; in unoptimize_all_kprobes()
894 static void __arm_kprobe(struct kprobe *p) in __arm_kprobe()
896 struct kprobe *_p; in __arm_kprobe()
909 static void __disarm_kprobe(struct kprobe *p, bool reopt) in __disarm_kprobe()
911 struct kprobe *_p; in __disarm_kprobe()
938 static int reuse_unused_kprobe(struct kprobe *ap) in reuse_unused_kprobe()
950 static void free_aggr_kprobe(struct kprobe *p) in free_aggr_kprobe()
956 static struct kprobe *alloc_aggr_kprobe(struct kprobe *p) in alloc_aggr_kprobe()
958 return kzalloc(sizeof(struct kprobe), GFP_KERNEL); in alloc_aggr_kprobe()
977 static int prepare_kprobe(struct kprobe *p) in prepare_kprobe()
986 static int __arm_kprobe_ftrace(struct kprobe *p, struct ftrace_ops *ops, in __arm_kprobe_ftrace()
1018 static int arm_kprobe_ftrace(struct kprobe *p) in arm_kprobe_ftrace()
1028 static int __disarm_kprobe_ftrace(struct kprobe *p, struct ftrace_ops *ops, in __disarm_kprobe_ftrace()
1047 static int disarm_kprobe_ftrace(struct kprobe *p) in disarm_kprobe_ftrace()
1062 static int arm_kprobe(struct kprobe *kp) in arm_kprobe()
1077 static int disarm_kprobe(struct kprobe *kp, bool reopt) in disarm_kprobe()
1095 static int aggr_pre_handler(struct kprobe *p, struct pt_regs *regs) in aggr_pre_handler()
1097 struct kprobe *kp; in aggr_pre_handler()
1111 static void aggr_post_handler(struct kprobe *p, struct pt_regs *regs, in aggr_post_handler()
1114 struct kprobe *kp; in aggr_post_handler()
1126 static int aggr_fault_handler(struct kprobe *p, struct pt_regs *regs, in aggr_fault_handler()
1129 struct kprobe *cur = __this_cpu_read(kprobe_instance); in aggr_fault_handler()
1144 void kprobes_inc_nmissed_count(struct kprobe *p) in kprobes_inc_nmissed_count()
1146 struct kprobe *kp; in kprobes_inc_nmissed_count()
1284 static int add_new_kprobe(struct kprobe *ap, struct kprobe *p) in add_new_kprobe()
1300 static void init_aggr_kprobe(struct kprobe *ap, struct kprobe *p) in init_aggr_kprobe()
1324 static int register_aggr_kprobe(struct kprobe *orig_p, struct kprobe *p) in register_aggr_kprobe()
1327 struct kprobe *ap = orig_p; in register_aggr_kprobe()
1471 static kprobe_opcode_t *kprobe_addr(struct kprobe *p) in kprobe_addr()
1477 static struct kprobe *__get_valid_kprobe(struct kprobe *p) in __get_valid_kprobe()
1479 struct kprobe *ap, *list_p; in __get_valid_kprobe()
1497 static inline int check_kprobe_rereg(struct kprobe *p) in check_kprobe_rereg()
1509 int __weak arch_check_ftrace_location(struct kprobe *p) in arch_check_ftrace_location()
1527 static int check_kprobe_address_safe(struct kprobe *p, in check_kprobe_address_safe()
1577 int register_kprobe(struct kprobe *p) in register_kprobe()
1580 struct kprobe *old_p; in register_kprobe()
1647 static int aggr_kprobe_disabled(struct kprobe *ap) in aggr_kprobe_disabled()
1649 struct kprobe *kp; in aggr_kprobe_disabled()
1663 static struct kprobe *__disable_kprobe(struct kprobe *p) in __disable_kprobe()
1665 struct kprobe *orig_p; in __disable_kprobe()
1702 static int __unregister_kprobe_top(struct kprobe *p) in __unregister_kprobe_top()
1704 struct kprobe *ap, *list_p; in __unregister_kprobe_top()
1756 static void __unregister_kprobe_bottom(struct kprobe *p) in __unregister_kprobe_bottom()
1758 struct kprobe *ap; in __unregister_kprobe_bottom()
1765 ap = list_entry(p->list.next, struct kprobe, list); in __unregister_kprobe_bottom()
1772 int register_kprobes(struct kprobe **kps, int num) in register_kprobes()
1790 void unregister_kprobe(struct kprobe *p) in unregister_kprobe()
1796 void unregister_kprobes(struct kprobe **kps, int num) in unregister_kprobes()
1837 static int pre_handler_kretprobe(struct kprobe *p, struct pt_regs *regs) in pre_handler_kretprobe()
2031 static int pre_handler_kretprobe(struct kprobe *p, struct pt_regs *regs) in pre_handler_kretprobe()
2040 static void kill_kprobe(struct kprobe *p) in kill_kprobe()
2042 struct kprobe *kp; in kill_kprobe()
2063 int disable_kprobe(struct kprobe *kp) in disable_kprobe()
2066 struct kprobe *p; in disable_kprobe()
2081 int enable_kprobe(struct kprobe *kp) in enable_kprobe()
2084 struct kprobe *p; in enable_kprobe()
2117 void dump_kprobe(struct kprobe *kp) in dump_kprobe()
2203 struct kprobe *p; in kprobes_module_callback()
2307 static void report_probe(struct seq_file *pi, struct kprobe *p, in report_probe()
2308 const char *sym, int offset, char *modname, struct kprobe *pp) in report_probe()
2359 struct kprobe *p, *kp; in show_kprobe_addr()
2450 struct kprobe *p; in arm_all_kprobes()
2496 struct kprobe *p; in disarm_all_kprobes()