commit | 64b91ac112506e19e01819197d6e7b6585ffdb65 | [log] [tgz] |
---|---|---|
author | Chenbo Feng <fengc@google.com> | Tue Apr 09 12:05:04 2019 -0700 |
committer | Chenbo Feng <fengc@google.com> | Wed Apr 10 11:42:03 2019 -0700 |
tree | 3eec639b277d14a24fc410787cb5842dba254fe4 | |
parent | ccf071ca076494ebebc27416ad3734cc05233bb9 [diff] |
Add helper function to set rlimit for tests Add a helper function to check if the current device have sufficient MEMLOCK rlimit for bpf related unit tests. If not, try to set it to a proper size. Bug: 119279144 Bug: 129246448 Test: libbpf_android_test Change-Id: I5390f4d3b21436abff69a661d1c6e6a6749542ed Merged-In: I5390f4d3b21436abff69a661d1c6e6a6749542ed (Cherry-picked from commit 0a1a9a11d96d937e7563659f92edf04fafa766c9)