Skip to content

BPF: use custom kernel header#9

Merged
athre0z merged 3 commits intomainfrom
joel/custom-kernel-header
Apr 17, 2024
Merged

BPF: use custom kernel header#9
athre0z merged 3 commits intomainfrom
joel/custom-kernel-header

Conversation

@athre0z
Copy link
Copy Markdown
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
Copy Markdown
Contributor

@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
@athre0z athre0z deleted the joel/custom-kernel-header branch April 17, 2024 11:44
rockdaboot pushed a commit that referenced this pull request Jul 10, 2024
rockdaboot pushed a commit that referenced this pull request Aug 7, 2024
umanwizard added a commit to umanwizard/otel-profiling-agent that referenced this pull request Sep 4, 2024
Merge remote-tracking branch 'origin/main'
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