Re: [PATCH v3 00/17] Add static_call()

From: Peter Zijlstra
Date: Fri Mar 20 2020 - 18:31:55 EST


On Fri, Mar 20, 2020 at 10:38:44PM +0100, Peter Zijlstra wrote:
> static_call(), is the idea of static_branch() applied to indirect function
> calls. Remove a data load (indirection) by modifying the text.
>
> The inline implementation still relies on objtool to generate the
> .static_call_sites section, mostly because this is a natural place for x86_64
> and works for both GCC and LLVM. Other architectures can pick other means
> if/when they implement the inline patching. The out-of-line (aka. trampoline)
> variant doesn't require this.
>
> Patches can also be found here:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/static_call
>
>
> Comments?

*groan*, I got the lkml address wrong (again!), this series is cursed.