Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests/bpf: Fix test_verif_scale{1,3} SEC() annotations

Use proper SEC("tc") for test_verif_scale{1,3} programs. It's not
a problem for selftests right now because we manually set type
programmatically, but not having correct SEC() definitions makes it
harded to generically load BPF object files.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20220909193053.577111-2-andrii@kernel.org

authored by

Andrii Nakryiko and committed by
Daniel Borkmann
cf060c2c ceea991a

+2 -2
+1 -1
tools/testing/selftests/bpf/progs/test_verif_scale1.c
··· 5 5 #define ATTR __attribute__((noinline)) 6 6 #include "test_jhash.h" 7 7 8 - SEC("scale90_noinline") 8 + SEC("tc") 9 9 int balancer_ingress(struct __sk_buff *ctx) 10 10 { 11 11 void *data_end = (void *)(long)ctx->data_end;
+1 -1
tools/testing/selftests/bpf/progs/test_verif_scale3.c
··· 5 5 #define ATTR __attribute__((noinline)) 6 6 #include "test_jhash.h" 7 7 8 - SEC("scale90_noinline32") 8 + SEC("tc") 9 9 int balancer_ingress(struct __sk_buff *ctx) 10 10 { 11 11 void *data_end = (void *)(long)ctx->data_end;