From 6776e3b02b0799e0b7afdf914162193fefea1e50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20=C5=BBenczykowski?= Date: Sat, 10 Dec 2022 12:18:23 +0000 Subject: [PATCH] remove spurious #include and OVERFLOW_COUNTERSET MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Test: TreeHugger Signed-off-by: Maciej Żenczykowski Change-Id: I8ad1b19905509862bdfa4e710da778ed0effb058 --- staticlibs/native/bpf_headers/BpfRingbufTest.cpp | 1 + staticlibs/native/bpf_headers/include/bpf/BpfMap.h | 2 ++ staticlibs/native/bpf_headers/include/bpf/BpfUtils.h | 9 --------- 3 files changed, 3 insertions(+), 9 deletions(-) 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 157f210c83..89068166d2 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) {