Skip to content

Commit

Permalink
selftests/bpf: verifier/array_access.c converted to inline assembly
Browse files Browse the repository at this point in the history
Test verifier/array_access.c automatically converted to use inline assembly.

Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20230325025524.144043-8-eddyz87@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
  • Loading branch information
Eduard Zingerman authored and Alexei Starovoitov committed Mar 26, 2023
1 parent 9d0f156 commit a3c830a
Show file tree
Hide file tree
Showing 3 changed files with 531 additions and 379 deletions.
2 changes: 2 additions & 0 deletions tools/testing/selftests/bpf/prog_tests/verifier.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include "cap_helpers.h"
#include "verifier_and.skel.h"
#include "verifier_array_access.skel.h"

__maybe_unused
static void run_tests_aux(const char *skel_name, skel_elf_bytes_fn elf_bytes_factory)
Expand All @@ -30,3 +31,4 @@ static void run_tests_aux(const char *skel_name, skel_elf_bytes_fn elf_bytes_fac
#define RUN(skel) run_tests_aux(#skel, skel##__elf_bytes)

void test_verifier_and(void) { RUN(verifier_and); }
void test_verifier_array_access(void) { RUN(verifier_array_access); }
Loading

0 comments on commit a3c830a

Please sign in to comment.