selftests/bpf: Add tests for type tag order validation
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Tue, 19 Apr 2022 16:46:08 +0000 (22:16 +0530)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 19 Apr 2022 21:02:49 +0000 (14:02 -0700)
commit24fe983abe01c53e1a9354fe21fab92579fcda6d
tree2b0f53fe95a74fc94fffd6d7d1b66063213a0e89
parenteb596b0905584a9389585b0f437cf8a2faeb14d0
selftests/bpf: Add tests for type tag order validation

Add a few test cases that ensure we catch cases of badly ordered type
tags in modifier chains.

Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20220419164608.1990559-3-memxor@gmail.com
tools/testing/selftests/bpf/prog_tests/btf.c