diff --git a/staticlibs/native/bpf_headers/BpfRingbufTest.cpp b/staticlibs/native/bpf_headers/BpfRingbufTest.cpp index 0785d62488..4a45a93b3e 100644 --- a/staticlibs/native/bpf_headers/BpfRingbufTest.cpp +++ b/staticlibs/native/bpf_headers/BpfRingbufTest.cpp @@ -22,6 +22,7 @@ #include #include +#include "BpfSyscallWrappers.h" #include "bpf/BpfUtils.h" namespace android { diff --git a/staticlibs/native/bpf_headers/include/bpf/BpfMap.h b/staticlibs/native/bpf_headers/include/bpf/BpfMap.h index 47256fa098..51e6d162bd 100644 --- a/staticlibs/native/bpf_headers/include/bpf/BpfMap.h +++ b/staticlibs/native/bpf_headers/include/bpf/BpfMap.h @@ -22,6 +22,8 @@ #include #include #include + +#include "BpfSyscallWrappers.h" #include "bpf/BpfUtils.h" namespace android { diff --git a/staticlibs/native/bpf_headers/include/bpf/BpfUtils.h b/staticlibs/native/bpf_headers/include/bpf/BpfUtils.h index dc4fb17970..28d4b8bba5 100644 --- a/staticlibs/native/bpf_headers/include/bpf/BpfUtils.h +++ b/staticlibs/native/bpf_headers/include/bpf/BpfUtils.h @@ -25,21 +25,12 @@ #include #include -#include - #include #include -#include "BpfSyscallWrappers.h" - -// The buffer size for the buffer that records program loading logs, needs to be large enough for -// the largest kernel program. - namespace android { namespace bpf { -constexpr const int OVERFLOW_COUNTERSET = 2; - constexpr const uint64_t NONEXISTENT_COOKIE = 0; static inline uint64_t getSocketCookie(int sockFd) {