-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
BTF flattens n-dym arrays #3082
Labels
bug
Something isn't working
Comments
I think this is a problem with pahole's DWARF -> BTF translator: https://git.kernel.org/pub/scm/devel/pahole/pahole.git/tree/btf_encoder.c#n1199 We use it to generate our test BTF data here: bpftrace/tests/data/CMakeLists.txt Lines 16 to 22 in 3691e71
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
BTF flattens multi-dimensional arrays into 1-D array.
The tests
field_analyser_btf.btf_types
andclang_parser_btf.btf
had to be modified as follow:Foo1.d
was set to 12 instead of the correct number 3What reproduces the bug? Provide code if possible.
Modify
field_analyser_btf.btf_types
andclang_parser_btf.btf
so they use the commented code for the fieldFoo1.d
.The text was updated successfully, but these errors were encountered: