torture: Do Kconfig analysis only once per scenario
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 24 Dec 2020 23:28:14 +0000 (15:28 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 5 Jan 2021 19:33:20 +0000 (11:33 -0800)
commit1120281713a5c8d9caffaa49db11fd0a25e34ef0
treed12621810dfc1d905f6aa4b8a3ac1e0961263c0f
parentb79b0b67791316e6ca0502bd0f2ecd7018d6d9e8
torture: Do Kconfig analysis only once per scenario

Currently, if a scenario is repeated as in "--configs '4*TREE01'",
the Kconfig analysis is performed for each occurrance (four times in
this example) and each analysis places the exact same data into the
exact same files.  This is not really an issue in this repetition-four
example, but it can needlessly consume tens of seconds of wallclock time
for something like "--config '128*TINY01'".

This commit therefore does Kconfig analysis only once per set of
repeats of a given scenario, courtesy of the "sort -u" command and an
automatically generated awk script.

While in the area, this commit also wordsmiths a comment.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/testing/selftests/rcutorture/bin/kvm.sh