-
Notifications
You must be signed in to change notification settings - Fork 228
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
XDP Support #208
Comments
What do you think about using In your setup I don't think there's a need for |
Makes sense but when I try to use SEC("xdp/enp8s0") in my program I get this error:
I don't think it recognizes |
I linked #154 because it implemented You can do a similar thing here to implement |
Okay, I will examine the codes and try to implement a similar one. I hope it's not a problem if I ask questions about the codes if I have problems. |
I merged #215, thanks! |
I was using ebpf_exporter in my project and realized that there is no XDP support in the project. I forked the project and edited it to support XDP programs. I used libbpfgo's AttachXDP function to attach the XDP program to the required interface.
My edit contains two new fields in YAML files: is_xdp to indicate if the metric has an XDP program, and interfaces is an array with interfaces to attach the XDP program. And usage is like:
If you consider it worth adding support for XDP programs I can open a PR.
The text was updated successfully, but these errors were encountered: