Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
btf: Implement support for bitfield relocations
This adds support for relocating bitfields, e.g. rewriting of the load offset and bit shifts for accessing the field. The implementation is mostly following libbpf, but does not include the loop for doubling the size of the load as that should not be necessary when one assumes that loads must be aligned and that a bitfield cannot be larger than the variable type. Signed-off-by: Jussi Maki <jussi@isovalent.com>
- Loading branch information
Showing
11 changed files
with
289 additions
and
66 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
Oops, something went wrong.