mbox series

[bpf-next,0/4] selftests/bpf: parallel mode improvement

Message ID 20211025223345.2136168-1-fallentree@fb.com (mailing list archive)
Headers show
Series selftests/bpf: parallel mode improvement | expand

Message

Yucong Sun Oct. 25, 2021, 10:33 p.m. UTC
Several patches to improve parallel execution mode, including printing
subtest status line, updating vmtest.sh and fixed two previously dropped
patch according to feedback.


Yucong Sun (4):
  selfetests/bpf: Update vmtest.sh defaults
  selftests/bpf: print subtest status line
  selftests/bpf: fix attach_probe in parallel mode
  selftests/bpf: adding a namespace reset for tc_redirect

 .../selftests/bpf/prog_tests/attach_probe.c   |  9 ++-
 .../selftests/bpf/prog_tests/tc_redirect.c    | 14 +++++
 tools/testing/selftests/bpf/test_progs.c      | 56 +++++++++++++++----
 tools/testing/selftests/bpf/test_progs.h      |  4 ++
 tools/testing/selftests/bpf/vmtest.sh         |  6 +-
 5 files changed, 74 insertions(+), 15 deletions(-)

Comments

Andrii Nakryiko Oct. 27, 2021, 7:18 p.m. UTC | #1
On Mon, Oct 25, 2021 at 3:33 PM Yucong Sun <fallentree@fb.com> wrote:
>
> Several patches to improve parallel execution mode, including printing
> subtest status line, updating vmtest.sh and fixed two previously dropped
> patch according to feedback.
>

I've dropped the second patch and applied all the rest. I can run
`sudo ./test_progs -j` pretty reliably with no failures now and get
30-35 second saving on average. Thanks.

Let's keep discussing the subtest support separately.

>
> Yucong Sun (4):
>   selfetests/bpf: Update vmtest.sh defaults
>   selftests/bpf: print subtest status line
>   selftests/bpf: fix attach_probe in parallel mode
>   selftests/bpf: adding a namespace reset for tc_redirect
>
>  .../selftests/bpf/prog_tests/attach_probe.c   |  9 ++-
>  .../selftests/bpf/prog_tests/tc_redirect.c    | 14 +++++
>  tools/testing/selftests/bpf/test_progs.c      | 56 +++++++++++++++----
>  tools/testing/selftests/bpf/test_progs.h      |  4 ++
>  tools/testing/selftests/bpf/vmtest.sh         |  6 +-
>  5 files changed, 74 insertions(+), 15 deletions(-)
>
> --
> 2.30.2
>