Increase the log size for larger bpf programs

Test: Build passes, bpf program loads without an out of space error
Bug: 203462310
Change-Id: I5f67021a530223467662f341cdfffc4816781078
This commit is contained in:
Stephane Lee 2021-10-21 17:03:11 -07:00 • committed by Maciej Żenczykowski
commit eb61b739ae

View file

@ -28,9 +28,9 @@
#include <sys/utsname.h>
#include <unistd.h>
// This is BpfLoader v0.3
// This is BpfLoader v0.4
#define BPFLOADER_VERSION_MAJOR 0u
#define BPFLOADER_VERSION_MINOR 3u
#define BPFLOADER_VERSION_MINOR 4u
#define BPFLOADER_VERSION ((BPFLOADER_VERSION_MAJOR << 16) | BPFLOADER_VERSION_MINOR)
#include "../progs/include/bpf_map_def.h"
@ -50,7 +50,7 @@
#define BPF_FS_PATH "/sys/fs/bpf/"
// Size of the BPF log buffer for verifier logging
#define BPF_LOAD_LOG_SZ 0x1ffff
#define BPF_LOAD_LOG_SZ 0xfffff
using android::base::StartsWith;
using android::base::unique_fd;