diff options
author | Yonghong Song <yhs@fb.com> | 2018-02-13 10:35:05 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-02-13 18:02:02 -0800 |
commit | 615a9474985799c8b48645b8e95a9b9f0691f56a (patch) | |
tree | c570e610ad6b8d6d522d881e0012ffb39e20bac6 /tools/testing/selftests/bpf/test_verifier.c | |
parent | selftests/bpf: fix Makefile for cgroup_helpers.c (diff) | |
download | linux-dev-615a9474985799c8b48645b8e95a9b9f0691f56a.tar.xz linux-dev-615a9474985799c8b48645b8e95a9b9f0691f56a.zip |
tools/bpf: adjust rlimit RLIMIT_MEMLOCK for test_tcpbpf_user
The default rlimit RLIMIT_MEMLOCK is 64KB. In certain cases,
e.g. in a test machine mimicking our production system, this test may
fail due to unable to charge the required memory for map creation:
# ./test_tcpbpf_user
libbpf: failed to create map (name: 'global_map'): Operation not permitted
libbpf: failed to load object 'test_tcpbpf_kern.o'
FAILED: load_bpf_file failed for: test_tcpbpf_kern.o
Changing the default rlimit RLIMIT_MEMLOCK to unlimited makes
the test always pass.
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/test_verifier.c')
0 files changed, 0 insertions, 0 deletions