Lines Matching +full:exit +full:- +full:latency
2 # SPDX-License-Identifier: GPL-2.0
32 rm -f $CAPTURE_FILE
48 if [ $(cat $CAPTURE_FILE | wc -l) -eq 0 ]; then
59 if [ $(cat $CAPTURE_FILE | wc -l) -ne 0 ]; then
74 grep -q -e "group 1234" $CAPTURE_FILE
81 grep -q -e "group 4321" $CAPTURE_FILE
87 grep -q -e "group 4321" $CAPTURE_FILE
105 grep -q -e "in-ifindex 1234" $CAPTURE_FILE
106 check_err $? "Sampled packets reported with wrong in-ifindex"
108 grep -q -e "out-ifindex 4321" $CAPTURE_FILE
109 check_err $? "Sampled packets reported with wrong out-ifindex"
114 grep -q -e "out-tc 5" $CAPTURE_FILE
115 check_err $? "Sampled packets reported with wrong out-tc"
117 echo $((2**16 - 1)) > $PSAMPLE_DIR/out_tc
120 grep -q -e "out-tc " $CAPTURE_FILE
121 check_fail $? "Sampled packets reported with out-tc when should not"
127 grep -q -e "out-tc-occ " $CAPTURE_FILE
128 check_err $? "Sampled packets not reported with out-tc-occ when should"
133 grep -q -e "out-tc-occ " $CAPTURE_FILE
134 check_fail $? "Sampled packets reported with out-tc-occ when should not"
139 grep -q -e "latency " $CAPTURE_FILE
140 check_err $? "Sampled packets not reported with latency when should"
145 grep -q -e "latency " $CAPTURE_FILE
146 check_fail $? "Sampled packets reported with latency when should not"
158 while [ ! -d $SYSFS_NET_DIR ] ; do :; done
160 set -e
171 rm -f $CAPTURE_FILE
174 modprobe -r netdevsim &> /dev/null
177 trap cleanup EXIT
183 exit $EXIT_STATUS