On Wed, 2 Dec 2026 12:11:50 -0500, Steven Rostedt <[email protected]> wrote:
> On Wed, 02 Dec 2026 22:49:41 +0900
> "Masami Hiramatsu (Google)" <[email protected]> wrote:
> 
> > More importantly, there is a structural maintainability problem.
> > It is impossible to know in advance whether a `static inline` helper
> > function will actually be inlined or generated as standalone code.
> > Unlike `noinstr` on x86, there is no compile-time check tool
> > (such as objtool) detecting - across different architectures -
> > calls from a function marked `notrace` to a function that is
> > traceable.
> > 
> > So, I am opposed to making global semantic changes before such tools
> > are in place.
> 
> Could simply add a config to make all inline nops. If you really need
> something inlined, you use __always_inline.

As David mentioned, depends on the optimization level, normal
"static" functions can be inlined silently. Maybe what Song need is
a config option to set "-fno-inline". :( 

Thank you,

-- 
Masami Hiramatsu (Google) <[email protected]>

Reply via email to