summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2026-10-16 17:55:59 +0200
committerAlexei Starovoitov <ast@kernel.org>2026-10-16 17:46:26 +0000
commitd2141481a764efdfaac70965ea28e8925f6a6b80 (patch)
tree0a4969cfbcc6528f49af6b9b4184a728ffa7c44e /tools/perf/scripts/python
parentb4e14f47371c0b33b9d5bcfc9b286320a1a5bfcf (diff)
bpf: Free the subprog jump tables once the CFG passes are done
The jump tables which compute_subprog_jts() builds are only read through bpf_insn_successors() once CFG discovery is done. Its last caller is bpf_compute_scev(), which runs after bpf_compute_live_registers(), so free the tables right after it instead of keeping them until the verifier environment is torn down. With large insn_array maps, this also drops them before do_check() starts to allocate states. Dead code removal runs after do_check(), so a removed subprogram no longer owns a table and adjust_subprog_starts_after_remove() can go back to not caring about the table pointers. Suggested-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://patch.msgid.link/20261016155559.652461-1-daniel@iogearbox.net
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions