Re: [RFC PATCH] rust: block: Use 32-bit atomics

2024-09-05 Thread Alice Ryhl
On Thu, Sep 5, 2024 at 8:12 AM David Gow wrote: > > Not all architectures have core::sync::atomic::AtomicU64 available. In > particular, 32-bit x86 doesn't support it. AtomicU32 is available > everywhere, so use that instead. > > Hopefully we can add AtomicU64 to Rust-for-Linux more broadly, so th

Re: [PATCH v2 0/4] Enable measuring the kernel's Source-based Code Coverage and MC/DC with Clang

2024-09-05 Thread Peter Zijlstra
On Wed, Sep 04, 2024 at 11:32:41PM -0500, Wentao Zhang wrote: > From: Wentao Zhang > > This series adds support for building x86-64 kernels with Clang's Source- > based Code Coverage[1] in order to facilitate Modified Condition/Decision > Coverage (MC/DC)[2] that provably correlates to source cod

Re: FW: [EXTERNAL] Re: [PATCH v2 0/4] Enable measuring the kernel's Source-based Code Coverage and MC/DC with Clang

2024-09-05 Thread Steve VanderLeest
Resending as plain text so that lists can accept. On Thu, Sep 5, 2024 at 8:21 AM Vanderleest (US), Steven H wrote: > > From: Vanderleest (US), Steven H > Date: Thursday, September 5, 2024 at 8:13 AM > To: Peter Zijlstra , Wentao Zhang > > Cc: Kelly (US), Matt , a...@linux-foundation.org > , O

[PATCH v2 0/3] rust: Initial MIPS support

2024-09-05 Thread Jiaxun Yang
Hi Folks, This series added MIPS arch support to rust for linux, hopefully MIPS is not too late to the party :-) Sample rust module tested on R4000(el),mips32,mips32r2el,mips64, mips64r2el,mips64r6el. Please review. Thanks Signed-off-by: Jiaxun Yang --- Changes in v2: - Address review comment

[PATCH v2 1/3] rust: Introduce HAVE_GENERATE_RUST_TARGET config option

2024-09-05 Thread Jiaxun Yang
scripts/generate_rust_target.rs is used by several architectures to generate target.json target spec file. However the enablement of this feature was controlled by target specific Makefile pieces spreading everywhere. Introduce HAVE_GENERATE_RUST_TARGET config option as a centralized switch to co

[PATCH v2 3/3] rust: Enable for MIPS

2024-09-05 Thread Jiaxun Yang
Enable rust for linux by implement generate_rust_target.rs and select relevant Kconfig options. We don't use builtin target as there is no sutiable baremetal target for us that can cover all ISA variants supported by kernel. Link: https://github.com/Rust-for-Linux/linux/issues/107 Signed-off-by:

[PATCH v2 2/3] MIPS: Rename mips_instruction type to workaround bindgen issue

2024-09-05 Thread Jiaxun Yang
We have a union and a type both named after mips_instruction, rust bindgen is not happy with this kind of naming alias. Given that union mips_instruction is a part of UAPI, the best thing we can do is to rename mips_instruction type. Rename it as mips_insn, which is not conflicting with anything

Re: [PATCH v2 0/4] Enable measuring the kernel's Source-based Code Coverage and MC/DC with Clang

2024-09-05 Thread Wentao Zhang
On 2024-09-05 06:41, Peter Zijlstra wrote: > On Wed, Sep 04, 2024 at 11:32:41PM -0500, Wentao Zhang wrote: >> From: Wentao Zhang >> >> This series adds support for building x86-64 kernels with Clang's Source- >> based Code Coverage[1] in order to facilitate Modified Condition/Decision >> Coverage