3 # Copyright (C) - 2013 Christian Babeux <christian.babeux@efficios.com>
4 # Copyright (C) - 2014 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
6 # This program is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License, version 2 only, as
8 # published by the Free Software Foundation.
10 # This program is distributed in the hope that it will be useful, but WITHOUT
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 # You should have received a copy of the GNU General Public License along with
16 # this program; if not, write to the Free Software Foundation, Inc., 51
17 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 TEST_DESC
="UST tracer - tracef events"
24 TESTAPP_PATH
="$TESTDIR/utils/testapp"
25 TESTAPP_NAME
="gen-ust-tracef"
26 TESTAPP_BIN
="$TESTAPP_PATH/$TESTAPP_NAME/$TESTAPP_NAME"
28 EVENT_NAME
="lttng_ust_tracef:event"
32 source $TESTDIR/utils
/utils.sh
34 if [ ! -x "$TESTAPP_BIN" ]; then
35 BAIL_OUT
"No UST nevents binary detected."
38 function test_event_tracef
()
40 create_lttng_session
$SESSION_NAME $TRACE_PATH
41 enable_ust_lttng_event
$SESSION_NAME $EVENT_NAME
42 start_lttng_tracing
$SESSION_NAME
44 $TESTAPP_BIN $NR_ITER $NR_USEC_WAIT
45 ok $?
"Traced application stopped."
47 stop_lttng_tracing
$SESSION_NAME
48 destroy_lttng_session
$SESSION_NAME
50 trace_match_only
$EVENT_NAME $NR_ITER $TRACE_PATH
55 # MUST set TESTDIR before calling those functions
58 print_test_banner
"$TEST_DESC"
62 TRACE_PATH
=$
(mktemp
-d)
65 if [ $out -ne 0 ]; then
This page took 0.032912 seconds and 5 git commands to generate.