1. 15 7月, 2018 1 次提交
  2. 27 2月, 2018 1 次提交
  3. 14 2月, 2018 1 次提交
    • Y
      tools/bpf: adjust rlimit RLIMIT_MEMLOCK for test_tcpbpf_user · 615a9474
      Yonghong Song 提交于
      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: NYonghong Song <yhs@fb.com>
      Signed-off-by: NAlexei Starovoitov <ast@kernel.org>
      615a9474
  4. 26 1月, 2018 1 次提交