Skip to content

Conversation

@naushniki
Copy link

No description provided.

@naushniki naushniki changed the title fix build for clang18 on ubuntu 22.04 with kernerl v. 5.15 fix build for clang18 on ubuntu 22.04 with kernel v. 5.15 Jan 16, 2026
@loresuso
Copy link
Owner

Hey there! thanks for opening this PR and noticing the bug!

I like your approach, but we need to keep it working also on newer kernel. As advised from the "bible" aka https://nakryiko.com/posts/bpf-core-reference-guide/, we can use bpf_core_field_exists to check whether a struct contains a certain field, and implement a fallback otherwise. As pointed out in this issue, the change happened in 6.3.

I believe I addressed this in my last commit, can you please check if it works for you?

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.

2 participants