#################################################################### # Copyright (c) 2013 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.3.0 - Dominus Vobiscum A very succulent line-up of beers brewed at Microbrasserie Charlevoix. Elaborated starting from special malts and fermented with a Belgian yeast. These beers are refermented in bottle and will make you discover the richness of wheat, amber and triple styles. 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 -u -f 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 --snapshot" LTTng 2.3 #################################################################### ScenCreateSession lttng create mysession --snapshot 0 Session mysession created. Default snapshot output set to: /home/user/lttng-traces/mysession-20130913-141651 Snapshot mode set. Every channel enabled for that session will be set in overwrite mode and mmap output. #------------------------------------------------------------------------------ lttng list mysession 0 Tracing session mysession: [inactive snapshot] Trace path: #------------------------------------------------------------------------------ lttng snapshot list-output -s mysession 0 Snapshot output list for session mysession [1] snapshot-1: /home/user/lttng-traces/mysession-20130913-141651 #------------------------------------------------------------------------------ lttng start mysession 0 Tracing started for session mysession. #------------------------------------------------------------------------------ lttng snapshot record -s mysession 0 Snapshot recorded successfully for session mysession #------------------------------------------------------------------------------ lttng stop mysession 0 Tracing stopped for session mysession. #------------------------------------------------------------------------------ lttng destroy mysession 0 Session mysession destroyed.