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.
Showing the changes to tools/include/uapi/linux (1 of 5 files). Show all
Unified · Split
| @@ -5620,6 +5620,7 @@ struct bpf_prog_info { · 5619 unmodified lines | ||
| 5620 | 5620 | __u64 run_time_ns; |
| 5621 | 5621 | __u64 run_cnt; |
| 5622 | 5622 | __u64 recursion_misses; |
| 5623 | + __u32 verified_insns; | |
| 5623 | 5624 | } __attribute__((aligned(8))); |
| 5624 | 5625 | |
| 5625 | 5626 | struct bpf_map_info { |