Skip to content

Commit

Permalink
selftests/bpf: Fix test_verif_scale{1,3} SEC() annotations
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
  • Loading branch information
anakryiko authored and borkmann committed Sep 16, 2022
1 parent ceea991 commit cf060c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/testing/selftests/bpf/progs/test_verif_scale1.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#define ATTR __attribute__((noinline))
#include "test_jhash.h"

SEC("scale90_noinline")
SEC("tc")
int balancer_ingress(struct __sk_buff *ctx)
{
void *data_end = (void *)(long)ctx->data_end;
Expand Down
2 changes: 1 addition & 1 deletion tools/testing/selftests/bpf/progs/test_verif_scale3.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#define ATTR __attribute__((noinline))
#include "test_jhash.h"

SEC("scale90_noinline32")
SEC("tc")
int balancer_ingress(struct __sk_buff *ctx)
{
void *data_end = (void *)(long)ctx->data_end;
Expand Down

0 comments on commit cf060c2

Please sign in to comment.