selftest/bpf: Replace magic constants by macros
authorAnton Protopopov <aspsk@isovalent.com>
Fri, 13 Dec 2024 13:09:34 +0000 (13:09 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 13 Dec 2024 22:48:39 +0000 (14:48 -0800)
commitd677a10f80abf1ef65ae9bcf51b5a83ecf10e99a
tree0acb5f6324ae0ab1cee6d3d41a0b6840a4255dda
parent1c593d7402b13d97f997b570e9fc7c49e53e1ed1
selftest/bpf: Replace magic constants by macros

Replace magic constants in a BTF structure initialization code by
proper macros, as is done in other similar selftests.

Suggested-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Anton Protopopov <aspsk@isovalent.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20241213130934.1087929-8-aspsk@isovalent.com
tools/testing/selftests/bpf/progs/syscall.c