]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
bpf: prepare liveness internal API for static analysis pass
authorEduard Zingerman <eddyz87@gmail.com>
Fri, 10 Apr 2026 20:55:57 +0000 (13:55 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 10 Apr 2026 22:05:03 +0000 (15:05 -0700)
commit8d3219f64d98f4b6591063b15bfe102937b585be
tree8f647790d005e33bd9d38a62ce1a7f7eba470bc5
parentbe23266b4a08540aa43d8503a2ea10247c8daebe
bpf: prepare liveness internal API for static analysis pass

Move the `updated` check and reset from bpf_update_live_stack() into
update_instance() itself, so callers outside the main loop can reuse
it. Similarly, move write_insn_idx assignment out of
reset_stack_write_marks() into its public caller, and thread insn_idx
as a parameter to commit_stack_write_marks() instead of reading it
from liveness->write_insn_idx. Drop the unused `env` parameter from
alloc_frame_masks() and mark_stack_read().

Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20260410-patch-set-v4-6-5d4eecb343db@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/liveness.c