selftests/bpf: Add test for bpf_get_smp_processor_id

Add a test which checks on each CPU that the bpf_get_smp_processor_id
BPF helper is returning the correct CPU number.

Signed-off-by: Maxim Khmelevskii <max@linux.ibm.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Ilya Leoshkevich <iii@linux.ibm.com>
Link: https://lore.kernel.org/bpf/20260703125648.919196-6-max@linux.ibm.com
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
This commit is contained in:
Maxim Khmelevskii 2026-07-03 14:51:36 +02:00 • committed by Kumar Kartikeya Dwivedi
commit e733303438
No known key found for this signature in database
GPG key ID: 472D377B63542F83
2 changed files with 65 additions and 0 deletions