]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Add verif_stats test
authorDave Marchevsky <davemarchevsky@fb.com>
Wed, 20 Oct 2021 07:48:18 +0000 (00:48 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 21 Oct 2021 22:51:47 +0000 (15:51 -0700)
commit42cd176e3f154b47044e6758f1464ca08cc11b1c
treece0fa74e4c7b7ceeeec37b56b627255f64ac1286
parentf4684220bea9925be7e0fbeb92d6a0189279b210
selftests/bpf: Add verif_stats test

verified_insns field was added to response of bpf_obj_get_info_by_fd
call on a prog. Confirm that it's being populated by loading a simple
program and asking for its info.

Signed-off-by: Dave Marchevsky <davemarchevsky@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211020074818.1017682-3-davemarchevsky@fb.com
tools/testing/selftests/bpf/prog_tests/verif_stats.c [new file with mode: 0644]