#################################################################### # 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: Test no sessions available #################################################################### Initialize 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 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: Create and destroy session #################################################################### SessionHandling lttng create mysession 0 Session mysession created. Traces will be written in /home/user/lttng-traces/mysession-20120314-132824 lttng list mysession 0 Tracing session mysession: [inactive] Trace path: /home/user/lttng-traces/mysession-20120314-132824 lttng destroy mysession 0 Session mysession destroyed. lttng start mysession 0 Tracing started for session mysession. lttng stop mysession 0 Tracing stopped for session mysession. #################################################################### # Scenario: Create and destroy session #################################################################### SessionHandlingWithPath lttng create mysession -o /home/user/temp 0 Session mysession created. Traces will be written in /home/user/temp lttng list mysession 0 Tracing session mysession: [inactive] Trace path: /home/user/temp lttng destroy mysession 0 Session mysession destroyed. #################################################################### # Scenario: Enable events from kernel provider events #################################################################### Scenario1 lttng enable-event sched_kthread_stop,sched_kthread_stop_ret -k -s mysession --tracepoint 0 kernel event sched_kthread_stop created in channel channel0 kernel sched_kthread_stop_ret created in channel channel0 lttng list mysession 0 Tracing session mysession: [inactive] Trace path: /home/user/lttng-traces/mysession-20120314-132824 === Domain: Kernel === Channels: ------------- - channel0: [enabled] Attributes: overwrite mode: 0 subbufers size: 262144 number of subbufers: 4 switch timer interval: 0 read timer interval: 200 output: splice() Events: sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] lttng disable-event sched_kthread_stop_ret,sched_kthread_stop -k -s mysession -c channel0 0 kernel event sched_kthread_stop_ret disabled in channel channel0 kernel event sched_kthread_stop disabled in channel channel0 lttng enable-event sched_kthread_stop -k -s mysession -c channel0 --tracepoint 0 kernel event sched_kthread_stop enabled in channel channel0 #################################################################### # Scenario: Enable events from UST provider events #################################################################### Scenario2 lttng enable-channel mychannel -u -s mysession --subbuf-size 16384 --num-subbuf 2 --switch-timer 200 --read-timer 100 0 UST channel mychannel enabled for session mysession lttng list mysession 0 Tracing session mysession: [inactive] Trace path: /home/user/temp === Domain: UST global === Channels: ------------- - mychannel: [enabled] Attributes: overwrite mode: 0 subbufers size: 16384 number of subbufers: 2 switch timer interval: 200 read timer interval: 100 output: mmap() Events: None lttng enable-event ust_tests_hello:tptest_sighandler,ust_tests_hello:tptest -u -s mysession --tracepoint 0 UST event ust_tests_hello:tptest_sighandler in channel channel0 UST sched_ust_tests_hello:tptest created in channel channel0 lttng list mysession 0 Tracing session mysession: [inactive] Trace path: /home/user/temp === Domain: UST global === Channels: ------------- - mychannel: [enabled] Attributes: overwrite mode: 0 subbufers size: 16384 number of subbufers: 2 switch timer interval: 200 read timer interval: 100 output: mmap() Events: ust_tests_hello:tptest_sighandler (type: tracepoint) [enabled] ust_tests_hello:tptest (type: tracepoint) [enabled] lttng disable-event ust_tests_hello:tptest -u -s mysession -c mychannel 0 kernel event ust_tests_hello:tptest in channel mychannel lttng enable-event ust_tests_hello:tptest -u -s mysession -c mychannel --tracepoint 0 kernel event ust_tests_hello:tptest enabled in channel mychannel Scenario3 lttng enable-channel mychannel -k -s mysession --overwrite --subbuf-size 16384 --num-subbuf 4 --switch-timer 100 --read-timer 200 0 Kernel channel mychannel enabled for session mysession lttng list mysession 0 Tracing session mysession: [inactive] Trace path: /home/user/lttng-traces/mysession-20120314-132824 === Domain: Kernel === Channels: ------------- - mychannel: [enabled] Attributes: overwrite mode: 1 subbufers size: 16384 number of subbufers: 4 switch timer interval: 100 read timer interval: 200 output: splice() Events: None lttng enable-channel mychannel2 -k -s mysession --subbuf-size 32768 --num-subbuf 2 --switch-timer 100 --read-timer 200 0 Kernel channel mychannel2 enabled for session mysession lttng list mysession 0 Tracing session mysession: [inactive] Trace path: /home/user/lttng-traces/mysession-20120314-132824 === Domain: Kernel === Channels: ------------- - mychannel: [enabled] Attributes: overwrite mode: 1 subbufers size: 16384 number of subbufers: 4 switch timer interval: 100 read timer interval: 200 output: splice() Events: None - mychannel2: [enabled] Attributes: overwrite mode: 0 subbufers size: 32768 number of subbufers: 2 switch timer interval: 100 read timer interval: 200 output: splice() Events: None lttng disable-channel mychannel,mychannel2 -k -s mysession 0 Kernel channel mychannel disabled for session mysession Kernel channel mychannel2 disabled for session mysession lttng enable-channel mychannel,mychannel2 -k -s mysession 0 Kernel channel mychannel enabled for session mysession Kernel channel mychannel2 enabled for session mysession lttng enable-event sched_kthread_stop,sched_kthread_stop_ret -k -s mysession --tracepoint 0 kernel event sched_kthread_stop created in channel channel0 kernel sched_kthread_stop_ret created in channel channel0 lttng list mysession 0 Tracing session mysession: [inactive] Trace path: /home/user/lttng-traces/mysession-20120314-132824 === Domain: Kernel === Channels: ------------- - mychannel: [enabled] Attributes: overwrite mode: 1 subbufers size: 16384 number of subbufers: 4 switch timer interval: 100 read timer interval: 200 output: splice() Events: None - mychannel2: [enabled] Attributes: overwrite mode: 0 subbufers size: 32768 number of subbufers: 2 switch timer interval: 100 read timer interval: 200 output: splice() Events: None - channel0: [enabled] Attributes: overwrite mode: 0 subbufers size: 262144 number of subbufers: 4 switch timer interval: 0 read timer interval: 200 output: splice() Events: sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] lttng enable-event sched_wakeup_new -k -s mysession --tracepoint 0 kernel event sched_wakeup_new created in channel channel0 lttng list mysession 0 Tracing session mysession: [inactive] Trace path: /home/user/lttng-traces/mysession-20120314-132824 === Domain: Kernel === Channels: ------------- - mychannel: [enabled] Attributes: overwrite mode: 1 subbufers size: 16384 number of subbufers: 4 switch timer interval: 100 read timer interval: 200 output: splice() Events: None - mychannel2: [enabled] Attributes: overwrite mode: 0 subbufers size: 32768 number of subbufers: 2 switch timer interval: 100 read timer interval: 200 output: splice() Events: None - channel0: [enabled] Attributes: overwrite mode: 0 subbufers size: 262144 number of subbufers: 4 switch timer interval: 0 read timer interval: 200 output: splice() Events: sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] lttng enable-event -a -k -s mysession -c mychannel2 --tracepoint 0 All kernel event sched_kthread_stop created in channel channel0 lttng list mysession 0 Tracing session mysession: [inactive] Trace path: /home/user/lttng-traces/mysession-20120314-132824 === Domain: Kernel === Channels: ------------- - mychannel: [enabled] Attributes: overwrite mode: 1 subbufers size: 16384 number of subbufers: 4 switch timer interval: 100 read timer interval: 200 output: splice() Events: None - mychannel2: [enabled] Attributes: overwrite mode: 0 subbufers size: 32768 number of subbufers: 2 switch timer interval: 100 read timer interval: 200 output: splice() Events: sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] - channel0: [enabled] Attributes: overwrite mode: 0 subbufers size: 262144 number of subbufers: 4 switch timer interval: 0 read timer interval: 200 output: splice() Events: sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] lttng enable-event -a -k -s mysession -c mychannel --syscall 0 All kernel system calls are enabled in channel mychannel lttng list mysession 0 Tracing session mysession: [inactive] Trace path: /home/user/lttng-traces/mysession-20120314-132824 === Domain: Kernel === Channels: ------------- - mychannel: [enabled] Attributes: overwrite mode: 1 subbufers size: 16384 number of subbufers: 4 switch timer interval: 100 read timer interval: 200 output: splice() Events: syscalls (type: syscall) [enabled] - mychannel2: [enabled] Attributes: overwrite mode: 0 subbufers size: 32768 number of subbufers: 2 switch timer interval: 100 read timer interval: 200 output: splice() Events: sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] - channel0: [enabled] Attributes: overwrite mode: 0 subbufers size: 262144 number of subbufers: 4 switch timer interval: 0 read timer interval: 200 output: splice() Events: sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] lttng enable-event -a -k -s mysession --syscall 0 All kernel system calls are enabled in channel channel0 lttng list mysession 0 Tracing session mysession: [inactive] Trace path: /home/user/lttng-traces/mysession-20120314-132824 === Domain: Kernel === Channels: ------------- - mychannel: [enabled] Attributes: overwrite mode: 1 subbufers size: 16384 number of subbufers: 4 switch timer interval: 100 read timer interval: 200 output: splice() Events: syscalls (type: syscall) [enabled] - mychannel2: [enabled] Attributes: overwrite mode: 0 subbufers size: 32768 number of subbufers: 2 switch timer interval: 100 read timer interval: 200 output: splice() Events: sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] - channel0: [enabled] Attributes: overwrite mode: 0 subbufers size: 262144 number of subbufers: 4 switch timer interval: 0 read timer interval: 200 output: splice() Events: syscalls (type: syscall) [enabled] sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] lttng enable-event -a -k -s mysession --syscall 0 All kernel system calls are enabled in channel channel0 lttng list mysession 0 Tracing session mysession: [inactive] Trace path: /home/user/lttng-traces/mysession-20120314-132824 === Domain: Kernel === Channels: ------------- - mychannel: [enabled] Attributes: overwrite mode: 1 subbufers size: 16384 number of subbufers: 4 switch timer interval: 100 read timer interval: 200 output: splice() Events: syscalls (type: syscall) [enabled] - mychannel2: [enabled] Attributes: overwrite mode: 0 subbufers size: 32768 number of subbufers: 2 switch timer interval: 100 read timer interval: 200 output: splice() Events: sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] - channel0: [enabled] Attributes: overwrite mode: 0 subbufers size: 262144 number of subbufers: 4 switch timer interval: 0 read timer interval: 200 output: splice() Events: syscalls (type: syscall) [enabled] sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] lttng enable-event myevent1 -k -s mysession --probe 0xc0101280 0 kernel event myevent1 created in channel channel0 lttng list mysession 0 Tracing session mysession: [inactive] Trace path: /home/user/lttng-traces/mysession-20120314-132824 === Domain: Kernel === Channels: ------------- - mychannel: [enabled] Attributes: overwrite mode: 1 subbufers size: 16384 number of subbufers: 4 switch timer interval: 100 read timer interval: 200 output: splice() Events: syscalls (type: syscall) [enabled] - mychannel2: [enabled] Attributes: overwrite mode: 0 subbufers size: 32768 number of subbufers: 2 switch timer interval: 100 read timer interval: 200 output: splice() Events: sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] - channel0: [enabled] Attributes: overwrite mode: 0 subbufers size: 262144 number of subbufers: 4 switch timer interval: 0 read timer interval: 200 output: splice() Events: myevent1 (type: probe) [enabled] addr: 0xc0101280 syscalls (type: syscall) [enabled] sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] lttng enable-event myevent2 -k -s mysession -c channel0 --probe init_post 0 kernel event myevent2 created in channel channel0 lttng list mysession 0 Tracing session mysession: [inactive] Trace path: /home/user/lttng-traces/mysession-20120314-132824 === Domain: Kernel === Channels: ------------- - mychannel: [enabled] Attributes: overwrite mode: 1 subbufers size: 16384 number of subbufers: 4 switch timer interval: 100 read timer interval: 200 output: splice() Events: syscalls (type: syscall) [enabled] - mychannel2: [enabled] Attributes: overwrite mode: 0 subbufers size: 32768 number of subbufers: 2 switch timer interval: 100 read timer interval: 200 output: splice() Events: sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] - channel0: [enabled] Attributes: overwrite mode: 0 subbufers size: 262144 number of subbufers: 4 switch timer interval: 0 read timer interval: 200 output: splice() Events: myevent2 (type: probe) [enabled] offset: 0x0 symbol: init_post myevent1 (type: probe) [enabled] addr: 0xc0101280 syscalls (type: syscall) [enabled] sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] lttng enable-event myevent3 -k -s mysession --probe init_post:0x1000 0 kernel event myevent2 created in channel channel0 lttng list mysession 0 Tracing session mysession: [inactive] Trace path: /home/user/lttng-traces/mysession-20120314-132824 === Domain: Kernel === Channels: ------------- - mychannel: [enabled] Attributes: overwrite mode: 1 subbufers size: 16384 number of subbufers: 4 switch timer interval: 100 read timer interval: 200 output: splice() Events: syscalls (type: syscall) [enabled] - mychannel2: [enabled] Attributes: overwrite mode: 0 subbufers size: 32768 number of subbufers: 2 switch timer interval: 100 read timer interval: 200 output: splice() Events: sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] - channel0: [enabled] Attributes: overwrite mode: 0 subbufers size: 262144 number of subbufers: 4 switch timer interval: 0 read timer interval: 200 output: splice() Events: myevent3 (type: probe) [enabled] offset: 0x1000 symbol: init_post myevent2 (type: probe) [enabled] offset: 0x0 symbol: init_post myevent1 (type: probe) [enabled] addr: 0xc0101280 syscalls (type: syscall) [enabled] sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] lttng enable-event myevent4 -k -s mysession --function create_dev 0 kernel event myevent4 created in channel channel0 lttng list mysession 0 Tracing session mysession: [inactive] Trace path: /home/user/lttng-traces/mysession-20120314-132824 === Domain: Kernel === Channels: ------------- - mychannel: [enabled] Attributes: overwrite mode: 1 subbufers size: 16384 number of subbufers: 4 switch timer interval: 100 read timer interval: 200 output: splice() Events: syscalls (type: syscall) [enabled] - mychannel2: [enabled] Attributes: overwrite mode: 0 subbufers size: 32768 number of subbufers: 2 switch timer interval: 100 read timer interval: 200 output: splice() Events: sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] - channel0: [enabled] Attributes: overwrite mode: 0 subbufers size: 262144 number of subbufers: 4 switch timer interval: 0 read timer interval: 200 output: splice() Events: myevent4 (type: probe) [enabled] offset: 0x0 symbol: create_dev myevent3 (type: probe) [enabled] offset: 0x1000 symbol: init_post myevent2 (type: probe) [enabled] offset: 0x0 symbol: init_post myevent1 (type: probe) [enabled] addr: 0xc0101280 syscalls (type: syscall) [enabled] sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] lttng enable-event myevent5 -k -s mysession --function create_dev:0x2000 0 kernel event myevent5 created in channel channel0 lttng list mysession 0 Tracing session mysession: [inactive] Trace path: /home/user/lttng-traces/mysession-20120314-132824 === Domain: Kernel === Channels: ------------- - mychannel: [enabled] Attributes: overwrite mode: 1 subbufers size: 16384 number of subbufers: 4 switch timer interval: 100 read timer interval: 200 output: splice() Events: syscalls (type: syscall) [enabled] - mychannel2: [enabled] Attributes: overwrite mode: 0 subbufers size: 32768 number of subbufers: 2 switch timer interval: 100 read timer interval: 200 output: splice() Events: sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] - channel0: [enabled] Attributes: overwrite mode: 0 subbufers size: 262144 number of subbufers: 4 switch timer interval: 0 read timer interval: 200 output: splice() Events: myevent5 (type: probe) [enabled] offset: 0x2000 symbol: create_dev myevent4 (type: probe) [enabled] offset: 0x0 symbol: create_dev myevent3 (type: probe) [enabled] offset: 0x1000 symbol: init_post myevent2 (type: probe) [enabled] offset: 0x0 symbol: init_post myevent1 (type: probe) [enabled] addr: 0xc0101280 syscalls (type: syscall) [enabled] sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] lttng enable-event myevent -k -s mysession -c mychannel --function create_dev:0x2000 0 kernel event myevent created in channel mychannel lttng list mysession 0 Tracing session mysession: [inactive] Trace path: /home/user/lttng-traces/mysession-20120314-132824 === Domain: Kernel === Channels: ------------- - mychannel: [enabled] Attributes: overwrite mode: 1 subbufers size: 16384 number of subbufers: 4 switch timer interval: 100 read timer interval: 200 output: splice() Events: myevent (type: probe) [enabled] offset: 0x2000 symbol: create_dev syscalls (type: syscall) [enabled] - mychannel2: [enabled] Attributes: overwrite mode: 0 subbufers size: 32768 number of subbufers: 2 switch timer interval: 100 read timer interval: 200 output: splice() Events: sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] - channel0: [enabled] Attributes: overwrite mode: 0 subbufers size: 262144 number of subbufers: 4 switch timer interval: 0 read timer interval: 200 output: splice() Events: myevent5 (type: probe) [enabled] offset: 0x2000 symbol: create_dev myevent4 (type: probe) [enabled] offset: 0x0 symbol: create_dev myevent3 (type: probe) [enabled] offset: 0x1000 symbol: init_post myevent2 (type: probe) [enabled] offset: 0x0 symbol: init_post myevent1 (type: probe) [enabled] addr: 0xc0101280 syscalls (type: syscall) [enabled] sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] lttng list 0 Available tracing sessions: 1) mysession (/home/eedbhu/lttng-traces/mysession-20120321-115617) [inactive] Use lttng list for more details 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 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) lttng list mysession 0 Tracing session mysession: [inactive] Trace path: /home/user/lttng-traces/mysession-20120314-132824 === Domain: Kernel === Channels: ------------- - mychannel: [enabled] Attributes: overwrite mode: 1 subbufers size: 16384 number of subbufers: 4 switch timer interval: 100 read timer interval: 200 output: splice() Events: myevent (type: probe) [enabled] offset: 0x2000 symbol: create_dev syscalls (type: syscall) [enabled] - mychannel2: [enabled] Attributes: overwrite mode: 0 subbufers size: 32768 number of subbufers: 2 switch timer interval: 100 read timer interval: 200 output: splice() Events: sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] - channel0: [enabled] Attributes: overwrite mode: 0 subbufers size: 262144 number of subbufers: 4 switch timer interval: 0 read timer interval: 200 output: splice() Events: myevent5 (type: probe) [enabled] offset: 0x2000 symbol: create_dev myevent4 (type: probe) [enabled] offset: 0x0 symbol: create_dev myevent3 (type: probe) [enabled] offset: 0x1000 symbol: init_post myevent2 (type: probe) [enabled] offset: 0x0 symbol: init_post myevent1 (type: probe) [enabled] addr: 0xc0101280 syscalls (type: syscall) [enabled] sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] Scenario4 lttng enable-channel mychannel -u -s mysession --overwrite --subbuf-size 16384 --num-subbuf 4 --switch-timer 100 --read-timer 200 0 UST channel mychannel enabled for session mysession lttng list mysession 0 Tracing session mysession: [inactive] Trace path: /home/user/lttng-traces/mysession-20120314-132824 === Domain: UST global === Channels: ------------- - mychannel: [enabled] Attributes: overwrite mode: 1 subbufers size: 16384 number of subbufers: 4 switch timer interval: 100 read timer interval: 200 output: mmap() Events: None lttng enable-channel mychannel2 -u -s mysession --subbuf-size 32768 --num-subbuf 2 --switch-timer 100 --read-timer 200 0 UST channel mychannel2 enabled for session mysession lttng list mysession 0 Tracing session mysession: [inactive] Trace path: /home/user/lttng-traces/mysession-20120314-132824 === Domain: UST global === Channels: ------------- - mychannel: [enabled] Attributes: overwrite mode: 1 subbufers size: 16384 number of subbufers: 4 switch timer interval: 100 read timer interval: 200 output: mmap() Events: None - mychannel2: [enabled] Attributes: overwrite mode: 0 subbufers size: 32768 number of subbufers: 2 switch timer interval: 100 read timer interval: 200 output: mmap() Events: None lttng enable-event ust_tests_hello:tptest_sighandler -u -s mysession --tracepoint 0 UST event ust_tests_hello:tptest_sighandler created in channel channel0 lttng list mysession 0 Tracing session mysession: [inactive] Trace path: /home/user/lttng-traces/mysession-20120314-132824 === Domain: UST global === Channels: ------------- - mychannel: [enabled] Attributes: overwrite mode: 1 subbufers size: 16384 number of subbufers: 4 switch timer interval: 100 read timer interval: 200 output: mmap() Events: None - mychannel2: [enabled] Attributes: overwrite mode: 0 subbufers size: 32768 number of subbufers: 2 switch timer interval: 100 read timer interval: 200 output: mmap() Events: None - channel0: [enabled] Attributes: overwrite mode: 0 subbufers size: 262144 number of subbufers: 4 switch timer interval: 0 read timer interval: 200 output: mmap() Events: ust_tests_hello:tptest_sighandler (type: tracepoint) [enabled] lttng enable-event ust_tests_hello:tptest -u -s mysession --tracepoint 0 UST event ust_tests_hello:tptest created in channel channel0 lttng list mysession 0 Tracing session mysession: [inactive] Trace path: /home/user/lttng-traces/mysession-20120314-132824 === Domain: UST global === Channels: ------------- - mychannel: [enabled] Attributes: overwrite mode: 1 subbufers size: 16384 number of subbufers: 4 switch timer interval: 100 read timer interval: 200 output: mmap() Events: None - mychannel2: [enabled] Attributes: overwrite mode: 0 subbufers size: 32768 number of subbufers: 2 switch timer interval: 100 read timer interval: 200 output: mmap() Events: None - channel0: [enabled] Attributes: overwrite mode: 0 subbufers size: 262144 number of subbufers: 4 switch timer interval: 0 read timer interval: 200 output: mmap() Events: ust_tests_hello:tptest_sighandler (type: tracepoint) [enabled] ust_tests_hello:tptest (type: tracepoint) [enabled] lttng enable-event -a -u -s mysession -c mychannel2 --tracepoint 0 All UST events created in channel channel0 lttng list mysession 0 Tracing session mysession: [inactive] Trace path: /home/user/lttng-traces/mysession-20120314-132824 === Domain: UST global === Channels: ------------- - mychannel: [enabled] Attributes: overwrite mode: 1 subbufers size: 16384 number of subbufers: 4 switch timer interval: 100 read timer interval: 200 output: mmap() Events: None - mychannel2: [enabled] Attributes: overwrite mode: 0 subbufers size: 32768 number of subbufers: 2 switch timer interval: 100 read timer interval: 200 output: mmap() Events: * (type: tracepoint) [enabled] - channel0: [enabled] Attributes: overwrite mode: 0 subbufers size: 262144 number of subbufers: 4 switch timer interval: 0 read timer interval: 200 output: mmap() Events: ust_tests_hello:tptest_sighandler (type: tracepoint) [enabled] ust_tests_hello:tptest (type: tracepoint) [enabled] lttng enable-event ust* -u -s mysession -c mychannel --tracepoint 0 UST event ust* created in channel mychannel lttng list mysession 0 Tracing session mysession: [inactive] Trace path: /home/user/lttng-traces/mysession-20120314-132824 === Domain: UST global === Channels: ------------- - mychannel: [enabled] Attributes: overwrite mode: 1 subbufers size: 16384 number of subbufers: 4 switch timer interval: 100 read timer interval: 200 output: mmap() Events: ust* (type: tracepoint) [enabled] - mychannel2: [enabled] Attributes: overwrite mode: 0 subbufers size: 32768 number of subbufers: 2 switch timer interval: 100 read timer interval: 200 output: mmap() Events: * (type: tracepoint) [enabled] - channel0: [enabled] Attributes: overwrite mode: 0 subbufers size: 262144 number of subbufers: 4 switch timer interval: 0 read timer interval: 200 output: mmap() Events: ust_tests_hello:tptest_sighandler (type: tracepoint) [enabled] ust_tests_hello:tptest (type: tracepoint) [enabled] lttng enable-event ust* -u -s mysession --tracepoint 0 UST event ust* created in channel channel0 lttng list mysession 0 Tracing session mysession: [inactive] Trace path: /home/user/lttng-traces/mysession-20120314-132824 === Domain: UST global === Channels: ------------- - mychannel: [enabled] Attributes: overwrite mode: 1 subbufers size: 16384 number of subbufers: 4 switch timer interval: 100 read timer interval: 200 output: mmap() Events: ust* (type: tracepoint) [enabled] - mychannel2: [enabled] Attributes: overwrite mode: 0 subbufers size: 32768 number of subbufers: 2 switch timer interval: 100 read timer interval: 200 output: mmap() Events: * (type: tracepoint) [enabled] - channel0: [enabled] Attributes: overwrite mode: 0 subbufers size: 262144 number of subbufers: 4 switch timer interval: 0 read timer interval: 200 output: mmap() Events: ust* (type: tracepoint) [enabled] ust_tests_hello:tptest_sighandler (type: tracepoint) [enabled] ust_tests_hello:tptest (type: tracepoint) [enabled] lttng enable-event u* -u -s mysession --tracepoint 0 UST event u* created in channel channel0 lttng list mysession 0 Tracing session mysession: [inactive] Trace path: /home/user/lttng-traces/mysession-20120314-132824 === Domain: UST global === Channels: ------------- - mychannel: [enabled] Attributes: overwrite mode: 1 subbufers size: 16384 number of subbufers: 4 switch timer interval: 100 read timer interval: 200 output: mmap() Events: ust* (type: tracepoint) [enabled] - mychannel2: [enabled] Attributes: overwrite mode: 0 subbufers size: 32768 number of subbufers: 2 switch timer interval: 100 read timer interval: 200 output: mmap() Events: * (type: tracepoint) [enabled] - channel0: [enabled] Attributes: overwrite mode: 0 subbufers size: 262144 number of subbufers: 4 switch timer interval: 0 read timer interval: 200 output: mmap() Events: u* (type: tracepoint) [enabled] ust* (type: tracepoint) [enabled] ust_tests_hello:tptest_sighandler (type: tracepoint) [enabled] ust_tests_hello:tptest (type: tracepoint) [enabled] lttng enable-event myevent1 -u -s mysession --loglevel TRACE_WARNING 0 UST event myevent1 created in channel channel0 lttng list mysession 0 Tracing session mysession: [inactive] Trace path: /home/user/lttng-traces/mysession-20120314-132824 === Domain: UST global === Channels: ------------- - mychannel: [enabled] Attributes: overwrite mode: 1 subbufers size: 16384 number of subbufers: 4 switch timer interval: 100 read timer interval: 200 output: mmap() Events: ust* (type: tracepoint) [enabled] - mychannel2: [enabled] Attributes: overwrite mode: 0 subbufers size: 32768 number of subbufers: 2 switch timer interval: 100 read timer interval: 200 output: mmap() Events: * (type: tracepoint) [enabled] - channel0: [enabled] Attributes: overwrite mode: 0 subbufers size: 262144 number of subbufers: 4 switch timer interval: 0 read timer interval: 200 output: splice() Events: myevent1 (loglevel: TRACE_WARNING (4)) (type: tracepoint) [enabled] u* (type: tracepoint) [enabled] ust* (type: tracepoint) [enabled] ust_tests_hello:tptest_sighandler (type: tracepoint) [enabled] ust_tests_hello:tptest (type: tracepoint) [enabled] lttng enable-event myevent2 -u -s mysession --loglevel-only TRACE_DEBUG_FUNCTION 0 UST event myevent2 created in channel channel0 lttng list mysession 0 Tracing session mysession: [inactive] Trace path: /home/user/lttng-traces/mysession-20120314-132824 === Domain: UST global === Channels: ------------- - mychannel: [enabled] Attributes: overwrite mode: 1 subbufers size: 16384 number of subbufers: 4 switch timer interval: 100 read timer interval: 200 output: mmap() Events: ust* (type: tracepoint) [enabled] - mychannel2: [enabled] Attributes: overwrite mode: 0 subbufers size: 32768 number of subbufers: 2 switch timer interval: 100 read timer interval: 200 output: mmap() Events: * (type: tracepoint) [enabled] - channel0: [enabled] Attributes: overwrite mode: 0 subbufers size: 262144 number of subbufers: 4 switch timer interval: 0 read timer interval: 200 output: splice() Events: myevent2 (loglevel: TRACE_DEBUG_FUNCTION (12)) (type: tracepoint) [enabled] myevent1 (loglevel: TRACE_WARNING (4)) (type: loglevel) [enabled] u* (type: tracepoint) [enabled] ust* (type: tracepoint) [enabled] ust_tests_hello:tptest_sighandler (type: tracepoint) [enabled] ust_tests_hello:tptest (type: tracepoint) [enabled] lttng enable-event myevent0 -u -s mysession -c mychannel --loglevel-only TRACE_DEBUG_FUNCTION 0 UST event myevent0 created in channel mychannel lttng list mysession 0 Tracing session mysession: [inactive] Trace path: /home/user/lttng-traces/mysession-20120314-132824 === Domain: UST global === Channels: ------------- - mychannel: [enabled] Attributes: overwrite mode: 1 subbufers size: 16384 number of subbufers: 4 switch timer interval: 100 read timer interval: 200 output: mmap() Events: myevent0 (loglevel: TRACE_DEBUG_FUNCTION (12)) (type: tracepoint) [enabled] ust* (type: tracepoint) [enabled] - mychannel2: [enabled] Attributes: overwrite mode: 0 subbufers size: 32768 number of subbufers: 2 switch timer interval: 100 read timer interval: 200 output: mmap() Events: * (type: tracepoint) [enabled] - channel0: [enabled] Attributes: overwrite mode: 0 subbufers size: 262144 number of subbufers: 4 switch timer interval: 0 read timer interval: 200 output: splice() Events: myevent2 (loglevel: TRACE_DEBUG_FUNCTION (12)) (type: tracepoint) [enabled] myevent1 (loglevel: TRACE_WARNING (4)) (type: loglevel) [enabled] u* (type: tracepoint) [enabled] ust* (type: tracepoint) [enabled] ust_tests_hello:tptest_sighandler (type: tracepoint) [enabled] ust_tests_hello:tptest (type: tracepoint) [enabled]