]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Add verified_insns to bpf_prog_info and fdinfo
authorDave Marchevsky <davemarchevsky@fb.com>
Wed, 20 Oct 2021 07:48:17 +0000 (00:48 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 21 Oct 2021 22:51:47 +0000 (15:51 -0700)
commit4d5b9557e95a58e0143a08f34d085903f218a2e8
tree2933ccb0d347784aed6093880caf3ca182a91a22
parent4087b49874408677c4d4705dbd1d575aaa2e4f6c
bpf: Add verified_insns to bpf_prog_info and fdinfo

This stat is currently printed in the verifier log and not stored
anywhere. To ease consumption of this data, add a field to bpf_prog_aux
so it can be exposed via BPF_OBJ_GET_INFO_BY_FD and fdinfo.

Signed-off-by: Dave Marchevsky <davemarchevsky@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20211020074818.1017682-2-davemarchevsky@fb.com
include/linux/bpf.h
include/uapi/linux/bpf.h
kernel/bpf/syscall.c
kernel/bpf/verifier.c
tools/include/uapi/linux/bpf.h