Skip to content

Commit

Permalink
extract-btf: make endian-aware
Browse files Browse the repository at this point in the history
Also vendors vmlinux.h of big-endian PowerPC targets.
  • Loading branch information
hack3ric committed Jul 24, 2024
1 parent 5afae1f commit 4c68043
Show file tree
Hide file tree
Showing 6 changed files with 259,752 additions and 37 deletions.
8 changes: 6 additions & 2 deletions bpf/vmlinux.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@
#include "vmlinux/x86_64.h" // IWYU pragma: export
#elif defined(_MIMIC_BPF_TARGET_ARCH_aarch64)
#include "vmlinux/aarch64.h" // IWYU pragma: export
#elif defined(_MIMIC_BPF_TARGET_ARCH_ppc64le)
#include "vmlinux/ppc64le.h" // IWYU pragma: export
#elif defined(_MIMIC_BPF_TARGET_ARCH_riscv64)
#include "vmlinux/riscv64.h" // IWYU pragma: export
#elif defined(_MIMIC_BPF_TARGET_ARCH_ppc)
#include "vmlinux/ppc.h" // IWYU pragma: export
#elif defined(_MIMIC_BPF_TARGET_ARCH_ppc64)
#include "vmlinux/ppc64.h" // IWYU pragma: export
#elif defined(_MIMIC_BPF_TARGET_ARCH_ppc64le)
#include "vmlinux/ppc64le.h" // IWYU pragma: export
#endif

#endif // _BPF_VMLINUX_H
Loading

0 comments on commit 4c68043

Please sign in to comment.