pin: new package for loading bpf pins and walking bpffs directories#1626
Merged
ti-mo merged 3 commits intocilium:mainfrom Dec 16, 2024
Merged
pin: new package for loading bpf pins and walking bpffs directories#1626ti-mo merged 3 commits intocilium:mainfrom
ti-mo merged 3 commits intocilium:mainfrom
Conversation
This is useful API to call from other packages. In a subsequent commit, it will be used for passing ownership of a sys.FD from a sys.ObjGet caller to New*FromFD functions, which would otherwise create multiple sys.FD wrapping the same underlying fd. Signed-off-by: Timo Beckers <[email protected]>
…ven type Signed-off-by: Timo Beckers <[email protected]>
This commit adds a new package pin with two main APIs: Load() and WalkDir(). It's split off from the root package since ebpf cannot import link. Signed-off-by: Timo Beckers <[email protected]>
mtardy
added a commit
to cilium/tetragon
that referenced
this pull request
Dec 20, 2024
PR cilium/ebpf#1626 added the new pin package that simplifies a lot how one can parse a bpf fs. I just love it. Signed-off-by: Mahe Tardy <[email protected]>
Member
|
This is so much better, look at the improvement cilium/tetragon@ef53ab5. It removed sketchy code. Thanks again! |
mtardy
added a commit
to cilium/tetragon
that referenced
this pull request
Dec 20, 2024
PR cilium/ebpf#1626 added the new pin package that simplifies a lot how one can parse a bpf fs. I just love it. Signed-off-by: Mahe Tardy <[email protected]>
Contributor
Author
Thanks for the feedback, enjoy! |
mtardy
added a commit
to cilium/tetragon
that referenced
this pull request
Jan 2, 2025
PR cilium/ebpf#1626 added the new pin package that simplifies a lot how one can parse a bpf fs. I just love it. Signed-off-by: Mahe Tardy <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See individual commits.
The API added in this PR: