diff options
Diffstat (limited to 'kernel/kprobes.c')
-rw-r--r-- | kernel/kprobes.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/kprobes.c b/kernel/kprobes.c index ef177d653b2c..f72e96c25a38 100644 --- a/kernel/kprobes.c +++ b/kernel/kprobes.c | |||
@@ -1141,6 +1141,13 @@ static void __kprobes kill_kprobe(struct kprobe *p) | |||
1141 | arch_remove_kprobe(p); | 1141 | arch_remove_kprobe(p); |
1142 | } | 1142 | } |
1143 | 1143 | ||
1144 | void __kprobes dump_kprobe(struct kprobe *kp) | ||
1145 | { | ||
1146 | printk(KERN_WARNING "Dumping kprobe:\n"); | ||
1147 | printk(KERN_WARNING "Name: %s\nAddress: %p\nOffset: %x\n", | ||
1148 | kp->symbol_name, kp->addr, kp->offset); | ||
1149 | } | ||
1150 | |||
1144 | /* Module notifier call back, checking kprobes on the module */ | 1151 | /* Module notifier call back, checking kprobes on the module */ |
1145 | static int __kprobes kprobes_module_callback(struct notifier_block *nb, | 1152 | static int __kprobes kprobes_module_callback(struct notifier_block *nb, |
1146 | unsigned long val, void *data) | 1153 | unsigned long val, void *data) |