3 # Copyright (C) 2013 David Goulet <dgoulet@efficios.com>
5 # SPDX-License-Identifier: LGPL-2.1-only
15 TESTAPP_PATH
="$TESTDIR/utils/testapp"
16 TESTAPP_NAME
="gen-ust-events"
17 TESTAPP_BIN
="$TESTAPP_PATH/$TESTAPP_NAME/$TESTAPP_NAME"
19 source $TESTDIR/utils
/utils.sh
21 if [ ! -x "$TESTAPP_BIN" ]; then
22 BAIL_OUT
"No UST nevents binary detected."
25 # Number of application to spawn.
30 # Number of seconds before the next loop is done in the app.
32 NR_USEC_WAIT
=$
(echo $
(( $2 * 1000000 )))
35 # Number of loop the application should do meaning one TP is hit per loop.
40 # MUST set TESTDIR before this point.
42 # Infinite loop. Spawns NR_APP apps for NR_USEC_WAIT doing NR_APP_LOOP.
44 for j
in `seq 1 $NR_APP`; do
45 $TESTAPP_BIN -i $NR_APP_LOOP -w $NR_USEC_WAIT >/dev
/null
2>&1 &
47 # Wait before the next round of applications.
This page took 0.030908 seconds and 4 git commands to generate.