3 # Copyright (C) - 2013 David Goulet <dgoulet@efficios.com>
5 # This library is free software; you can redistribute it and/or modify it under
6 # the terms of the GNU Lesser General Public License as published by the Free
7 # Software Foundation; version 2.1 of the License.
9 # This library is distributed in the hope that it will be useful, but WITHOUT
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
14 # You should have received a copy of the GNU Lesser General Public License
15 # along with this library; if not, write to the Free Software Foundation, Inc.,
16 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25 TESTAPP_PATH
="$TESTDIR/utils/testapp"
26 TESTAPP_NAME
="gen-ust-events"
27 TESTAPP_BIN
="$TESTAPP_PATH/$TESTAPP_NAME/$TESTAPP_NAME"
29 source $TESTDIR/utils
/utils.sh
31 if [ ! -x "$TESTAPP_BIN" ]; then
32 BAIL_OUT
"No UST nevents binary detected."
35 # Number of application to spawn.
40 # Number of seconds before the next loop is done in the app.
42 NR_USEC_WAIT
=$
(echo $
(( $2 * 1000000 )))
45 # Number of loop the application should do meaning one TP is hit per loop.
50 # MUST set TESTDIR before this point.
52 # Infinite loop. Spawns NR_APP apps for NR_USEC_WAIT doing NR_APP_LOOP.
54 for j
in `seq 1 $NR_APP`; do
55 $TESTAPP_BIN -i $NR_APP_LOOP -w $NR_USEC_WAIT >/dev
/null
2>&1 &
57 # Wait before the next round of applications.
This page took 0.033129 seconds and 5 git commands to generate.