]> git.hungrycats.org Git - linux/commit
selftests/bpf: #define LOCAL_LABEL_LEN for jit_disasm_helpers.c
authorEduard Zingerman <eddyz87@gmail.com>
Fri, 23 Aug 2024 08:06:44 +0000 (01:06 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 23 Aug 2024 14:29:03 +0000 (07:29 -0700)
commit21a56fc503faae7589167fcd2771ab6dce36ab39
tree0288f89c2540dda329dbd0297e215e6f5dd2af25
parentc52a1e6eb74ffe4f217e9b53ed75440a45b08c4c
selftests/bpf: #define LOCAL_LABEL_LEN for jit_disasm_helpers.c

Extract local label length as a #define directive and
elaborate why 'i % MAX_LOCAL_LABELS' expression is needed
for local labels array initialization.

Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20240823080644.263943-4-eddyz87@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/jit_disasm_helpers.c