]> Gentwo Git Trees - linux/.git/commit
selftests/bpf: Call bpf_get_numa_node_id() in trigger_count()
authorMenglong Dong <menglong8.dong@gmail.com>
Sun, 16 Nov 2025 01:42:42 +0000 (09:42 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 25 Nov 2025 22:32:50 +0000 (14:32 -0800)
commitf2cb0660ac99b093d833ddff46a0d046396d3d4c
tree98208a328478d8f9ca3f49a1ce45dca8372a7434
parent44bf4611827b7477db188ec932b827e1fabd3ee1
selftests/bpf: Call bpf_get_numa_node_id() in trigger_count()

The bench test "trig-kernel-count" can be used as a baseline comparison
for fentry and other benchmarks, and the calling to bpf_get_numa_node_id()
should be considered as composition of the baseline. So, let's call it in
trigger_count(). Meanwhile, rename trigger_count() to
trigger_kernel_count() to make it easier understand.

Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20251116014242.151110-1-dongml2@chinatelecom.cn
tools/testing/selftests/bpf/benchs/bench_trigger.c
tools/testing/selftests/bpf/progs/trigger_bench.c