Re: [PATCH v3 0/6] Static calls

From: Linus Torvalds
Date: Fri Jan 11 2019 - 16:16:35 EST


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?

Linus