-
Notifications
You must be signed in to change notification settings - Fork 706
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
elf_reader: support value BTF on ringbuf and perf array maps
While reviewing #1610, I noticed we were generating VariableSpecs for variables named 'unused' in our examples. There had to be a better way to get their BTF info into the ELF. I thoroughly checked all map types present in Linux 6.12 for any validation code on attr->value_size, and only RingBuf and Arena maps require value_size to be zero at all times. Special-case PerfEventArray so type annotations aren't limited to 4 bytes. Signed-off-by: Timo Beckers <timo@isovalent.com>
- Loading branch information
Showing
10 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters