summaryrefslogtreecommitdiff
path: root/libbpf_android/include/bpf/BpfUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'libbpf_android/include/bpf/BpfUtils.h')
-rw-r--r--libbpf_android/include/bpf/BpfUtils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libbpf_android/include/bpf/BpfUtils.h b/libbpf_android/include/bpf/BpfUtils.h
index 77a18fa..93a13a4 100644
--- a/libbpf_android/include/bpf/BpfUtils.h
+++ b/libbpf_android/include/bpf/BpfUtils.h
@@ -61,6 +61,8 @@
#define MAP_CMD_SIZE 16
+#define TEST_LIMIT 8388608
+
namespace android {
namespace bpf {
@@ -157,6 +159,7 @@ int bpfFdGet(const char* pathname, uint32_t flags);
int attachProgram(bpf_attach_type type, uint32_t prog_fd, uint32_t cg_fd);
int detachProgram(bpf_attach_type type, uint32_t cg_fd);
uint64_t getSocketCookie(int sockFd);
+int setrlimitForTest();
std::string BpfLevelToString(BpfLevel BpfLevel);
BpfLevel getBpfSupportLevel();
int parseProgramsFromFile(const char* path, BpfProgInfo* programs, size_t size,