Re: [PATCH v3 0/6] Static calls
From: Josh Poimboeuf
Date: Fri Jan 11 2019 - 16:32:14 EST
On Fri, Jan 11, 2019 at 01:10:47PM -0800, Linus Torvalds wrote:
> On Fri, Jan 11, 2019 at 1:05 PM Andy Lutomirski <luto@xxxxxxxxxx> wrote:
> >
> > > Yeah, my suggestion doesn't allow for batching, since it would
> > > basically generate one trampoline for every rewritten instruction.
> >
> > Sure it does. Just make 1000 trampolines and patch 1000 sites in a
> > batch :) As long as the number of trampolines is smallish (e.g. fits
> > in a page), then we should be in good shape.
>
> Yeah, I guess that's true.
>
> But let's not worry about it. I don't think we do batching for any
> alternative instruction rewriting right now, do we?
Not at the moment, but Daniel has been working on some patches to do so:
https://lkml.kernel.org/r/cover.1545228276.git.bristot@xxxxxxxxxx
--
Josh