Skip to content

Parallelize verif_scale selftests

Andrii Nakryiko bpf 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4selftests/bpf: normalize selftest entry pointstools/testing/selftests/bpf/prog_tests/btf_dump.c tools/testing/selftests/bpf/prog_tests/resolve_btfids.c tools/testing/selftests/bpf/prog_tests/signal_pending.c +3 more+13 -150 replies
2/4selftests/bpf: support multiple tests per filetools/testing/selftests/bpf/Makefile+3 -44 replies
3/4selftests/bpf: mark tc_redirect selftest as serialtools/testing/selftests/bpf/prog_tests/tc_redirect.c+1 -10 replies
4/4selftests/bpf: split out bpf_verif_scale selftests into multiple teststools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c+152 -680 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchYucong Sun
SeriesA-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH bpf-next 0/4] Parallelize verif_scale selftests

Reduce amount of waiting time when running test_progs in parallel mode (-j) by splitting bpf_verif_scale selftests into multiple tests. Previously it was structured as a test with multiple subtests, but subtests are not easily parallelizable with test_progs' infra. Also in practice each scale subtest is really an independent test with nothing shared across all substest.

This patch set changes how test_progs test discovery works. Now it is possible to define multiple tests within a single source code file. One of the patches also marks tc_redirect selftests as serial, because it's extremely harmful to the test system when run in parallel mode.

Andrii Nakryiko (4):
selftests/bpf: normalize selftest entry points selftests/bpf: support multiple tests per file selftests/bpf: mark tc_redirect selftest as serial selftests/bpf: split out bpf_verif_scale selftests into multiple tests

 tools/testing/selftests/bpf/Makefile          |   7 +-
 .../bpf/prog_tests/bpf_verif_scale.c          | 220 ++++++++++++------
 .../selftests/bpf/prog_tests/btf_dump.c       |   2 +-
 .../selftests/bpf/prog_tests/resolve_btfids.c |  10 +-
 .../selftests/bpf/prog_tests/signal_pending.c |   2 +-
 .../selftests/bpf/prog_tests/snprintf.c       |   4 +-
 .../selftests/bpf/prog_tests/tc_redirect.c    |   2 +-
 .../bpf/prog_tests/xdp_adjust_tail.c          |   6 +-
 .../bpf/prog_tests/xdp_devmap_attach.c        |   4 +-
 9 files changed, 169 insertions(+), 88 deletions(-)
Signature · 1 line
2.30.2