1. 03 3月, 2019 6 次提交
  2. 01 3月, 2019 1 次提交
  3. 26 2月, 2019 1 次提交
    • S
      selftests/bpf: make sure signal interrupts BPF_PROG_TEST_RUN · 740f8a65
      Stanislav Fomichev 提交于
      Simple test that I used to reproduce the issue in the previous commit:
      Do BPF_PROG_TEST_RUN with max iterations, each program is 4096 simple
      move instructions. File alarm in 0.1 second and check that
      bpf_prog_test_run is interrupted (i.e. test doesn't hang).
      
      Note: reposting this for bpf-next to avoid linux-next conflict. In this
      version I test both BPF_PROG_TYPE_SOCKET_FILTER (which uses generic
      bpf_test_run implementation) and BPF_PROG_TYPE_FLOW_DISSECTOR (which has
      it own loop with preempt handling in bpf_prog_test_run_flow_dissector).
      Signed-off-by: NStanislav Fomichev <sdf@google.com>
      Signed-off-by: NDaniel Borkmann <daniel@iogearbox.net>
      740f8a65
  4. 05 2月, 2019 2 次提交
    • S
      libbpf: fix libbpf_print · a8a1f7d0
      Stanislav Fomichev 提交于
      With the recent print rework we now have the following problem:
      pr_{warning,info,debug} expand to __pr which calls libbpf_print.
      libbpf_print does va_start and calls __libbpf_pr with va_list argument.
      In __base_pr we again do va_start. Because the next argument is a
      va_list, we don't get correct pointer to the argument (and print noting
      in my case, I don't know why it doesn't crash tbh).
      
      Fix this by changing libbpf_print_fn_t signature to accept va_list and
      remove unneeded calls to va_start in the existing users.
      
      Alternatively, this can we solved by exporting __libbpf_pr and
      changing __pr macro to (and killing libbpf_print):
      {
      	if (__libbpf_pr)
      		__libbpf_pr(level, "libbpf: " fmt, ##__VA_ARGS__)
      }
      Signed-off-by: NStanislav Fomichev <sdf@google.com>
      Acked-by: NYonghong Song <yhs@fb.com>
      Signed-off-by: NAlexei Starovoitov <ast@kernel.org>
      a8a1f7d0
    • Y
      tools/bpf: simplify libbpf API function libbpf_set_print() · 6f1ae8b6
      Yonghong Song 提交于
      Currently, the libbpf API function libbpf_set_print()
      takes three function pointer parameters for warning, info
      and debug printout respectively.
      
      This patch changes the API to have just one function pointer
      parameter and the function pointer has one additional
      parameter "debugging level". So if in the future, if
      the debug level is increased, the function signature
      won't change.
      Signed-off-by: NYonghong Song <yhs@fb.com>
      Signed-off-by: NAlexei Starovoitov <ast@kernel.org>
      6f1ae8b6
  5. 02 2月, 2019 2 次提交
  6. 29 1月, 2019 1 次提交
  7. 17 1月, 2019 1 次提交
  8. 13 12月, 2018 1 次提交
  9. 05 12月, 2018 1 次提交
  10. 29 11月, 2018 1 次提交
  11. 17 11月, 2018 1 次提交
  12. 20 10月, 2018 1 次提交
  13. 03 10月, 2018 1 次提交
  14. 07 9月, 2018 1 次提交
  15. 25 5月, 2018 1 次提交
  16. 15 5月, 2018 1 次提交
  17. 11 5月, 2018 1 次提交
  18. 02 5月, 2018 1 次提交
  19. 29 4月, 2018 2 次提交
  20. 19 4月, 2018 1 次提交
  21. 29 3月, 2018 1 次提交
  22. 15 3月, 2018 1 次提交
  23. 27 2月, 2018 1 次提交
  24. 07 1月, 2018 1 次提交
  25. 20 12月, 2017 1 次提交
  26. 18 12月, 2017 2 次提交
  27. 13 12月, 2017 1 次提交
  28. 29 9月, 2017 2 次提交
  29. 29 8月, 2017 1 次提交
  30. 17 8月, 2017 1 次提交