__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#!/bin/sh # SPDX-License-Identifier: GPL-2.0+ # # Run a group of kvm.sh tests on the specified commits. This currently # unconditionally does three-minute runs on each scenario in CFLIST, # taking advantage of all available CPUs and trusting the "make" utility. # In the short term, adjustments can be made by editing this script and # CFLIST. If some adjustments appear to have ongoing value, this script # might grow some command-line arguments. # # Usage: kvm-check-branches.sh commit1 commit2..commit3 commit4 ... # # This script considers its arguments one at a time. If more elaborate # specification of commits is needed, please use "git rev-list" to # produce something that this simple script can understand. The reason # for retaining the simplicity is that it allows the user to more easily # see which commit came from which branch. # # This script creates a yyyy.mm.dd-hh.mm.ss-group entry in the "res" # directory. The calls to kvm.sh create the usual entries, but this script # moves them under the yyyy.mm.dd-hh.mm.ss-group entry, each in its own # directory numbered in run order, that is, "0001", "0002", and so on. # For successful runs, the large build artifacts are removed. Doing this # reduces the disk space required by about two orders of magnitude for # successful runs. # # Copyright (C) Facebook, 2020 # # Authors: Paul E. McKenney <[email protected]> if ! git status > /dev/null 2>&1 then echo '!!!' This script needs to run in a git archive. 1>&2 echo '!!!' Giving up. 1>&2 exit 1 fi # Remember where we started so that we can get back at the end. curcommit="`git status | head -1 | awk '{ print $NF }'`" nfail=0 ntry=0 resdir="tools/testing/selftests/rcutorture/res" ds="`date +%Y.%m.%d-%H.%M.%S`-group" if ! test -e $resdir then mkdir $resdir || : fi mkdir $resdir/$ds echo Results directory: $resdir/$ds RCUTORTURE="`pwd`/tools/testing/selftests/rcutorture"; export RCUTORTURE PATH=${RCUTORTURE}/bin:$PATH; export PATH . functions.sh echo Using all `identify_qemu_vcpus` CPUs. # Each pass through this loop does one command-line argument. for gitbr in $@ do echo ' --- git branch ' $gitbr # Each pass through this loop tests one commit. for i in `git rev-list "$gitbr"` do ntry=`expr $ntry + 1` idir=`awk -v ntry="$ntry" 'END { printf "%04d", ntry; }' < /dev/null` echo ' --- commit ' $i from branch $gitbr date mkdir $resdir/$ds/$idir echo $gitbr > $resdir/$ds/$idir/gitbr echo $i >> $resdir/$ds/$idir/gitbr # Test the specified commit. git checkout $i > $resdir/$ds/$idir/git-checkout.out 2>&1 echo git checkout return code: $? "(Commit $ntry: $i)" kvm.sh --allcpus --duration 3 --trust-make --datestamp "$ds/$idir" > $resdir/$ds/$idir/kvm.sh.out 2>&1 ret=$? echo kvm.sh return code $ret for commit $i from branch $gitbr echo Run results: $resdir/$ds/$idir if test "$ret" -ne 0 then # Failure, so leave all evidence intact. nfail=`expr $nfail + 1` else # Success, so remove large files to save about 1GB. ( cd $resdir/$ds/$idir/$rrd; rm -f */vmlinux */bzImage */System.map */Module.symvers ) fi done done date # Go back to the original commit. git checkout "$curcommit" if test $nfail -ne 0 then echo '!!! ' $nfail failures in $ntry 'runs!!!' exit 1 else echo No failures in $ntry runs. exit 0 fi
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| config2csv.sh | File | 1.81 KB | 0755 |
|
| configNR_CPUS.sh | File | 688 B | 0755 |
|
| config_override.sh | File | 823 B | 0755 |
|
| configcheck.sh | File | 1.05 KB | 0755 |
|
| configinit.sh | File | 1.29 KB | 0755 |
|
| console-badness.sh | File | 798 B | 0755 |
|
| cpus2use.sh | File | 829 B | 0755 |
|
| functions.sh | File | 7.97 KB | 0755 |
|
| jitter.sh | File | 2.19 KB | 0755 |
|
| jitterstart.sh | File | 994 B | 0644 |
|
| jitterstop.sh | File | 520 B | 0644 |
|
| kcsan-collapse.sh | File | 484 B | 0755 |
|
| kvm-again.sh | File | 4.83 KB | 0755 |
|
| kvm-assign-cpus.sh | File | 1.97 KB | 0755 |
|
| kvm-build.sh | File | 1.3 KB | 0755 |
|
| kvm-check-branches.sh | File | 3.23 KB | 0755 |
|
| kvm-end-run-stats.sh | File | 1.09 KB | 0755 |
|
| kvm-find-errors.sh | File | 1.94 KB | 0755 |
|
| kvm-get-cpus-script.sh | File | 2.27 KB | 0755 |
|
| kvm-recheck-lock.sh | File | 884 B | 0755 |
|
| kvm-recheck-rcu.sh | File | 2.09 KB | 0755 |
|
| kvm-recheck-rcuscale-ftrace.sh | File | 2.62 KB | 0755 |
|
| kvm-recheck-rcuscale.sh | File | 2.03 KB | 0755 |
|
| kvm-recheck-refscale.sh | File | 1.53 KB | 0755 |
|
| kvm-recheck-scf.sh | File | 930 B | 0755 |
|
| kvm-recheck.sh | File | 3.61 KB | 0755 |
|
| kvm-remote-noreap.sh | File | 629 B | 0755 |
|
| kvm-remote.sh | File | 8.42 KB | 0755 |
|
| kvm-test-1-run-batch.sh | File | 2.64 KB | 0755 |
|
| kvm-test-1-run-qemu.sh | File | 5.28 KB | 0755 |
|
| kvm-test-1-run.sh | File | 8.64 KB | 0755 |
|
| kvm-transform.sh | File | 3.19 KB | 0755 |
|
| kvm.sh | File | 19.36 KB | 0755 |
|
| mkinitrd.sh | File | 2.27 KB | 0755 |
|
| parse-build.sh | File | 1.1 KB | 0755 |
|
| parse-console.sh | File | 4.35 KB | 0755 |
|
| srcu_lockdep.sh | File | 1.77 KB | 0755 |
|
| torture.sh | File | 23.21 KB | 0755 |
|