aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/rcutorture/bin/jitter.sh
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2019-10-06 14:33:22 -0700
committerPaul E. McKenney <paulmck@kernel.org>2019-12-09 13:00:26 -0800
commitc493f1c9c4094afae7f3a0693ae395f3859022b4 (patch)
tree30477cf25d3d323864734f2fa28ed9a0cc8fecec /tools/testing/selftests/rcutorture/bin/jitter.sh
parentLinux 5.5-rc1 (diff)
downloadlinux-dev-c493f1c9c4094afae7f3a0693ae395f3859022b4.tar.xz
linux-dev-c493f1c9c4094afae7f3a0693ae395f3859022b4.zip
torture: Use gawk instead of awk for systime() function
In many environments, gawk provides systime(), but awk doesn't. This commit therefore changes awk scripts using systime() to instead be gawk scripts. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/testing/selftests/rcutorture/bin/jitter.sh')
-rwxr-xr-xtools/testing/selftests/rcutorture/bin/jitter.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/jitter.sh b/tools/testing/selftests/rcutorture/bin/jitter.sh
index dc49a3ba6111..86a217b41b9f 100755
--- a/tools/testing/selftests/rcutorture/bin/jitter.sh
+++ b/tools/testing/selftests/rcutorture/bin/jitter.sh
@@ -23,12 +23,12 @@ spinmax=${4-1000}
n=1
-starttime=`awk 'BEGIN { print systime(); }' < /dev/null`
+starttime=`gawk 'BEGIN { print systime(); }' < /dev/null`
while :
do
# Check for done.
- t=`awk -v s=$starttime 'BEGIN { print systime() - s; }' < /dev/null`
+ t=`gawk -v s=$starttime 'BEGIN { print systime() - s; }' < /dev/null`
if test "$t" -gt "$duration"
then
exit 0;