diff options
author | Andrii Nakryiko <andriin@fb.com> | 2020-11-04 20:33:56 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-11-05 18:37:30 -0800 |
commit | 1306c980cf892bc17e7296d3e9ab8e9082f893a1 (patch) | |
tree | 4d0fd52e7c7133816bb205c02401996efdfc262f /fs/qnx6/inode.c | |
parent | 197389da2fbfbc3cefb229268c32d858d9575c96 (diff) |
selftests/bpf: Add checking of raw type dump in BTF writer APIs selftests
Add re-usable btf_helpers.{c,h} to provide BTF-related testing routines. Start
with adding a raw BTF dumping helpers.
Raw BTF dump is the most succinct and at the same time a very human-friendly
way to validate exact contents of BTF types. Cross-validate raw BTF dump and
writable BTF in a single selftest. Raw type dump checks also serve as a good
self-documentation.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20201105043402.2530976-7-andrii@kernel.org
Diffstat (limited to 'fs/qnx6/inode.c')
0 files changed, 0 insertions, 0 deletions