torture: Support randomized shuffling for proxy exec testing
authorConnor O'Brien <connoro@google.com>
Fri, 2 Jun 2023 22:02:09 +0000 (22:02 +0000)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 14 Jul 2023 22:04:09 +0000 (15:04 -0700)
commite2a0b786c50cf4f0c3abfcd05888ae583c98cf25
treeb570255da4bc51b7d0050e25c48c7c17de53e575
parent9cafe974cf46425c18cf78971400ae12e416e166
torture: Support randomized shuffling for proxy exec testing

Currently shuffling sets the same cpu affinities for all tasks,
which makes us less likely to hit paths involving migrating
blocked tasks onto a cpu where they can't run.

This patch adds an element of randomness to allow affinities of
different writer tasks to diverge.

This has helped uncover issues in testing with Proxy Execution

Cc: "Paul E. McKenney" <paulmck@kernel.org>
Cc: Josh Triplett <josh@joshtriplett.org>
Cc: Joel Fernandes <joel@joelfernandes.org>
Cc: Juri Lelli <juri.lelli@redhat.com>
Cc: Valentin Schneider <vschneid@redhat.com>
Cc: Dietmar Eggemann <dietmar.eggemann@arm.com>
Cc: kernel-team@android.com
Signed-off-by: Connor O'Brien <connoro@google.com>
Signed-off-by: John Stultz <jstultz@google.com>
Acked-by: Davidlohr Bueso <dave@stgolabs.net>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/torture.c