BPF List
 help / color / mirror / Atom feed
* [RFC PATCH bpf-next v1 0/6] Concurrency Testing
@ 2026-02-11 18:12 Kumar Kartikeya Dwivedi
  2026-02-11 18:12 ` [RFC PATCH bpf-next v1 1/6] bpf: Support repeat, duration fields for syscall prog runs Kumar Kartikeya Dwivedi
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Kumar Kartikeya Dwivedi @ 2026-02-11 18:12 UTC (permalink / raw)
  To: bpf
  Cc: Alexei Starovoitov, Andrii Nakryiko, Daniel Borkmann,
	Martin KaFai Lau, Eduard Zingerman, Mykyta Yatsenko, kkd,
	kernel-team

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
-- 
2.47.3


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-02-11 22:09 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-11 18:12 [RFC PATCH bpf-next v1 0/6] Concurrency Testing Kumar Kartikeya Dwivedi
2026-02-11 18:12 ` [RFC PATCH bpf-next v1 1/6] bpf: Support repeat, duration fields for syscall prog runs Kumar Kartikeya Dwivedi
2026-02-11 22:02   ` Alexei Starovoitov
2026-02-11 18:12 ` [RFC PATCH bpf-next v1 2/6] bpf: Allow timing functions in lock critical sections Kumar Kartikeya Dwivedi
2026-02-11 18:12 ` [RFC PATCH bpf-next v1 3/6] bpf: Enable rqspinlock in tracing progs Kumar Kartikeya Dwivedi
2026-02-11 22:04   ` Alexei Starovoitov
2026-02-11 18:12 ` [RFC PATCH bpf-next v1 4/6] selftests/bpf: Introduce concurrency testing tool Kumar Kartikeya Dwivedi
2026-02-11 22:08   ` Alexei Starovoitov
2026-02-11 18:12 ` [RFC PATCH bpf-next v1 5/6] selftests/bpf: Generate various conctest permutations Kumar Kartikeya Dwivedi
2026-02-11 22:09   ` Alexei Starovoitov
2026-02-11 18:12 ` [RFC PATCH bpf-next v1 6/6] selftests/bpf: Extend conctest to wq and task_work Kumar Kartikeya Dwivedi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox