-
Notifications
You must be signed in to change notification settings - Fork 717
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
btf: work around missing ENUM64 support on older kernels
Replace an ENUM64 with a 64-bit integer on kernels which don't support the former. This behaviour is similar to libbpf, which replaces the ENUM64 with a union instead. Remove the old heuristic which encoded a 64-bit enum as a 32-bit enum if none of the values exceeded math.MaxUint32. The heuristic has no tests and doesn't take the signedness of the enum into account. Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
- Loading branch information
Showing
3 changed files
with
89 additions
and
30 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
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