Re: [PATCH v4 4/4] selftests/bpf: Add kptr-xchg benchmark
Tiezhu Yang <[email protected]> Thu, 6 Aug 2026 20:46:19 +0800
| Newsgroups | org.kernel.vger.linux-kselftest,dev.linux.lists.loongarch,org.kernel.vger.bpf |
|---|---|
| Message-ID | <[email protected]> |
On 2026/7/29 上午10:28, Chenguang Zhao wrote: > From: Chenguang Zhao <[email protected]> > > Add a bpf selftest benchmark that exercises bpf_kptr_xchg() in a tight loop > so helper vs inlined JIT paths can be compared on supported architectures. > > Signed-off-by: Chenguang Zhao <[email protected]> > --- > tools/testing/selftests/bpf/Makefile | 2 + > tools/testing/selftests/bpf/bench.c | 2 + > .../selftests/bpf/benchs/bench_kptr_xchg.c | 96 +++++++++++++++++++ > .../selftests/bpf/progs/kptr_xchg_bench.c | 49 ++++++++++ > 4 files changed, 149 insertions(+) > create mode 100644 tools/testing/selftests/bpf/benchs/bench_kptr_xchg.c > create mode 100644 tools/testing/selftests/bpf/progs/kptr_xchg_bench.c Hi Chenguang, Please send this generic selftest patch to the BPF mailing list. It should be routed through the bpf-next tree. Also, please use the '[PATCH bpf-next]' subject prefix to specify that this is destined for the bpf-next tree. For more info, please see: https://www.kernel.org/doc/html/latest/bpf/bpf_devel_QA.html Thanks, Tiezhu