Re: [PATCH v3 2/2] kbuild: rust: provide an option to inline C helpers into Rust

From: Miguel Ojeda
Date: Wed Apr 09 2025 - 16:46:35 EST


On Wed, Apr 9, 2025 at 10:18 PM Alice Ryhl <aliceryhl@xxxxxxxxxx> wrote:
>
> Is this compatible with DEBUG_INFO_BTF? I'm concerned that we have the
> same issue as in commit 5daa0c35a1f0 ("rust: Disallow BTF generation
> with Rust + LTO").
>
> The commit message should either explain why we don't have the same
> issue, or this patch should prevent configurations from enabling both.

In addition, from what we discussed in the call, it would be nice to
have some performance numbers compared to not enabling it, as well as
compared to cross-language LTO.

It would also help to know which users out there need/want to have this.

Thanks!

Cheers,
Miguel