2 # SPDX-License-Identifier: GPL-2.0
4 # Test latency spikes caused by FIN/ACK handling race.
9 tmpfile
=$
(mktemp
/tmp
/fin_ack_latency.XXXX.log
)
12 kill $
(pidof fin_ack_lat
)
21 .
/fin_ack_lat |
tee $tmpfile &
25 NR_SPIKES
=$
(wc -l $tmpfile |
awk '{print $1}')
26 if [ $NR_SPIKES -gt 0 ]
28 echo "FAIL: $NR_SPIKES spikes detected"