[PATCH v3 00/22] Move notrace from inline to __always_inline
Christophe Leroy (CS GROUP)
chleroy at kernel.org
Tue Dec 1 14:03:55 PST 2026
Le 01/12/2026 à 12:13, David Laight a écrit :
> On Mon, 30 Nov 2026 20:21:39 -0800
> Song Liu <song at kernel.org> wrote:
>
>> Since commit 45959ee7aa64 ("ftrace: Do not function trace inlined
>> functions"), every function marked inline is also notrace. When the
>> compiler does not inline such a function, the out-of-line copy cannot
>> be traced with ftrace, cannot be a BPF fentry/fexit target, and cannot
>> be livepatched.
>
> That seems entirely reasonable to me.
> Anything marked inline is really expected to be inlined (even if the
> compiler decides otherwise).
Obviously not, see commit 60a3cdd06394 ("x86: add optimized inlining")
Christophe
More information about the linux-arm-kernel
mailing list