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

BPF: use custom kernel header #9

Merged
merged 3 commits into from
Apr 17, 2024
Merged

BPF: use custom kernel header #9

merged 3 commits into from
Apr 17, 2024

Conversation

athre0z
Copy link
Member

@athre0z athre0z commented Apr 17, 2024

This PR:

  • adds a new header kernel.h that defines all kernel types that we need
  • removes the include paths to the actual kernel headers from our CC invocation
  • removes the ugly #undef asm_volatile_goto workarounds that were required with the real kernel headers
  • moves various kernel defines from bpfdefs.h to kernel.h
  • merges inttypes.h into kernel.h

With these changes we're now independent on host systems kernel headers.

(PR ported from upstream PR 4905)

Closes #8

@athre0z athre0z added the enhancement New feature or request label Apr 17, 2024
@athre0z athre0z self-assigned this Apr 17, 2024
@athre0z athre0z changed the title Joel/custom kernel header BPF: use custom kernel header Apr 17, 2024
@athre0z athre0z marked this pull request as ready for review April 17, 2024 11:05
@athre0z athre0z requested a review from rockdaboot April 17, 2024 11:05
Copy link
Collaborator

@rockdaboot rockdaboot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, tested with devfiler

@athre0z athre0z merged commit b002609 into main Apr 17, 2024
3 checks passed
@athre0z athre0z deleted the joel/custom-kernel-header branch April 17, 2024 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failure to compile ebpf on aarch64
2 participants