/usr/src/linux-headers-5.15.0-190/tools/testing/selftests/rcutorture/bin
NameSizeModeActions
config2csv.sh18420755editdlrm
configcheck.sh9860755editdlrm
configinit.sh13140755editdlrm
configNR_CPUS.sh6880755editdlrm
config_override.sh8140755editdlrm
console-badness.sh7840755editdlrm
cpus2use.sh8290755editdlrm
functions.sh75380644editdlrm
jitter.sh22440755editdlrm
jitterstart.sh9940644editdlrm
jitterstop.sh5200644editdlrm
kcsan-collapse.sh4840755editdlrm
kvm-again.sh40250755editdlrm
kvm-assign-cpus.sh19990755editdlrm
kvm-build.sh13170755editdlrm
kvm-check-branches.sh35170755editdlrm
kvm-end-run-stats.sh10830755editdlrm
kvm-find-errors.sh16240755editdlrm
kvm-get-cpus-script.sh23260755editdlrm
kvm-recheck-lock.sh8840755editdlrm
kvm-recheck-rcu.sh21250755editdlrm
kvm-recheck-rcuscale-ftrace.sh26800755editdlrm
kvm-recheck-rcuscale.sh19590755editdlrm
kvm-recheck-refscale.sh15620755editdlrm
kvm-recheck-scf.sh9300755editdlrm
kvm-recheck.sh26940755editdlrm
kvm-remote-noreap.sh6290755editdlrm
kvm-remote.sh71880755editdlrm
kvm-test-1-run-batch.sh26300755editdlrm
kvm-test-1-run-qemu.sh53930755editdlrm
kvm-test-1-run.sh87360755editdlrm
kvm-transform.sh20110755editdlrm
kvm.sh189360755editdlrm
mkinitrd.sh19960755editdlrm
parse-build.sh10320755editdlrm
parse-console.sh39680755editdlrm
torture.sh147750755editdlrm
Edit: /usr/src/linux-headers-5.15.0-190/tools/testing/selftests/rcutorture/bin/kvm-transform.sh (2011B)
#!/bin/bash # SPDX-License-Identifier: GPL-2.0+ # # Transform a qemu-cmd file to allow reuse. # # Usage: kvm-transform.sh bzImage console.log jitter_dir [ seconds ] < qemu-cmd-in > qemu-cmd-out # # bzImage: Kernel and initrd from the same prior kvm.sh run. # console.log: File into which to place console output. # # The original qemu-cmd file is provided on standard input. # The transformed qemu-cmd file is on standard output. # The transformation assumes that the qemu command is confined to a # single line. It also assumes no whitespace in filenames. # # Copyright (C) 2020 Facebook, Inc. # # Authors: Paul E. McKenney image="$1" if test -z "$image" then echo Need kernel image file. exit 1 fi consolelog="$2" if test -z "$consolelog" then echo "Need console log file name." exit 1 fi jitter_dir="$3" if test -z "$jitter_dir" || ! test -d "$jitter_dir" then echo "Need valid jitter directory: '$jitter_dir'" exit 1 fi seconds="$4" if test -n "$seconds" && echo $seconds | grep -q '[^0-9]' then echo "Invalid duration, should be numeric in seconds: '$seconds'" exit 1 fi awk -v image="$image" -v consolelog="$consolelog" -v jitter_dir="$jitter_dir" \ -v seconds="$seconds" ' /^# seconds=/ { if (seconds == "") print $0; else print "# seconds=" seconds; next; } /^# TORTURE_JITTER_START=/ { print "# TORTURE_JITTER_START=\". jitterstart.sh " $4 " " jitter_dir " " $6 " " $7; next; } /^# TORTURE_JITTER_STOP=/ { print "# TORTURE_JITTER_STOP=\". jitterstop.sh " " " jitter_dir " " $5; next; } /^#/ { print $0; next; } { line = ""; for (i = 1; i <= NF; i++) { if ("" seconds != "" && $i ~ /\.shutdown_secs=[0-9]*$/) { sub(/[0-9]*$/, seconds, $i); if (line == "") line = $i; else line = line " " $i; } else if (line == "") { line = $i; } else { line = line " " $i; } if ($i == "-serial") { i++; line = line " file:" consolelog; } else if ($i == "-kernel") { i++; line = line " " image; } } print line; }'