kprobes: enable clean usage of get_kprobe
PATCH 2/4 kprobes: enable clean usage of get_kprobe
Allow clean use of get_kprobe() outside of core kprobe code. Ftrace makes use of get_kprobe to identify probes installed on mcount call-sites.
Signed-off-by Abhishek Sagar <[email protected]>
---
include/linux/kprobes.h +4 -0
@@ -259,6 +259,10 @@ void recycle_rp_inst(struct kretprobe_instance *ri, struct hlist_head *head);struct jprobe ;struct kretprobe ; +static inline struct kprobe *get_kprobe (void *addr) +{ +return NULL ; +}static inline struct kprobe *kprobe_running (void ) {return NULL ;
Quoted 4 lines · Abhishek Sagar
Allow clean use of
get_kprobe()outside of core kprobe code. Ftrace makes use ofget_kprobeto identify probes installed on mcount call-sites.Signed-off-by Abhishek Sagar <[email protected]>
Quoted 17 lines
---
include/linux/kprobes.h +4
-0@@ -259,6 +259,10 @@ void recycle_rp_inst(struct kretprobe_instance *ri, struct hlist_head *head);struct jprobe ;struct kretprobe ; +static inline struct kprobe *get_kprobe (void *addr) +{ +return NULL ; +}static inline struct kprobe *kprobe_running (void ) {return NULL ;