Skip to content
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: fix IntEncoding #797

Merged
merged 1 commit into from Sep 20, 2022
Merged

btf: fix IntEncoding #797

merged 1 commit into from Sep 20, 2022

Conversation

lmb
Copy link
Collaborator

@lmb lmb commented Sep 20, 2022

We currently treat IntEncoding as if it was a set of flags, but the kernel and bpftool treat it like an enum. Additionally, clang doesn't generate Char encodings in the first place.

Remove the Is* methods on IntEncoding since they give users the wrong idea of how the type works. Tidy up GoFormatter to be more strict when outputting Int.

Updates #656

We currently treat IntEncoding as if it was a set of flags, but the
kernel and bpftool treat it like an enum. Additionally, clang doesn't
generate Char encodings in the first place.

Remove the Is* methods on IntEncoding since they give users the wrong
idea of how the type works. Tidy up GoFormatter to be more strict when
outputting Int.

Updates cilium#656
@lmb lmb merged commit 03b648c into cilium:master Sep 20, 2022
@lmb lmb deleted the btf-int-encoding branch September 20, 2022 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant