__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0+
#
# Alternate sleeping and spinning on randomly selected CPUs.  The purpose
# of this script is to inflict random OS jitter on a concurrently running
# test.
#
# Usage: jitter.sh me jittering-path duration [ sleepmax [ spinmax ] ]
#
# me: Random-number-generator seed salt.
# duration: Time to run in seconds.
# jittering-path: Path to file whose removal will stop this script.
# sleepmax: Maximum microseconds to sleep, defaults to one second.
# spinmax: Maximum microseconds to spin, defaults to one millisecond.
#
# Copyright (C) IBM Corporation, 2016
#
# Authors: Paul E. McKenney <[email protected]>

me=$(($1 * 1000))
jittering=$2
duration=$3
sleepmax=${4-1000000}
spinmax=${5-1000}

n=1

starttime=`gawk 'BEGIN { print systime(); }' < /dev/null`

nohotplugcpus=
for i in /sys/devices/system/cpu/cpu[0-9]*
do
	if test -f $i/online
	then
		:
	else
		curcpu=`echo $i | sed -e 's/^[^0-9]*//'`
		nohotplugcpus="$nohotplugcpus $curcpu"
	fi
done

while :
do
	# Check for done.
	t=`gawk -v s=$starttime 'BEGIN { print systime() - s; }' < /dev/null`
	if test "$t" -gt "$duration"
	then
		exit 0;
	fi

	# Check for stop request.
	if ! test -f "$jittering"
	then
		exit 1;
	fi

	# Set affinity to randomly selected online CPU
	if cpus=`grep 1 /sys/devices/system/cpu/*/online 2>&1 |
		 sed -e 's,/[^/]*$,,' -e 's/^[^0-9]*//'`
	then
		:
	else
		cpus=
	fi
	# Do not leave out non-hot-pluggable CPUs
	cpus="$cpus $nohotplugcpus"

	cpumask=`awk -v cpus="$cpus" -v me=$me -v n=$n 'BEGIN {
		srand(n + me + systime());
		ncpus = split(cpus, ca);
		print ca[int(rand() * ncpus + 1)];
	}' < /dev/null`
	n=$(($n+1))
	if ! taskset -c -p $cpumask $$ > /dev/null 2>&1
	then
		echo taskset failure: '"taskset -c -p ' $cpumask $$ '"'
		exit 1
	fi

	# Sleep a random duration
	sleeptime=`awk -v me=$me -v n=$n -v sleepmax=$sleepmax 'BEGIN {
		srand(n + me + systime());
		printf("%06d", int(rand() * sleepmax));
	}' < /dev/null`
	n=$(($n+1))
	sleep .$sleeptime

	# Spin a random duration
	limit=`awk -v me=$me -v n=$n -v spinmax=$spinmax 'BEGIN {
		srand(n + me + systime());
		printf("%06d", int(rand() * spinmax));
	}' < /dev/null`
	n=$(($n+1))
	for i in {1..$limit}
	do
		echo > /dev/null
	done
done

exit 1

Filemanager

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
Filemanager