-
Notifications
You must be signed in to change notification settings - Fork 3.7k
bpf/analyze: BPF program reachability analysis follow-ups #41628
Copy link
Copy link
Closed
Labels
area/loaderImpacts the loading of BPF programs into the kernel.Impacts the loading of BPF programs into the kernel.
Description
The machinery introduced in #40416 for finding dead code in bpf programs has a few remaining sharp edges.
- The reachability analysis result (2 bitmaps,
liveandjumps) is currently put intoBlocks. The result should probably go into a separate object soReachability()doesn't need to concern itself with checking whether analysis has already run.LiveInstructions()should also be implemented on this new structure. This way, things are nicely layered and concerns are separated. - Tail call analysis merged in Avoid verifying tail call programs for disabled features #41421 could use a clonable iterator that can backtrack from the current position without having to perform direct accesses to the underlying
Instructionsusing offsets. Make it safe and fast.
Spinoffs:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/loaderImpacts the loading of BPF programs into the kernel.Impacts the loading of BPF programs into the kernel.