Skip to content

Check if ebpf.ProgramSpec is not nil before returning to user#270

Merged
usamasaqib merged 1 commit intomainfrom
usama.saqib/check-program-spec
Apr 2, 2026
Merged

Check if ebpf.ProgramSpec is not nil before returning to user#270
usamasaqib merged 1 commit intomainfrom
usama.saqib/check-program-spec

Conversation

@usamasaqib
Copy link
Copy Markdown
Contributor

What does this PR do?

manager.GetProgramSpec returns Probe.programSpec even if it is nil. This can happen when this function is called after manager.LoadELF but before initialization, even though ebpf.CollectionSpec is populated.

Motivation

Additional Notes

Describe how to test your changes

@usamasaqib usamasaqib requested a review from a team as a code owner April 2, 2026 12:25
@usamasaqib usamasaqib merged commit 19d0ce1 into main Apr 2, 2026
3 checks passed
@usamasaqib usamasaqib deleted the usama.saqib/check-program-spec branch April 2, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants