Re: [PATCH bpf-next v1] selftests/bpf: Add get_preempt_count() support for RISC-V

From: patchwork-bot+netdevbpf

Date: Fri Jul 24 2026 - 17:00:56 EST


Hello:

This patch was applied to bpf/bpf-next.git (master)
by Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx>:

On Wed, 22 Jul 2026 10:29:06 +0800 you wrote:
> Currently, there is no RISC-V support for get_preempt_count() and
> its fallback path always returns 0.
>
> Add it so that bpf_in_interrupt(), bpf_in_nmi(), bpf_in_hardirq(),
> bpf_in_serving_softirq(), and bpf_in_task() work for RISC-V as well.
>
> Given that RISC-V has supported CONFIG_THREAD_INFO_IN_TASK since its
> initial commit fbe934d69eb7 ("RISC-V: Build Infrastructure") in 2017,
> directly retrieve preempt_count from the thread_info embedded within
> task_struct via bpf_get_current_task_btf().
>
> [...]

Here is the summary with links:
- [bpf-next,v1] selftests/bpf: Add get_preempt_count() support for RISC-V
https://git.kernel.org/bpf/bpf-next/c/9b19237a46e7

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html