On Fri, May 08, 2020 at 03:31:56PM +0200, Peter Zijlstra wrote: > New version below. > > --- > Subject: static_call: Allow early init > From: Peter Zijlstra <[email protected]> > Date: Fri, 4 Oct 17:21:10 CEST 2019 > > In order to use static_call() to wire up x86_pmu, we need to > initialize earlier; copy some of the tricks from jump_label to enable > this. > > Primarily we overload key->next to store a sites pointer when there > are no modules, this avoids having to use kmalloc() to initialize the > sites and allows us to run much earlier. > > (arguably, this is much much earlier than needed for perf, but it > might allow other uses.) > > Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Looks good, I'll try to do some more testing today-ish. -- Josh

