Skip to contentSkip to conversation

kprobes: enable clean usage of get_kprobe

PATCH Applied Abhishek Sagar 2 participants 2 messages Jun 21, 2008 – Jun 23, 2008 kprobes

lore
Share & tools
lore
#0 lore raw

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.

---

include/linux/kprobes.h +4 -0
index 1036631..04a3556 100644
@@ -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;
Acked-by on v1 2/4
#1 lore raw
Quoted 4 lines · Abhishek Sagar

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.

Quoted 17 lines

---

include/linux/kprobes.h +4 -0
index 1036631..04a3556 100644
@@ -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;