public inbox for bpf@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC bpf-next 0/2] selftests/bpf: Add support for get_preempt_count()
@ 2026-04-20 11:15 Tiezhu Yang
  2026-04-20 11:15 ` [PATCH RFC bpf-next 1/2] selftests/bpf: Add riscv " Tiezhu Yang
  2026-04-20 11:15 ` [PATCH RFC bpf-next 2/2] selftests/bpf: Add LoongArch " Tiezhu Yang
  0 siblings, 2 replies; 5+ messages in thread
From: Tiezhu Yang @ 2026-04-20 11:15 UTC (permalink / raw)
  To: bpf, linux-riscv

This series is based on the latest bpf-next tree.

I can not test the patch #1 on riscv due to no riscv machine, I only
tested the patch #2 with the same change on LoongArch based on the RFC
"LoongArch: Implement CONFIG_THREAD_INFO_IN_TASK" [1], it works well.

I think the patch #1 is right for riscv in theory, because it supports
CONFIG_THREAD_INFO_IN_TASK and there is member preempt_count in struct
thread_info. I hope someone from riscv side can help test this patch.
If no, I will try to test. Thanks in advance.

[1] https://lore.kernel.org/loongarch/20260420102907.4617-1-yangtiezhu@loongson.cn/

Tiezhu Yang (2):
  selftests/bpf: Add riscv support for get_preempt_count()
  selftests/bpf: Add LoongArch support for get_preempt_count()

 tools/testing/selftests/bpf/bpf_experimental.h | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

-- 
2.42.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-04-21  0:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-20 11:15 [PATCH RFC bpf-next 0/2] selftests/bpf: Add support for get_preempt_count() Tiezhu Yang
2026-04-20 11:15 ` [PATCH RFC bpf-next 1/2] selftests/bpf: Add riscv " Tiezhu Yang
2026-04-20 11:15 ` [PATCH RFC bpf-next 2/2] selftests/bpf: Add LoongArch " Tiezhu Yang
2026-04-20 13:35   ` sashiko-bot
2026-04-21  0:47     ` Tiezhu Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox