|
@@ -1141,6 +1141,13 @@ static void __kprobes kill_kprobe(struct kprobe *p)
|
|
|
arch_remove_kprobe(p);
|
|
arch_remove_kprobe(p);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+void __kprobes dump_kprobe(struct kprobe *kp)
|
|
|
|
|
+{
|
|
|
|
|
+ printk(KERN_WARNING "Dumping kprobe:\n");
|
|
|
|
|
+ printk(KERN_WARNING "Name: %s\nAddress: %p\nOffset: %x\n",
|
|
|
|
|
+ kp->symbol_name, kp->addr, kp->offset);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
/* Module notifier call back, checking kprobes on the module */
|
|
/* Module notifier call back, checking kprobes on the module */
|
|
|
static int __kprobes kprobes_module_callback(struct notifier_block *nb,
|
|
static int __kprobes kprobes_module_callback(struct notifier_block *nb,
|
|
|
unsigned long val, void *data)
|
|
unsigned long val, void *data)
|