-
Notifications
You must be signed in to change notification settings - Fork 225
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
validateMaps fails for eBPF map without property 'value' #321
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Almost all yaml files under examples point to eBPF maps with 'value' property defined. Here is an example from accept-latency:
One exception is that oomkill. Here is the map definition which has no 'value'. Instead, it is value_size.
Running this example results in runtime failure
And this is caused by the check in validateMap. What would be the solution here? Is replacing 'fmt.Errorf' with a warning message reasonable? We can add a 'value' to the map, but per my understanding there shouldn't be a 'value' property for BPF_MAP_TYPE_PERF_EVENT_ARRAY. Here is reference from Nakryiko's blog. Thanks.
The text was updated successfully, but these errors were encountered: