Lines Matching +full:sleep +full:- +full:enable
2 # SPDX-License-Identifier: GPL-2.0
3 # description: event trigger - test poll wait on histogram
9 if [ ! -x ${POLL} ]; then
21 ${POLL} -I -t 1000 ${EVENT}/hist
23 set -e
31 echo 'hist:key=comm if comm =="sleep"' > ${EVENT}/trigger
32 echo 1 > ${EVENT}/enable
34 # This sleep command will exit after 2 seconds.
35 sleep 2 &
38 ${POLL} -I -t 4000 ${EVENT}/hist
41 if [ -d /proc/${BGPID} ]; then
43 kill -KILL ${BGPID} ||:
47 if ! grep -qw "sleep" trace; then
56 # This sleep command will exit after 2 seconds.
57 sleep 2 &
60 ${POLL} -P -t 4000 ${EVENT}/hist
63 if [ -d /proc/${BGPID} ]; then
65 kill -KILL ${BGPID} ||:
69 if ! grep -qw "sleep" trace; then