[PATCH RFC bpf-next 0/2] selftests/bpf: Add support for get_preempt_count()
Tiezhu Yang
yangtiezhu at loongson.cn
Mon Apr 20 04:15:14 PDT 2026
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
More information about the linux-riscv
mailing list