tools/testing/selftests/rcutorture/bin/kvm-test-1-run-batch.sh

Source file repositories/reference/linux-study-clean/tools/testing/selftests/rcutorture/bin/kvm-test-1-run-batch.sh

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/rcutorture/bin/kvm-test-1-run-batch.sh
Extension
.sh
Size
2708 bytes
Lines
94
Domain
Support Tooling And Documentation
Bucket
tools
Inferred role
Support Tooling And Documentation: tools
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

if (!gotcpus()) {
				print "echo No CPU-affinity information, so no taskset command.";
			} else if (cpu_count !~ /^[0-9][0-9]*$/) {
				print "echo " scenario ": Bogus number of CPUs (old qemu-cmd?), so no taskset command.";
			} else {
				affinitylist = nextcpus(cpu_count);
				if (!(affinitylist ~ /^[0-9,-][0-9,-]*$/))
					print "echo " scenario ": Bogus CPU-affinity information, so no taskset command.";
				else if (!dumpcpustate())
					print "echo " scenario ": Could not dump state, so no taskset command.";
				else
					print "export TORTURE_AFFINITY=" affinitylist;
			}
		}
		___EOF___
		cpu_count="`grep '# TORTURE_CPU_COUNT=' $i/qemu-cmd | sed -e 's/^.*=//'`"
		affinity_export="`awk -f $T/cpubatches.awk -v cpu_count="$cpu_count" -v scenario=$i < /dev/null`"
		$affinity_export
	fi
	kvm-test-1-run-qemu.sh $i >> $i/kvm-test-1-run-qemu.sh.out 2>&1 &
done
for i in $runfiles
do
	while ls $i > /dev/null 2>&1
	do
		:
	done
done
echo ---- All kernel runs complete. `date` | tee -a log
$TORTURE_JITTER_STOP

Annotation

Implementation Notes