####################################################################
# Copyright (c) 2012 Ericsson
#
# All rights reserved. This program and the accompanying materials are
# made available under the terms of the Eclipse Public License v1.0 which
# accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
# Bernd Hufmann - Initial API and implementation
####################################################################
####################################################################
# Scenario: Initialize
####################################################################
Initialize
lttng version
0
lttng version 2.0.0 - Annedd'ale
Web site: http://lttng.org/
lttng is free software and under the GPL license and part LGPL
lttng list
0
Currently no available tracing session
lttng list -k
0
Kernel events
-------------
sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint)
sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint)
sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint)
lttng list -k --syscall
0
System calls:
-------------
read [32/64-bit]
write [32/64-bit]
open [32/64-bit]
lttng list -u
0
UST events:
-------------
PID: 9379 - Name: /home/user/git/lttng-ust/tests/hello.cxx/.libs/lt-hello
ust_tests_hello:tptest_sighandler (loglevel: TRACE_WARNING (4)) (type: tracepoint)
ust_tests_hello:tptest (loglevel: TRACE_DEBUG_FUNCTION (12)) (type: tracepoint)
PID: 4852 - Name: /home/user/git/lttng-ust/tests/hello.cxx/.libs/lt-hello
ust_tests_hello:tptest_sighandler (loglevel: TRACE_WARNING (4)) (type: tracepoint)
ust_tests_hello:tptest (loglevel: TRACE_DEBUG_FUNCTION (12)) (type: tracepoint)
####################################################################
# Scenario: Test "lttng create with LTTng 2.1 options
####################################################################
##################################################################
CreateSessionFileProto
lttng create mysession -U file:///tmp
0
Session mysession created.
Traces will be written in file:///tmp
lttng list mysession
0
Tracing session mysession: [inactive]
Trace path: file:///tmp
lttng destroy mysession
0
Session mysession destroyed.
##################################################################
CreateSessionControlData
lttng create mysession -C tcp://172.0.0.1 -D tcp://172.0.0.1:5343
0
Session mysession created.
Control URL tcp://172.0.0.1 set for session mysession
Data URL tcp://172.0.0.1:5343 set for session mysession
lttng list mysession
0
Tracing session mysession: [inactive]
Trace path: tcp://172.0.0.1:5342 [data: 5343]
lttng destroy mysession
0
Session mysession destroyed.
##################################################################
CreateSessionNetwork
lttng create mysession -U net://172.0.0.1:1234:2345
0
Session mysession created.
Traces will be written in net://172.0.0.1:1234:2345
lttng list mysession
0
Tracing session mysession: [inactive]
Trace path: net://172.0.0.1:1234 [data: 2345]
lttng destroy mysession
0
Session mysession2 destroyed.
##################################################################
CreateSessionNetwork2
lttng create mysession -U net6://[ffff::eeee:dddd:cccc:0]
0
Session mysession created.
Traces will be written in net6://[ffff::eeee:dddd:cccc:0]
lttng list mysession
0
Tracing session mysession: [inactive]
Trace path: net://[ffff::eeee:dddd:cccc:0]:5342/mysession-20130221-144451 [data: 5343]
lttng destroy mysession
0
Session mysession2 destroyed.