diff options
author | Eduard Zingerman <[email protected]> | 2022-06-21 02:53:41 +0300 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2022-06-20 17:40:51 -0700 |
commit | 7a42008ca5c700819e4b3003025e5e1695fd1f86 (patch) | |
tree | 54db99e20fe60b2de5383c0e517fafc26be04745 /tools/testing/selftests/bpf/verifier/bpf_loop_inline.c | |
parent | 933ff53191eb7a8492370bad6339a1ca6da2d939 (diff) |
selftests/bpf: allow BTF specs and func infos in test_verifier tests
The BTF and func_info specification for test_verifier tests follows
the same notation as in prog_tests/btf.c tests. E.g.:
...
.func_info = { { 0, 6 }, { 8, 7 } },
.func_info_cnt = 2,
.btf_strings = "\0int\0",
.btf_types = {
BTF_TYPE_INT_ENC(1, BTF_INT_SIGNED, 0, 32, 4),
BTF_PTR_ENC(1),
},
...
The BTF specification is loaded only when specified.
Signed-off-by: Eduard Zingerman <[email protected]>
Acked-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/verifier/bpf_loop_inline.c')
0 files changed, 0 insertions, 0 deletions