diff options
| author | Alexei Starovoitov <ast@kernel.org> | 2026-05-14 04:38:31 +0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-05-14 04:38:31 +0300 |
| commit | e651f3ce1364d06d97bb7cc4aa5b23146420a67d (patch) | |
| tree | 46d5982b8e4ff5d99e4a5e96e200def9aa00dbb6 /include | |
| parent | 74a9bb761a434ea3be1e0c59cd67b37217eb042c (diff) | |
| parent | f0015ffbf40c7c6db148163bd6f8c53f14933b53 (diff) | |
| download | linux-e651f3ce1364d06d97bb7cc4aa5b23146420a67d.tar.xz | |
Merge branch 'bpf-maximum-combined-stack-depth'
Paul Chaignon says:
====================
bpf: Maximum combined stack depth
This patchset dumps the maximum combined stack depth in verifier logs
and parses it in veristat.
Changes in v3:
- Increment spec_cnt field in veristat for new MAX_STACK id (AI bot).
Changes in v2:
- Remove unnecessary max_stack_depth assignment (Eduard).
- Fix and test incorrect handling of private stacks.
- Add veristat metric (Eduard).
====================
Link: https://patch.msgid.link/cover.1778700777.git.paul.chaignon@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/bpf_verifier.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/bpf_verifier.h b/include/linux/bpf_verifier.h index 6f12fc40b682..20c421b43849 100644 --- a/include/linux/bpf_verifier.h +++ b/include/linux/bpf_verifier.h @@ -989,6 +989,8 @@ struct bpf_verifier_env { u32 prev_insn_processed, insn_processed; /* number of jmps, calls, exits analyzed so far */ u32 prev_jmps_processed, jmps_processed; + /* maximum combined stack depth */ + u32 max_stack_depth; /* total verification time */ u64 verification_time; /* maximum number of verifier states kept in 'branching' instructions */ |
