From: "Paul E. McKenney" <paulmck@kernel.org>
To: rcu@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com,
rostedt@goodmis.org, "Paul E. McKenney" <paulmck@kernel.org>
Subject: [PATCH v4 3/6] torture: Make kvm-series.sh give build numbers and totals
Date: Mon, 29 Dec 2025 11:13:55 -0800 [thread overview]
Message-ID: <20251229191358.693753-3-paulmck@kernel.org> (raw)
In-Reply-To: <eb69cddd-2e89-43a5-ba61-95af1d820dc0@paulmck-laptop>
The kvm-series.sh script can easily be convinced to do on the order
of 1,000 builds, so some sort of progress indicator would be helpful.
This commit therefore updates the "Starting" output lines to read
as in the following example, adding the ("2 of 4"):
Starting TREE01/1.7e0ad1b49057 (2 of 4) at Sat Nov 8 10:08:21 PM PST 2025
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
---
tools/testing/selftests/rcutorture/bin/kvm-series.sh | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/tools/testing/selftests/rcutorture/bin/kvm-series.sh b/tools/testing/selftests/rcutorture/bin/kvm-series.sh
index d020d0672023a..29a2cd64835fd 100755
--- a/tools/testing/selftests/rcutorture/bin/kvm-series.sh
+++ b/tools/testing/selftests/rcutorture/bin/kvm-series.sh
@@ -32,6 +32,7 @@ then
echo "$0: Repetition ('*') not allowed in config list."
exit 1
fi
+config_list_len="`echo ${config_list} | wc -w | awk '{ print $1; }'`"
commit_list="${2}"
if test -z "${commit_list}"
@@ -47,6 +48,7 @@ then
exit 2
fi
sha1_list=`cat $T/commits`
+sha1_list_len="`echo ${sha1_list} | wc -w | awk '{ print $1; }'`"
shift
shift
@@ -80,6 +82,8 @@ echo " --- Results directory: " $ds | tee -a $T/log
# turning preemption on and off. Defer actual runs in order to run
# lots of them concurrently on large systems.
touch $T/torunlist
+n2build="$((config_list_len*sha1_list_len))"
+nbuilt=0
for config in ${config_list}
do
sha_n=0
@@ -87,7 +91,7 @@ do
do
sha1=${sha_n}.${sha} # Enable "sort -k1nr" to list commits in order.
echo
- echo Starting ${config}/${sha1} at `date` | tee -a $T/log
+ echo Starting ${config}/${sha1} "($((nbuilt+1)) of ${n2build})" at `date` | tee -a $T/log
git checkout --detach "${sha}"
tools/testing/selftests/rcutorture/bin/kvm.sh --configs "$config" --datestamp "$ds/${config}/${sha1}" --duration 1 --build-only --trust-make "$@"
curret=$?
@@ -115,6 +119,7 @@ do
ret=${curret}
fi
sha_n=$((sha_n+1))
+ nbuilt=$((nbuilt+1))
done
done
--
2.40.1
next prev parent reply other threads:[~2025-12-29 19:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-29 19:13 [PATCH 0/6] Torture-test updates for post-v4.19 Paul E. McKenney
2025-12-29 19:13 ` [PATCH v4 1/6] rcutorture: Add context checks to rcu_torture_timer() Paul E. McKenney
2025-12-29 19:13 ` [PATCH v4 2/6] torture: Parallelize kvm-series.sh guest-OS execution Paul E. McKenney
2025-12-29 19:13 ` Paul E. McKenney [this message]
2025-12-29 19:13 ` [PATCH v4 4/6] torture: Make kvm-series.sh give run numbers and totals Paul E. McKenney
2025-12-29 19:13 ` [PATCH v4 5/6] torture: Make config2csv.sh properly handle comments in .boot files Paul E. McKenney
2025-12-29 19:13 ` [PATCH v4 6/6] torture: Include commit discription in testid.txt Paul E. McKenney
2026-01-01 8:46 ` [PATCH 0/6] Torture-test updates for post-v4.19 Boqun Feng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251229191358.693753-3-paulmck@kernel.org \
--to=paulmck@kernel.org \
--cc=kernel-team@meta.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rcu@vger.kernel.org \
--cc=rostedt@goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®