diff options
| author | Eduard Zingerman <[email protected]> | 2022-06-20 23:53:41 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2022-06-21 00:40:51 +0000 |
| commit | 7a42008ca5c700819e4b3003025e5e1695fd1f86 (patch) | |
| tree | 54db99e20fe60b2de5383c0e517fafc26be04745 /tools/testing/selftests/bpf/prog_tests/bpf_loop.c | |
| parent | selftests/bpf: specify expected instructions in test_verifier tests (diff) | |
| download | kernel-7a42008ca5c700819e4b3003025e5e1695fd1f86.tar.gz kernel-7a42008ca5c700819e4b3003025e5e1695fd1f86.zip | |
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/prog_tests/bpf_loop.c')
0 files changed, 0 insertions, 0 deletions
