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

2024-06-25 Thread Steven Rostedt
On Thu, 20 Jun 2024 00:48:56 +0200 Vlastimil Babka wrote: > @@ -86,6 +104,7 @@ static void populate_error_injection_list(struct > error_injection_entry *start, > ent->start_addr = entry; > ent->end_addr = entry + size; > ent->etype = iter->etype; > +

[PATCH v2 2/7] error-injection: support static keys around injectable functions

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