/
usr
/
src
/
linux-headers-5.15.0-181
/
tools
/
testing
/
selftests
/
rcutorture
/
bin
/
/usr/src/linux-headers-5.15.0-181/tools/testing/selftests/rcutorture/bin
mkdir
upload
Name
Size
Mode
Actions
config2csv.sh
1842
0755
edit
dl
rm
configcheck.sh
986
0755
edit
dl
rm
configinit.sh
1314
0755
edit
dl
rm
configNR_CPUS.sh
688
0755
edit
dl
rm
config_override.sh
814
0755
edit
dl
rm
console-badness.sh
784
0755
edit
dl
rm
cpus2use.sh
829
0755
edit
dl
rm
functions.sh
7538
0644
edit
dl
rm
jitter.sh
2244
0755
edit
dl
rm
jitterstart.sh
994
0644
edit
dl
rm
jitterstop.sh
520
0644
edit
dl
rm
kcsan-collapse.sh
484
0755
edit
dl
rm
kvm-again.sh
4025
0755
edit
dl
rm
kvm-assign-cpus.sh
1999
0755
edit
dl
rm
kvm-build.sh
1317
0755
edit
dl
rm
kvm-check-branches.sh
3517
0755
edit
dl
rm
kvm-end-run-stats.sh
1083
0755
edit
dl
rm
kvm-find-errors.sh
1624
0755
edit
dl
rm
kvm-get-cpus-script.sh
2326
0755
edit
dl
rm
kvm-recheck-lock.sh
884
0755
edit
dl
rm
kvm-recheck-rcu.sh
2125
0755
edit
dl
rm
kvm-recheck-rcuscale-ftrace.sh
2680
0755
edit
dl
rm
kvm-recheck-rcuscale.sh
1959
0755
edit
dl
rm
kvm-recheck-refscale.sh
1562
0755
edit
dl
rm
kvm-recheck-scf.sh
930
0755
edit
dl
rm
kvm-recheck.sh
2694
0755
edit
dl
rm
kvm-remote-noreap.sh
629
0755
edit
dl
rm
kvm-remote.sh
7188
0755
edit
dl
rm
kvm-test-1-run-batch.sh
2630
0755
edit
dl
rm
kvm-test-1-run-qemu.sh
5393
0755
edit
dl
rm
kvm-test-1-run.sh
8736
0755
edit
dl
rm
kvm-transform.sh
2011
0755
edit
dl
rm
kvm.sh
18936
0755
edit
dl
rm
mkinitrd.sh
1996
0755
edit
dl
rm
parse-build.sh
1032
0755
edit
dl
rm
parse-console.sh
3968
0755
edit
dl
rm
torture.sh
14775
0755
edit
dl
rm
Edit:
/usr/src/linux-headers-5.15.0-181/tools/testing/selftests/rcutorture/bin/config2csv.sh
(1842B)
#!/bin/sh # SPDX-License-Identifier: GPL-2.0+ # # Create a spreadsheet from torture-test Kconfig options and kernel boot # parameters. Run this in the directory containing the scenario files. # # Usage: config2csv path.csv [ "scenario1 scenario2 ..." ] # # By default, this script will take the list of scenarios from the CFLIST # file in that directory, otherwise it will consider only the scenarios # specified on the command line. It will examine each scenario's file # and also its .boot file, if present, and create a column in the .csv # output file. Note that "CFLIST" is a synonym for all the scenarios in the # CFLIST file, which allows easy comparison of those scenarios with selected # scenarios such as BUSTED that are normally omitted from CFLIST files. csvout=${1} if test -z "$csvout" then echo "Need .csv output file as first argument." exit 1 fi shift defaultconfigs="`tr '\012' ' ' < CFLIST`" if test "$#" -eq 0 then scenariosarg=$defaultconfigs else scenariosarg=$* fi scenarios="`echo $scenariosarg | sed -e "s/\<CFLIST\>/$defaultconfigs/g"`" T=/tmp/config2latex.sh.$$ trap 'rm -rf $T' 0 mkdir $T cat << '---EOF---' >> $T/p.awk END { ---EOF--- for i in $scenarios do echo ' s["'$i'"] = 1;' >> $T/p.awk grep -v '^#' < $i | grep -v '^ *$' > $T/p if test -r $i.boot then tr -s ' ' '\012' < $i.boot | grep -v '^#' >> $T/p fi sed -e 's/^[^=]*$/&=?/' < $T/p | sed -e 's/^\([^=]*\)=\(.*\)$/\tp["\1:'"$i"'"] = "\2";\n\tc["\1"] = 1;/' >> $T/p.awk done cat << '---EOF---' >> $T/p.awk ns = asorti(s, ss); nc = asorti(c, cs); for (j = 1; j <= ns; j++) printf ",\"%s\"", ss[j]; printf "\n"; for (i = 1; i <= nc; i++) { printf "\"%s\"", cs[i]; for (j = 1; j <= ns; j++) { printf ",\"%s\"", p[cs[i] ":" ss[j]]; } printf "\n"; } } ---EOF--- awk -f $T/p.awk < /dev/null > $T/p.csv cp $T/p.csv $csvout
Save
cmd:
run