Re: [PATCH] objtool,static_call: Don't emit static_call_site for .exit.text
From: Josh Poimboeuf
Date: Wed Mar 17 2021 - 20:03:09 EST
On Wed, Mar 17, 2021 at 01:45:57PM +0100, Peter Zijlstra wrote:
> arguably it simply isn't a good idea to use static_call() in __exit
> code anyway, since module unload is never a performance critical path.
Couldn't you make the same argument about __init functions, which are
allowed to do static calls?
We might consider a STATIC_CALL_SITE_EXIT flag, but I suppose we've run
out of flag space.