diff options
author | Yonghong Song <yhs@fb.com> | 2019-04-29 16:59:38 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-05-04 23:23:51 -0700 |
commit | 6cea33701eb024bc6c920ab83940ee22afd29139 (patch) | |
tree | 4c20799904756fba844342e358de151b482a225e /tools/lib/bpf/xsk.c | |
parent | 71f150f4c2af5f1bc22c50f4d3d299fd7c177fd7 (diff) | |
download | talos-op-linux-6cea33701eb024bc6c920ab83940ee22afd29139.tar.gz talos-op-linux-6cea33701eb024bc6c920ab83940ee22afd29139.zip |
selftests/bpf: set RLIMIT_MEMLOCK properly for test_libbpf_open.c
Test test_libbpf.sh failed on my development server with failure
-bash-4.4$ sudo ./test_libbpf.sh
[0] libbpf: Error in bpf_object__probe_name():Operation not permitted(1).
Couldn't load basic 'r0 = 0' BPF program.
test_libbpf: failed at file test_l4lb.o
selftests: test_libbpf [FAILED]
-bash-4.4$
The reason is because my machine has 64KB locked memory by default which
is not enough for this program to get locked memory.
Similar to other bpf selftests, let us increase RLIMIT_MEMLOCK
to infinity, which fixed the issue.
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/lib/bpf/xsk.c')
0 files changed, 0 insertions, 0 deletions