diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2023-07-14 04:22:07 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2023-07-21 03:54:53 +0300 |
commit | 451d2a52f652446f002f289431c171c2064a06fb (patch) | |
tree | 78f5233ef60ca20b7e160de3e1880b2423b05bb4 /tools/testing/selftests/rcutorture | |
parent | 93a556b8b3c8cae25230fac8f1376284a697c489 (diff) | |
download | linux-451d2a52f652446f002f289431c171c2064a06fb.tar.xz |
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 'tools/testing/selftests/rcutorture')
-rwxr-xr-x | tools/testing/selftests/rcutorture/bin/mkinitrd.sh | 6 |
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. */ |