summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaciej Żenczykowski <maze@google.com>2020-03-31 12:18:32 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-03-31 12:18:32 +0000
commitf8c116483c0bc1c9b23e63776c45ae9195fa6367 (patch)
treed8bbac0326dba9bde0d33e1ca391d099d5b69d2e
parent21fc3ca560057f826b326c062fba52f880bfc455 (diff)
parent3a4c20be66eb9f0f578e6fa8d379194af0158839 (diff)
downloadplatform_system_bpf-f8c116483c0bc1c9b23e63776c45ae9195fa6367.tar.gz
platform_system_bpf-f8c116483c0bc1c9b23e63776c45ae9195fa6367.tar.bz2
platform_system_bpf-f8c116483c0bc1c9b23e63776c45ae9195fa6367.zip
Increase BPF test memlock rlimit to 1GB to match the bpfloader. am: 3a4c20be66
Change-Id: Ieb9310916ef7050e55ac3b743c69743bbc8cc29e
-rw-r--r--libbpf_android/BpfUtils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbpf_android/BpfUtils.cpp b/libbpf_android/BpfUtils.cpp
index 2b96f95..97b3363 100644
--- a/libbpf_android/BpfUtils.cpp
+++ b/libbpf_android/BpfUtils.cpp
@@ -85,8 +85,8 @@ int synchronizeKernelRCU() {
int setrlimitForTest() {
// Set the memory rlimit for the test process if the default MEMLOCK rlimit is not enough.
struct rlimit limit = {
- .rlim_cur = 8388608, // 8 MiB
- .rlim_max = 8388608, // 8 MiB
+ .rlim_cur = 1073741824, // 1 GiB
+ .rlim_max = 1073741824, // 1 GiB
};
int res = setrlimit(RLIMIT_MEMLOCK, &limit);
if (res) {