diff options
author | Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> | 2017-04-19 08:51:00 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-04-20 09:18:54 -0400 |
commit | 49e0b4658fe6aab5bf6bfe0738a86c1895930ad1 (patch) | |
tree | 55b41f00af83b516922d216e286f9bdfb8fc61e0 /include/linux/kprobes.h | |
parent | a460246c70d1ac25a0717112e7a167240c7aca1a (diff) |
kprobes: Convert kprobe_lookup_name() to a function
The macro is now pretty long and ugly on powerpc. In the light of further
changes needed here, convert it to a __weak variant to be over-ridden with a
nicer looking function.
Suggested-by: Masami Hiramatsu <mhiramat@kernel.org>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'include/linux/kprobes.h')
-rw-r--r-- | include/linux/kprobes.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/kprobes.h b/include/linux/kprobes.h index c328e4f7dcad..16f153c84646 100644 --- a/include/linux/kprobes.h +++ b/include/linux/kprobes.h | |||
@@ -379,6 +379,7 @@ static inline struct kprobe_ctlblk *get_kprobe_ctlblk(void) | |||
379 | return this_cpu_ptr(&kprobe_ctlblk); | 379 | return this_cpu_ptr(&kprobe_ctlblk); |
380 | } | 380 | } |
381 | 381 | ||
382 | kprobe_opcode_t *kprobe_lookup_name(const char *name); | ||
382 | int register_kprobe(struct kprobe *p); | 383 | int register_kprobe(struct kprobe *p); |
383 | void unregister_kprobe(struct kprobe *p); | 384 | void unregister_kprobe(struct kprobe *p); |
384 | int register_kprobes(struct kprobe **kps, int num); | 385 | int register_kprobes(struct kprobe **kps, int num); |