-
Notifications
You must be signed in to change notification settings - Fork 271
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
minimal example can't run #68
Comments
Your kernel is too old for this example. To get it work, you need to remove |
@chenhengqi |
@mrpre you can prevent bpf_printk() from using global variables by defining BPF_NO_GLOBAL_DATA before including bpf_helpers.h header. BCC implementation uses suboptimal implementation that requires on the stack variables and their implementation (which libbpf will do if BPF_NO_GLOBAL_DATA is defined) |
@anakryiko Thanks a lot, it works after I remove |
From the README: |
For anyone else running across this, I was able to change this to use an array. my_pid becomes this:
The tracepoint hook now contains this:
and the user-space program sets it's pid into the first element of the array after the the skeleton load:
where index is defined |
How about we add |
PR #84 adds this example. |
We can close this now that PR #84 has been merged. |
After compile and build the
minimal
example application, I try to run it but with the following error message:My kernel version is: 4.15.0-96-generic. I run the example on Ubuntu-18.04 system.
The text was updated successfully, but these errors were encountered: