-
Notifications
You must be signed in to change notification settings - Fork 716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pin: new package for loading bpf pins and walking bpffs directories #1626
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:very_nice:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good to me 🚀
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 <timo@isovalent.com>
…ven type Signed-off-by: Timo Beckers <timo@isovalent.com>
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 <timo@isovalent.com>
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 <mahe.tardy@gmail.com>
This is so much better, look at the improvement cilium/tetragon@ef53ab5. It removed sketchy code. Thanks again! |
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 <mahe.tardy@gmail.com>
Thanks for the feedback, enjoy! |
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 <mahe.tardy@gmail.com>
See individual commits.
The API added in this PR: