Some architectures like powerpc require a non standard^^^^^^^^^
allocation of optinsn page, because module pages are
too far from the kernel for direct branches.
Define weak alloc_optinsn_page() and free_optinsn_page(), that
fall back on alloc_insn_page() and free_insn_page() when not
overriden by the architecture.
Suggested-by: Masami Hiramatsu <mhiramat@xxxxxxxxxx>
Signed-off-by: Christophe Leroy <christophe.leroy@xxxxxxxxxx>
Acked-by: Masami Hiramatsu <mhiramat@xxxxxxxxxx>
---
v2: Added missing prototypes in linux/kprobes.h
---
include/linux/kprobes.h | 3 +++
kernel/kprobes.c | 14 ++++++++++++--
2 files changed, 15 insertions(+), 2 deletions(-)