Lines Matching +full:local +full:- +full:pid
2 # SPDX-License-Identifier: GPL-2.0
4 # Kselftest framework requirement - SKIP code is 4.
17 local verb=+
20 [ $verb = "+" ] && verb=- || verb=+
28 sysfs=`mount -t cgroup2 | head -1 | awk '{ print $3 }'`
29 if [ ! -d "$sysfs" ]; then
39 if ! echo -$subsys_ctrl >$sysfs/cgroup.subtree_control ; then
45 declare -a stresses
46 declare -a stress_pids
61 echo "Usage $0 [ -s stress ] ... [ -d duration ] [-c controller] cmd args .."
62 echo -e "\t default duration $duration seconds"
63 echo -e "\t default controller $subsys_ctrl"
68 if [ "x$(type -t $func)" != "xfunction" ] ; then
76 shift $((OPTIND - 1))
89 while [ $time -lt $duration ] ; do
92 [ $rc -eq 0 ] || break
93 time=$(($(date +%s) - $start))
96 for pid in ${stress_pids[*]} ; do
97 kill -SIGTERM $pid
98 wait $pid