Increase BPF test memlock rlimit to 1GB to match the bpfloader.
Test: builds, atest
Bug: 152285563
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ia283a66d38acfa3884463490a7a8c80560f5580d
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 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) {