3 # Copyright (C) - 2012 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
18 TESTDIR
=$
(dirname $0)/..
20 SESSION_NAME
="ust-nevents"
21 EVENT_NAME
="ust_gen_nevents:tptest"
22 TRACE_PATH
=$
(mktemp
-d)
24 source $TESTDIR/utils.sh
26 echo -e "\n-----------------------------------"
27 echo -e "UST tracer - Generate $NR_ITER events"
28 echo -e "-------------------------------------"
30 # MUST set TESTDIR before calling those functions
32 create_lttng_session
$SESSION_NAME $TRACE_PATH
34 enable_ust_lttng_event
$SESSION_NAME $EVENT_NAME
35 start_tracing
$SESSION_NAME
38 .
/$
(dirname $0)/gen-nevents
$NR_ITER
40 stop_tracing
$SESSION_NAME
41 destroy_lttng_session
$SESSION_NAME
43 trace_matches
$EVENT_NAME $NR_ITER $TRACE_PATH
This page took 0.030778 seconds and 4 git commands to generate.