Re: [PATCH RFC 2/4] error-injection: support static keys around injectable functions

2024-06-02 Thread Google
On Fri, 31 May 2024 11:33:33 +0200 Vlastimil Babka wrote: > Error injectable functions cannot be inlined and since some are called > from hot paths, this incurrs overhead even if no error injection is > enabled for them. > > To remove this overhead when disabled, allow the callsites of error >

[PATCH RFC 2/4] error-injection: support static keys around injectable functions

2024-05-31 Thread Vlastimil Babka
Error injectable functions cannot be inlined and since some are called from hot paths, this incurrs overhead even if no error injection is enabled for them. To remove this overhead when disabled, allow the callsites of error injectable functions to put the calls behind a static key, which the