__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#!/bin/bash # SPDX-License-Identifier: GPL-2.0+ # # Given the results directories for previous KVM-based torture runs, # check the build and console output for errors. Given a directory # containing results directories, this recursively checks them all. # # Usage: kvm-recheck.sh resdir ... # # Returns status reflecting the success or not of the last run specified. # # Copyright (C) IBM Corporation, 2011 # # Authors: Paul E. McKenney <[email protected]> T="`mktemp ${TMPDIR-/tmp}/kvm-recheck.sh.XXXXXX`" trap 'rm -f $T' 0 2 configerrors=0 PATH=`pwd`/tools/testing/selftests/rcutorture/bin:$PATH; export PATH . functions.sh for rd in "$@" do firsttime=1 dirs=`find $rd -name Make.defconfig.out -print | sort | sed -e 's,/[^/]*$,,' | sort -u` for i in $dirs do if test -n "$firsttime" then firsttime="" resdir=`echo $i | sed -e 's,/$,,' -e 's,/[^/]*$,,'` head -1 $resdir/log fi TORTURE_SUITE="`cat $i/../torture_suite`" ; export TORTURE_SUITE configfile=`echo $i | sed -e 's,^.*/,,'` rm -f $i/console.log.*.diags $i/ConfigFragment.diags case "${TORTURE_SUITE}" in X*) ;; *) kvm-recheck-${TORTURE_SUITE}.sh $i esac if test -f "$i/qemu-retval" && test "`cat $i/qemu-retval`" -ne 0 && test "`cat $i/qemu-retval`" -ne 137 then echo QEMU error, output: cat $i/qemu-output elif test -f "$i/console.log" then if test -f "$i/qemu-retval" && test "`cat $i/qemu-retval`" -eq 137 then echo QEMU killed fi configcheck.sh $i/.config $i/ConfigFragment > $i/ConfigFragment.diags 2>&1 if grep -q '^CONFIG_KCSAN=y$' $i/ConfigFragment.input then # KCSAN forces a number of Kconfig options, so remove # complaints about those Kconfig options in KCSAN runs. mv $i/ConfigFragment.diags $i/ConfigFragment.diags.kcsan grep -v -E 'CONFIG_PROVE_RCU|CONFIG_PREEMPT_COUNT' $i/ConfigFragment.diags.kcsan > $i/ConfigFragment.diags fi if test -s $i/ConfigFragment.diags then cat $i/ConfigFragment.diags configerrors=$((configerrors+1)) else rm $i/ConfigFragment.diags fi if test -r $i/Make.oldconfig.err then cat $i/Make.oldconfig.err fi parse-build.sh $i/Make.out $configfile parse-console.sh $i/console.log $configfile if test -r $i/Warnings then cat $i/Warnings fi else if test -f "$i/buildonly" then echo Build-only run, no boot/test configcheck.sh $i/.config $i/ConfigFragment > $i/ConfigFragment.diags 2>&1 if test -s $i/ConfigFragment.diags then cat $i/ConfigFragment.diags configerrors=$((configerrors+1)) else rm $i/ConfigFragment.diags fi parse-build.sh $i/Make.out $configfile elif test -f "$i/qemu-cmd" then print_bug qemu failed echo " $i" else print_bug Build failed echo " $i" fi fi done if test -f "$rd/kcsan.sum" then if ! test -f $i/ConfigFragment.diags then : elif grep -q CONFIG_KCSAN=y $i/ConfigFragment.diags then echo "Compiler or architecture does not support KCSAN!" echo Did you forget to switch your compiler with '--kmake-arg CC=<cc-that-supports-kcsan>'? elif test -s "$rd/kcsan.sum" then echo KCSAN summary in $rd/kcsan.sum else echo Clean KCSAN run in $rd fi fi done if test "$configerrors" -gt 0 then echo $configerrors runs with .config errors. ret=1 fi EDITOR=echo kvm-find-errors.sh "${@: -1}" > $T 2>&1 builderrors="`tr ' ' '\012' < $T | grep -c '/Make.out.diags'`" if test "$builderrors" -gt 0 then echo $builderrors runs with build errors. ret=2 fi runerrors="`tr ' ' '\012' < $T | grep -c '/console.log.diags'`" if test "$runerrors" -gt 0 then echo $runerrors runs with runtime errors. ret=3 fi exit $ret
| 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 |
|