-
Notifications
You must be signed in to change notification settings - Fork 138
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
bpf_printk: breaking skeleton generation #155
Comments
Additional Info. Adding the following patch solves the problem.
Using BPF_NO_GLOBAL_DATA as default when doing a SkeletonBuilder, or clearly documenting that users must enable BPF_NO_GLOBAL_DATA when using bpf_printk (and limiting to printing three variables). Might be a temporary work around. A naive solution is to apply the following diff.
But this is super kludgy. |
libbpf-rs should skip generating fields for static variables. That's what we did for libbpf skeletons a while ago and mandate that only global variables make it to the skeleton. |
The following patch breaks compilation of examples
The following is observed during a cargo build
The text was updated successfully, but these errors were encountered: