-
Notifications
You must be signed in to change notification settings - Fork 652
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
Add fentry example #482
Add fentry example #482
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.
Thank you! I've reorganized your commits and applied a few changes, please pull your branch again to build on top.
I have a few nits around handling endianness and the use of bytes.Buffer
.
Signed-off-by: Timo Beckers <timo@isovalent.com>
Signed-off-by: Timo Beckers <timo@isovalent.com>
No longer allocates an Event on each unmarshal, no use of binary.Read() or bytes.Reader. Signed-off-by: Timo Beckers <timo@isovalent.com>
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.
Thanks!
any suggestions around the |
I'm assuming you want to copy the example elsewhere and modify it? I'd suggest just copying the NativeEndian declaration for now as well. |
This example demonstrates attaching a fentry eBPF program to tcp_connect (bpf2go).