On Mon, 19 Aug 2024 12:02:44 -0400 Steven Rostedt <rost...@goodmis.org> wrote:
> On Tue, 20 Aug 2024 00:56:49 +0900 > Masami Hiramatsu (Google) <mhira...@kernel.org> wrote: > > > > > > > > We may need to add "noinline" or something to make sure those functions > > > don't get inlined for LTO. > > > > Yeah, we need such option at least for function call test. > > Could you add the noinline, and if it fixes the issue send a patch? I found the target function already has "noinline". I tried to add noinline to the testing function (callsite), but it also did not work. I think "noinline" is for the compiler, but LTO is done by the linker. I found a discussion similar to this problem, but it seems very hacky. https://groups.google.com/g/llvm-dev/c/6baI9LISmSU/m/uEeY_CRbBQAJ?pli=1 Thank you, > > Thanks, > > -- Steve > -- Masami Hiramatsu (Google) <mhira...@kernel.org>