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)
commite1b9023fc7ab0dcfeefe9f0a14772ad7a1c37b5b
treece0fa74e4c7b7ceeeec37b56b627255f64ac1286
parentaba64c7da98330141dcdadd5612f088043a83696
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]