Skip to content

RFC Concurrency Testing

Kumar Kartikeya Dwivedi bpf 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6bpf: Support repeat, duration fields for syscall prog runsnet/bpf/test_run.c+74 -181 reply
2/6bpf: Allow timing functions in lock critical sectionskernel/bpf/verifier.c+5 -10 replies
3/6bpf: Enable rqspinlock in tracing progskernel/bpf/verifier.c+2 -11 reply
4/6selftests/bpf: Introduce concurrency testing tooltools/testing/selftests/bpf/Makefile tools/testing/selftests/bpf/conctest.c tools/testing/selftests/bpf/progs/conctest.c+1184 -01 reply
5/6selftests/bpf: Generate various conctest permutationstools/testing/selftests/bpf/conctest.c tools/testing/selftests/bpf/progs/conctest.c+476 -731 reply
6/6selftests/bpf: Extend conctest to wq and task_worktools/testing/selftests/bpf/conctest.c tools/testing/selftests/bpf/progs/conctest.c+287 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH bpf-next v1 0/6] Concurrency Testing

This set introduces basic tooling to generate more exhaustive test cases for task<->NMI reentrancy and parallel invocation of various operations associated with rqspinlock, timer, wq, and task_work. For now, the approach is simple: test cases are generated up to a maximum specified level of parallelism for the operations to be invoked vertically against each other (on the same CPU, in different contexts), and horizontally (in parallel). To cut down test time, similar cases are pruned out after generation (e.g. start vs cancel and cancel vs start in parallel on two CPUs are similar, thus only one combination should be tested).

More details are in the commit log.

Kumar Kartikeya Dwivedi (6):
bpf: Support repeat, duration fields for syscall prog runs
bpf: Allow timing functions in lock critical sections
bpf: Enable rqspinlock in tracing progs selftests/bpf: Introduce concurrency testing tool selftests/bpf: Generate various conctest permutations selftests/bpf: Extend conctest to wq and task_work

 kernel/bpf/verifier.c                        |    9 +-
 net/bpf/test_run.c                           |   92 +-
 tools/testing/selftests/bpf/Makefile         |    6 +
 tools/testing/selftests/bpf/conctest.c       | 1110 ++++++++++++++++++
 tools/testing/selftests/bpf/progs/conctest.c |  758 ++++++++++++
 5 files changed, 1955 insertions(+), 20 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/conctest.c
 create mode 100644 tools/testing/selftests/bpf/progs/conctest.c

base-commit: dc855b77719fe452d670cae2cf64da1eb51f16cc

Signature · 1 line
2.47.3