diff options
author | Kumar Kartikeya Dwivedi <[email protected]> | 2024-11-03 14:59:39 -0800 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2024-11-03 16:52:06 -0800 |
commit | d402755ced2ea8fc1f0513136f074002d509bfa0 (patch) | |
tree | dfa2b8d13318abf888384053c2b2850df8cdfc12 /tools/perf/scripts/python | |
parent | 46f7ed32f7a873d6675ea72e1d6317df41a55f81 (diff) |
bpf: Unify resource leak checks
There are similar checks for covering locks, references, RCU read
sections and preempt_disable sections in 3 places in the verifer, i.e.
for tail calls, bpf_ld_[abs, ind], and exit path (for BPF_EXIT and
bpf_throw). Unify all of these into a common check_resource_leak
function to avoid code duplication.
Also update the error strings in selftests to the new ones in the same
change to ensure clean bisection.
Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions