aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2023-07-13 18:22:07 -0700
committerPaul E. McKenney <paulmck@kernel.org>2023-07-20 17:54:53 -0700
commit451d2a52f652446f002f289431c171c2064a06fb (patch)
tree78f5233ef60ca20b7e160de3e1880b2423b05bb4
parenttorture: Switch qemu from -nographic to -display none (diff)
downloadwireguard-linux-451d2a52f652446f002f289431c171c2064a06fb.tar.xz
wireguard-linux-451d2a52f652446f002f289431c171c2064a06fb.zip
torture: Make init program dump command-line arguments
This commit causes the init program generated by mkinitrd.sh dump out its parameters. Although this is in some sense redundant given that the kernel already dumps them out, confirmation can be a good thing. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to '')
-rwxr-xr-xtools/testing/selftests/rcutorture/bin/mkinitrd.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/mkinitrd.sh b/tools/testing/selftests/rcutorture/bin/mkinitrd.sh
index 435ae6db5cc5..558f5a669dbd 100755
--- a/tools/testing/selftests/rcutorture/bin/mkinitrd.sh
+++ b/tools/testing/selftests/rcutorture/bin/mkinitrd.sh
@@ -33,12 +33,16 @@ cat > init.c << '___EOF___'
volatile unsigned long delaycount;
-int main(int argc, int argv[])
+int main(int argc, char *argv[])
{
int i;
struct timeval tv;
struct timeval tvb;
+ printf("Torture-test rudimentary init program started, command line:\n");
+ for (i = 0; i < argc; i++)
+ printf(" %s", argv[i]);
+ printf("\n");
for (;;) {
sleep(1);
/* Need some userspace time. */