aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/rcutorture/bin/jitterstop.sh
blob: 576a4cf4b79a57d917405d4df10efd7bcf9aef3f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0+
#
# Remove the "jittering" file, signaling the jitter.sh scripts to stop,
# then wait for them to terminate.
#
# Usage: . jitterstop.sh jittering-dir
#
# jittering-dir: Directory containing "jittering" file.
#
# Copyright (C) 2021 Facebook, Inc.
#
# Authors: Paul E. McKenney <paulmck@kernel.org>

jittering_dir=$1
if test -z "$jittering_dir"
then
	echo jitterstop.sh: Missing directory in which to place jittering file.
	exit 34
fi

rm -f ${jittering_dir}/jittering
wait