daeuniverse / dae_bpf_headers

BPF C headers for v2rayA/dae
Other
0 stars 2 forks source link

Add vmlinux-arm64.h #2

Closed jschwinger233 closed 8 months ago

jschwinger233 commented 9 months ago

This PR basically created a new file vmlinux-arm64.h, ran mv vmlinux.h vmlinux-x86.h, and let vmlinux.h choose header according to arch.

[gray/arm 37454f1] Add vmlinux-arm64.h
 3 files changed, 97295 insertions(+), 120799 deletions(-)
 create mode 100644 vmlinux-arm64.h
 copy vmlinux.h => vmlinux-x86.h (100%)
 rewrite vmlinux.h (99%)

To fix: https://github.com/daeuniverse/dae/issues/453

Github diff refuses to work, I'll paste new content in vmlinux.h below:

#if defined(__TARGET_ARCH_x86)
#include "vmlinux-x86.h"
#elif defined(__TARGET_ARCH_arm64)
#include "vmlinux-arm64.h"
#else
/*
 * For other architectures, we don't have a vmlinux.h file. But the normal dae
 * bpf program doesn't need it. So we just include the x86 vmlinux.h file to
 * make the build pass.
 */
#include "vmlinux-x86.h"
#endif
jschwinger233 commented 9 months ago

@mzz2017

jschwinger233 commented 9 months ago

Hold on...

douglarek commented 9 months ago

No rush intended, but this pull request has been open for over 3 weeks. Is there any concern preventing it from being merged?

mzz2017 commented 8 months ago

@jschwinger233 可以出个 dae 的 pr 让测起来了