Merge "remove spurious #include and OVERFLOW_COUNTERSET"

This commit is contained in:
Maciej Żenczykowski
2022-12-20 12:13:43 +00:00
committed by Gerrit Code Review
3 changed files with 3 additions and 9 deletions

View File

@@ -22,6 +22,7 @@
#include <stdlib.h>
#include <unistd.h>
#include "BpfSyscallWrappers.h"
#include "bpf/BpfUtils.h"
namespace android {

View File

@@ -22,6 +22,8 @@
#include <android-base/stringprintf.h>
#include <android-base/unique_fd.h>
#include <utils/Log.h>
#include "BpfSyscallWrappers.h"
#include "bpf/BpfUtils.h"
namespace android {

View File

@@ -25,21 +25,12 @@
#include <sys/socket.h>
#include <sys/utsname.h>
#include <string>
#include <android-base/unique_fd.h>
#include <log/log.h>
#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) {