Re: [PATCH v2 1/2] kprobes: Allow architectures to override optinsn page allocation

2021-06-06 Thread Michael Ellerman
On Thu, 13 May 2021 09:07:51 + (UTC), Christophe Leroy wrote: > 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 >

Re: [PATCH v2 1/2] kprobes: Allow architectures to override optinsn page allocation

2021-05-20 Thread Naveen N. Rao
Christophe Leroy wrote: 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()

[PATCH v2 1/2] kprobes: Allow architectures to override optinsn page allocation

2021-05-13 Thread Christophe Leroy
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