Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /usr/src/linux-headers-5.15.0-153/tools/testing/selftests/net/ |
Upload File : |
#!/bin/bash # SPDX-License-Identifier: GPL-2.0 # # Test latency spikes caused by FIN/ACK handling race. set +x set -e tmpfile=$(mktemp /tmp/fin_ack_latency.XXXX.log) cleanup() { kill $(pidof fin_ack_lat) rm -f $tmpfile } trap cleanup EXIT do_test() { RUNTIME=$1 ./fin_ack_lat | tee $tmpfile & PID=$! sleep $RUNTIME NR_SPIKES=$(wc -l $tmpfile | awk '{print $1}') if [ $NR_SPIKES -gt 0 ] then echo "FAIL: $NR_SPIKES spikes detected" return 1 fi return 0 } do_test "30" echo "test done"