diff options
| author | 2018-02-13 10:35:05 -0800 | |
|---|---|---|
| committer | 2018-02-13 18:02:02 -0800 | |
| commit | 615a9474985799c8b48645b8e95a9b9f0691f56a (patch) | |
| tree | c570e610ad6b8d6d522d881e0012ffb39e20bac6 /include/linux/debugobjects.h | |
| parent | selftests/bpf: fix Makefile for cgroup_helpers.c (diff) | |
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 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
