1
####################################################################
2
# Copyright (c) 2012 Ericsson
4
# All rights reserved. This program and the accompanying materials are
5
# made available under the terms of the Eclipse Public License v1.0 which
6
# accompanies this distribution, and is available at
7
# http://www.eclipse.org/legal/epl-v10.html
10
# Bernd Hufmann - Initial API and implementation
11
####################################################################
12
####################################################################
13
# Scenario: Test lttng not installed
14
####################################################################
24
<COMMAND_ERROR_OUTPUT>
26
</COMMAND_ERROR_OUTPUT>
30
####################################################################
31
# Scenario: Test lttng version
32
####################################################################
42
lttng version 2.1.0 - Basse Messe
43
Web site: http://lttng.org/
45
lttng is free software and under the GPL license and part LGPL
49
####################################################################
50
# Scenario: Test lttng version
52
####################################################################
54
LttngVersionWithPrompt
62
Prompt> lttng version 2.0.0 - Annedd'ale
63
Web site: http://lttng.org/
65
lttng is free software and under the GPL license and part LGPL
69
####################################################################
70
# Scenario: Test lttng version (unsupported version)
71
####################################################################
73
LttngUnsupportedVersion
81
lttng version 200.0.0 - Annedd'ale
82
Web site: http://lttng.org/
84
lttng is free software and under the GPL license and part LGPL
89
####################################################################
90
# Scenario: Test lttng version (noversion)
91
####################################################################
101
Web site: http://lttng.org/
103
lttng is free software and under the GPL license and part LGPL
107
####################################################################
108
# Scenario: Test no sessions available
109
####################################################################
119
Currently no available tracing session
123
####################################################################
124
# Scenario: Test get sessions
125
####################################################################
135
Available tracing sessions:
136
1) mysession1 (/home/user/lttng-traces/mysession1-20120123-083928) [inactive]
137
2) mysession (/home/user/lttng-traces/mysession-20120123-083318) [inactive]
139
Use lttng list <session_name> for more details
143
####################################################################
144
# Scenario: Test lttng list <name> where session doesn't exist
145
####################################################################
147
GetSessionNameNotExist
155
Session test not found
156
<COMMAND_ERROR_OUTPUT>
157
Error: Session name not found
158
</COMMAND_ERROR_OUTPUT>
162
####################################################################
163
# Scenario: Test lttng -vvv list <name> where session doesn't exist
164
####################################################################
166
GetSessionNameNotExistVerbose
174
DEBUG2: Session name: test [in cmd_list() at commands/list.c:618]
175
DEBUG1: Session count 1 [in list_sessions() at commands/list.c:485]
176
<COMMAND_ERROR_OUTPUT>
177
Error: Session 'test' not found
179
</COMMAND_ERROR_OUTPUT>
180
DEBUG1: Clean exit [in clean_exit() at lttng.c:165]
184
####################################################################
185
# Scenario: Test lttng list with garbage output
186
####################################################################
196
asdfaereafsdcv 12333456434&*89**(())(^%$*
197
@#$%^&*()@#$%^&*()0834523094578kj;djkfs
198
a;sdf094v5u dsafj;sd9
202
####################################################################
203
# Scenario: Test lttng list <name> with sample outputs
204
####################################################################
214
Tracing session mysession: [active]
215
Trace path: /home/user/lttng-traces/mysession-20120129-084256
217
=== Domain: Kernel ===
221
- channel0: [enabled]
225
subbufers size: 262144
226
number of subbufers: 4
227
switch timer interval: 0
228
read timer interval: 200
232
block_rq_remap (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled]
233
block_bio_remap (loglevel: TRACE_EMERG (0)) (type: tracepoint) [disabled]
235
- channel1: [disabled]
239
subbufers size: 524288
240
number of subbufers: 4
241
switch timer interval: 100
242
read timer interval: 400
248
=== Domain: UST global ===
252
- mychannel1: [disabled]
257
number of subbufers: 8
258
switch timer interval: 200
259
read timer interval: 100
265
- channel0: [enabled]
270
number of subbufers: 4
271
switch timer interval: 0
272
read timer interval: 200
276
ust_tests_hello:tptest_sighandler (loglevel: TRACE_DEBUG_LINE (13)) (type: tracepoint) [disabled]
277
* (type: tracepoint) [enabled]
281
lttng list mysession1
287
Tracing session mysession1: [inactive]
288
Trace path: /home/user/lttng-traces/mysession1-20120203-133225
294
####################################################################
295
# Scenario: Test "lttng list -k" with sample output
296
####################################################################
308
sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint)
309
sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint)
310
sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint)
315
####################################################################
316
# Scenario: Test "lttng list -k" with no kernel and no session daemon
317
####################################################################
327
Spawning session daemon
328
<COMMAND_ERROR_OUTPUT>
329
Error: Unable to list kernel events
330
</COMMAND_ERROR_OUTPUT>
334
####################################################################
335
# Scenario: Test "lttng list -k" with no kernel and with session daemon
336
####################################################################
346
<COMMAND_ERROR_OUTPUT>
347
Error: Unable to list kernel events
348
</COMMAND_ERROR_OUTPUT>
352
####################################################################
353
# Scenario: Test "lttng list -k" with no kernel, with session daemon and verbose
354
####################################################################
356
ListWithNoKernelVerbose
364
DEBUG2: Session name: (null) [in cmd_list() at commands/list.c:618]
365
DEBUG1: Getting kernel tracing events [in list_kernel_events() at commands/list.c:309]
366
<COMMAND_ERROR_OUTPUT>
367
Error: Unable to list kernel events
368
</COMMAND_ERROR_OUTPUT>
369
DEBUG1: Clean exit [in clean_exit() at lttng.c:165]
373
####################################################################
374
# Scenario: Test "lttng list -u" with sample output
375
####################################################################
388
PID: 9379 - Name: /home/user/git/lttng-ust/tests/hello.cxx/.libs/lt-hello
389
ust_tests_hello:tptest_sighandler (loglevel: TRACE_DEBUG_MODULE (10)) (type: tracepoint)
390
ust_tests_hello:tptest (loglevel: TRACE_INFO (6)) (type: tracepoint)
392
PID: 4852 - Name: /home/user/git/lttng-ust/tests/hello.cxx/.libs/lt-hello
393
ust_tests_hello:tptest_sighandler (loglevel: TRACE_WARNING (4)) (type: tracepoint)
394
ust_tests_hello:tptest (loglevel: TRACE_DEBUG_FUNCTION (12)) (type: tracepoint)
399
####################################################################
400
# Scenario: Test "lttng list -u" with no UST provider available
401
####################################################################
418
####################################################################
419
# Scenario: Test "lttng list -u" with no UST available (LTTng 2.0.x)
420
####################################################################
437
####################################################################
438
# Scenario: Test "lttng list -u" with no UST available and no session daemon
439
####################################################################
449
Spawning a session daemon
450
<COMMAND_ERROR_OUTPUT>
451
Error: Unable to list UST events: Listing UST events failed
453
</COMMAND_ERROR_OUTPUT>
457
####################################################################
458
# Scenario: Test "lttng list -k" with no kernel and with session daemon
459
####################################################################
469
<COMMAND_ERROR_OUTPUT>
470
Error: Unable to list UST events: Listing UST events failed
472
</COMMAND_ERROR_OUTPUT>
476
####################################################################
477
# Scenario: Test "lttng list -u" with no kernel, with session daemon and verbose
478
####################################################################
482
lttng -vvv list -u -f
488
DEBUG2: Session name: (null) [in cmd_list() at commands/list.c:618]
489
DEBUG1: Getting kernel tracing events [in list_kernel_events() at commands/list.c:309]
490
Spawning a session daemon
491
<COMMAND_ERROR_OUTPUT>
492
Error: Unable to list UST events: Listing UST events failed
494
</COMMAND_ERROR_OUTPUT>
495
DEBUG1: Clean exit [in clean_exit() at lttng.c:165]
500
####################################################################
501
# Scenario: Test "lttng list -u -f" with sample output (version 2.1.0)
502
####################################################################
515
PID: 9379 - Name: /home/user/git/lttng-ust/tests/hello.cxx/.libs/lt-hello
516
ust_tests_hello:tptest_sighandler (loglevel: TRACE_DEBUG_MODULE (10)) (type: tracepoint)
517
ust_tests_hello:tptest (loglevel: TRACE_INFO (6)) (type: tracepoint)
518
field: doublefield (float)
519
field: floatfield (float)
520
field: stringfield (string)
522
PID: 4852 - Name: /home/user/git/lttng-ust/tests/hello.cxx/.libs/lt-hello
523
ust_tests_hello:tptest_sighandler (loglevel: TRACE_WARNING (4)) (type: tracepoint)
524
ust_tests_hello:tptest (loglevel: TRACE_DEBUG_FUNCTION (12)) (type: tracepoint)
525
field: doublefield (float)
526
field: floatfield (float)
527
field: stringfield (string)
533
####################################################################
534
# Scenario: Test "lttng create <session>
535
####################################################################
539
lttng create mysession2
545
Session mysession2 created.
546
Traces will be written in /home/user/lttng-traces/mysession2-20120209-095418
550
####################################################################
551
# Scenario: Test "lttng create <session>
552
####################################################################
554
CreateSessionWithPrompt
556
lttng create mysession2
562
Prompt> Session mysession2 created.
563
Traces will be written in /home/user/lttng-traces/mysession2-20120209-095418
567
####################################################################
568
# Scenario: Test "lttng create <session> with different variants
570
####################################################################
572
CreateSessionVariants
574
lttng create alreadyExist
580
<COMMAND_ERROR_OUTPUT>
581
Error: Session name already exist
582
</COMMAND_ERROR_OUTPUT>
586
lttng create "session with spaces"
592
Session session with spaces created.
593
Traces will be written in /home/user/lttng-traces/session with spaces-20120209-095418
597
lttng create wrongName
603
Session auto created.
604
Traces will be written in /home/user/lttng-traces/auto-20120209-095418
608
lttng create wrongPath -o /home/user/hallo
614
Session wrongPath created.
615
Traces will be written in /home/user/lttng-traces/wrongPath-20120209-095418
619
lttng create pathWithSpaces -o "/home/user/hallo user/here"
625
Session pathWithSpaces created.
626
Traces will be written in /home/user/hallo user/here/pathWithSpaces-20120209-095418
630
####################################################################
631
# Scenario: Test "lttng destroy <session>
632
####################################################################
637
lttng destroy mysession2
643
Session mysession2 destroyed.
647
####################################################################
648
# Scenario: Test "lttng -vvv destroy <session>"
649
####################################################################
652
DestroySessionVerbose
654
lttng -vvv destroy mysession2
660
DEBUG2: Config file path found: /home/eedbhu [in get_session_name() at utils.c:98]
661
DEBUG1: Session name found: mysession2 [in get_session_name() at utils.c:99]
662
Session mysession2 destroyed at /home/eedbhu
667
####################################################################
668
# Scenario: Test "lttng enable-channel ..." with different inputs
669
####################################################################
674
lttng enable-channel mychannel0,mychannel1 -k -s mysession2 --overwrite --subbuf-size 16384 --num-subbuf 2 --switch-timer 200 --read-timer 100 -C 0 -W 10
680
Kernel channel mychannel0 enabled for session mysession2
681
Kernel channel mychannel1 enabled for session mysession2
685
lttng enable-channel mychannel0,mychannel1 -k -s mysession2 --overwrite --subbuf-size 16384 --num-subbuf 2 --switch-timer 200 --read-timer 100
691
Kernel channel mychannel0 enabled for session mysession2
692
Kernel channel mychannel1 enabled for session mysession2
696
lttng enable-channel ustChannel -u -s mysession2 --overwrite --subbuf-size 32768 --num-subbuf 1 --switch-timer 100 --read-timer 200 -C 0 -W 20
702
UST channel channel0 enabled for session mysession2
706
lttng enable-channel ustChannel -u -s mysession2 --overwrite --subbuf-size 32768 --num-subbuf 1 --switch-timer 100 --read-timer 200
712
UST channel channel0 enabled for session mysession2
716
lttng enable-channel ustChannel -u -s mysession2 --overwrite --subbuf-size 32768 --num-subbuf 1 --switch-timer 100 --read-timer 200 --buffers-uid -C 0 -W 20
722
UST channel channel0 enabled for session mysession2
726
lttng enable-channel ustChannel -u -s mysession2 --overwrite --buffers-pid
732
UST channel ustChannel enabled for session mysession2
736
lttng enable-channel ustChannel -u -s mysession2 --overwrite --subbuf-size 32768 --num-subbuf 1 --switch-timer 100 --read-timer 200 --buffers-uid
742
UST channel channel0 enabled for session mysession2
747
lttng enable-channel mychannel0,mychannel1 -k -s mysession2
753
Kernel channel mychannel0 enabled for session mysession2
754
Kernel channel mychannel1 enabled for session mysession2
758
lttng enable-channel ustChannel -u -s mysession2
764
UST channel mychannel0 enabled for session mysession2
768
lttng disable-channel mychannel0,mychannel1 -k -s mysession2
774
Kernel channel mychannel0 disabled for session mysession2
775
Kernel channel mychannel1 disabled for session mysession2
779
lttng disable-channel ustChannel -u -s mysession2
785
UST channel mychannel0 enabled for session mysession2
790
####################################################################
791
# Scenario: Test "lttng enable-events ..." with different inputs
792
####################################################################
796
# Tracepoint test cases
799
lttng enable-event block_rq_remap,block_bio_remap,softirq_entry -k -s mysession2 --tracepoint
805
kernel event block_rq_remap created in channel channel0
806
kernel event block_bio_remap created in channel channel0
807
kernel event softirq_entry created in channel channel0
811
lttng enable-event -a -k -s mysession2 -c mychannel --tracepoint
817
All kernel tracepoints are enabled in channel channel0
821
lttng enable-event ust_tests_hello:tptest_sighandler -u -s mysession2 -c mychannel --tracepoint
827
UST event ust_tests_hello:tptest_sighandler created in channel mychannel
831
lttng enable-event ust_tests_hello:tptest_sighandler -u -s mysession2 -c mychannel --tracepoint --filter 'intfield==10'
837
UST event ust_tests_hello:tptest_sighandler created in channel mychannel
841
lttng enable-event -a -u -s mysession2 -c mychannel --tracepoint
847
All UST tracepoints are enabled in channel mychannel
853
lttng enable-event -a -k -s mysession2 --syscall
859
All kernel system calls are enabled in channel channel0
863
lttng enable-event -a -k -s mysession2 -c mychannel --syscall
869
All kernel system calls are enabled in channel mychannel
872
# dynamic probe/function probe test cases
875
lttng enable-event myevent0 -k -s mysession2 --function 0xc0101340
881
kernel event myevent0 created in channel mychannel
885
lttng enable-event myevent1 -k -s mysession2 -c mychannel --probe init_post
891
kernel event myevent1 created in channel mychannel
894
# log level test cases
897
lttng enable-event myevent4 -u -s mysession2 --loglevel-only TRACE_DEBUG
903
UST event myevent4 created in channel channel0
907
lttng enable-event myevent5 -u -s mysession2 -c mychannel --loglevel TRACE_DEBUG_FUNCTION
913
UST event myevent5 created in channel mychannel
918
####################################################################
919
# Scenario: Test "lttng add-context -h" and lttng add-context ..." with different inputs
920
####################################################################
932
usage: lttng add-context -t TYPE
934
If no channel and no event is given (-c/-e), the context
935
will be added to all events and all channels.
936
Otherwise the context will be added only to the channel (-c)
937
and/or event (-e) indicated.
938
Exactly one domain (-k/--kernel or -u/--userspace) must be specified.
941
-h, --help Show this help
942
--list-options Simple listing of options
943
-s, --session NAME Apply to session name
944
-c, --channel NAME Apply to channel
945
-e, --event NAME Apply to event
946
-k, --kernel Apply to the kernel tracer
947
-u, --userspace Apply to the user-space tracer
948
-t, --type TYPE Context type. You can repeat that option on
949
the command line to specify multiple contexts at once.
950
(--kernel preempts --userspace)
951
TYPE can be one of the strings below:
952
pid, procname, prio, nice, vpid, tid, pthread_id,
953
vtid, ppid, vppid, perf:cpu-cycles, perf:cycles
955
This command will add the context information 'prio' and two perf
956
counters (hardware branch misses and cache misses), to all events
957
in the trace data output:
958
# lttng add-context -k -t prio -t perf:branch-misses -t perf:cache-misses
963
lttng add-context -s mysession2 -c mychannel -e ust_tests_hello:tptest_sighandler -u -t prio -t pid
969
UST context prio added to event ust_tests_hello:tptest_sighandle channel mychannel
970
UST context pid added to event sched_kthread_stop_ret channel mychannel
984
usage: lttng add-context -t TYPE
986
If no channel and no event is given (-c/-e), the context
987
will be added to all events and all channels.
988
Otherwise the context will be added only to the channel (-c)
989
and/or event (-e) indicated.
990
Exactly one domain (-k/--kernel or -u/--userspace) must be specified.
993
-h, --help Show this help
994
--list-options Simple listing of options
995
-s, --session NAME Apply to session name
996
-c, --channel NAME Apply to channel
997
-e, --event NAME Apply to event
998
-k, --kernel Apply to the kernel tracer
999
-u, --userspace Apply to the user-space tracer
1000
-t, --type TYPE Context type. You can repeat that option on
1001
the command line to specify multiple contexts at once.
1002
(--kernel preempts --userspace)
1003
TYPE can be one of the strings below:
1004
pid, procname, prio, nice, vpid, tid, pthread_id,
1005
vtid, ppid, vppid, perf:cpu-cycles, perf:cycles
1007
This command will add the context information 'prio' and two perf
1008
counters (hardware branch misses and cache misses), to all events
1009
in the trace data output:
1010
# lttng add-context -k -t prio -t perf:branch-misses -t perf:cache-misses
1015
lttng add-context -s mysession2 -c mychannel -e ust_tests_hello:tptest_sighandler -u -t prio -t pid
1021
UST context prio added to event ust_tests_hello:tptest_sighandle channel mychannel
1022
UST context pid added to event sched_kthread_stop_ret channel mychannel
1030
lttng calibrate -k --function
1036
Kernel calibration done
1040
lttng calibrate -u --function
1046
Kernel calibration done
1051
####################################################################
1052
# Scenario: Test "lttng create <session> with LTTng 2.1 options
1053
####################################################################
1055
CreateSessionLttng2.1
1058
lttng create mysession -U net://172.0.0.1
1064
Session mysession created.
1065
Traces will be written in net://172.0.0.1
1069
lttng create mysession -U file:///tmp
1075
Session mysession created.
1076
Traces will be written in file:///tmp
1080
lttng create mysession -C tcp://172.0.0.1 -D tcp://172.0.0.1:5343
1086
Session mysession created.
1087
Control URL tcp://172.0.0.1 set for session mysession
1088
Data URL tcp://172.0.0.1:5343 set for session mysession
1092
lttng create mysession -U net://172.0.0.1:1234:2345
1098
Session mysession created.
1099
Traces will be written in net://172.0.0.1:1234:2345
1103
lttng destroy mysession
1109
Session mysession destroyed.
1113
lttng -vvv create mysession -U net://172.0.0.1
1119
DEBUG3: URI string: net://172.0.0.1 [in uri_parse() at uri.c:253]
1120
DEBUG2: IP address resolved to 172.0.0.1 [in set_ip_address() at uri.c:132]
1121
DEBUG3: URI dtype: 1, proto: 1, host: 172.0.0.1, subdir: , ctrl: 0, data: 0 [in uri_parse() at uri.c:467]
1122
DEBUG1: LSM cmd type : 8 [in send_session_msg() at lttng-ctl.c:261]
1123
Session mysession created.
1124
Traces will be written in net://172.0.0.1
1125
DEBUG1: Init config session in /home/bernd [in config_init() at conf.c:294]
1130
####################################################################
1131
# Scenario: Test "lttng -vvv create <session> with LTTng 2.1 options"
1132
####################################################################
1134
CreateSessionLttngVerbose2.1
1136
lttng -vvv create mysession -U net://172.0.0.1
1142
DEBUG3: URI string: net://172.0.0.1 [in uri_parse() at uri.c:253]
1143
DEBUG2: IP address resolved to 172.0.0.1 [in set_ip_address() at uri.c:132]
1144
DEBUG3: URI dtype: 1, proto: 1, host: 172.0.0.1, subdir: , ctrl: 0, data: 0 [in uri_parse() at uri.c:467]
1145
DEBUG1: LSM cmd type : 8 [in send_session_msg() at lttng-ctl.c:261]
1146
Session mysession created.
1147
Traces will be written in net://172.0.0.1
1148
DEBUG1: Init config session in /home/bernd [in config_init() at conf.c:294]
1152
lttng -vvv destroy mysession
1158
Session mysession destroyed.
1162
####################################################################
1163
# Scenario: Test "lttng create <session> --snapshot (LTTng 2.3)
1164
####################################################################
1166
CreateSessionSnapshot
1168
lttng create mysession --snapshot
1174
Session mysession created.
1175
Default snapshot output set to: /home/user/lttng-traces/mysession-20130913-141651
1176
Snapshot mode set. Every channel enabled for that session will be set in overwrite mode and mmap output.
1178
#------------------------------------------------------------------------------
1180
lttng snapshot list-output -s mysession
1186
Snapshot output list for session mysession
1187
[1] snapshot-1: /home/user/lttng-traces/mysession-20130913-141651
1189
#------------------------------------------------------------------------------
1197
1) mysession () [inactive snapshot]
1200
#------------------------------------------------------------------------------
1202
lttng snapshot record -s mysession
1208
Snapshot recorded successfully for session mysession
1210
#------------------------------------------------------------------------------
1212
lttng destroy mysession
1218
Session mysession destroyed.
1222
####################################################################
1223
# Scenario: Test "lttng create <session> --snapshot -U <URL> (LTTng 2.3)
1224
####################################################################
1226
CreateSessionStreamedSnapshot
1228
lttng create mysession --snapshot -U net://172.0.0.1
1234
Session mysession created.
1235
Default snapshot output set to: net://172.0.0.1
1236
Snapshot mode set. Every channel enabled for that session will be set in overwrite mode and mmap output.
1238
#------------------------------------------------------------------------------
1240
lttng snapshot list-output -s mysession
1246
Snapshot output list for session mysession
1247
[2] snapshot-2: net4://172.0.0.1:5342/
1249
#------------------------------------------------------------------------------
1257
1) mysession () [inactive snapshot]
1260
#------------------------------------------------------------------------------
1262
lttng snapshot record -s mysession
1268
Snapshot recorded successfully for session mysession
1270
#------------------------------------------------------------------------------
1272
lttng destroy mysession
1278
Session mysession destroyed.
1282
####################################################################
1283
# Scenario: Test "lttng create <session> --snapshot (LTTng 2.3)
1284
####################################################################
1286
CreateSessionSnapshotErrors
1288
lttng snapshot list-output -s blabla
1294
<COMMAND_ERROR_OUTPUT>
1295
Error: Session name not found
1296
</COMMAND_ERROR_OUTPUT>
1298
#------------------------------------------------------------------------------
1299
#next is not an error case but good to be tested
1307
1) mysession () [active snapshot]
1310
#------------------------------------------------------------------------------
1312
lttng snapshot record -s blabla
1318
<COMMAND_ERROR_OUTPUT>
1319
Error: Session name not found
1320
</COMMAND_ERROR_OUTPUT>
1322
#------------------------------------------------------------------------------
1324
lttng snapshot record -s mysession
1330
<COMMAND_ERROR_OUTPUT>
1331
Error: Session needs to be started once
1332
</COMMAND_ERROR_OUTPUT>
1337
####################################################################
1338
# Scenario: Test "lttng create <session> --live [USEC] (LTTng 2.4)
1339
####################################################################
1343
lttng create mysession --live -U net://127.0.0.1
1349
Session mysession created.
1350
Traces will be written in net://127.0.0.1
1351
Live timer set to 1000000 usec
1353
#------------------------------------------------------------------------------
1361
Available tracing sessions:
1362
1) mysession (net4://127.0.0.1:5342/ [data: 5343]) [inactive]
1364
Use lttng list <session_name> for more details
1366
#------------------------------------------------------------------------------
1368
lttng destroy mysession
1374
Session mysession destroyed.
1378
####################################################################
1379
# Scenario: Test errors for "lttng create <session> --live [USEC] (LTTng 2.4)
1380
####################################################################
1382
CreateSessionLiveErrors
1384
lttng create mysession --live --snapshot
1390
<COMMAND_ERROR_OUTPUT>
1391
Error: Snapshot and live modes are mutually exclusive.
1392
Error: Command error
1393
</COMMAND_ERROR_OUTPUT>
1395
#------------------------------------------------------------------------------
1397
lttng create mysession --live -U blah
1403
<COMMAND_ERROR_OUTPUT>
1404
Error: URI parse unknown protocol blah
1405
Error: Unable to parse the URL blah
1406
Error: Invalid parameter
1407
</COMMAND_ERROR_OUTPUT>
1409
#------------------------------------------------------------------------------
1411
lttng create mysession --live -C net://127.0.0.1
1417
<COMMAND_ERROR_OUTPUT>
1418
Error: You need both control and data URL.
1419
Error: Command error
1420
</COMMAND_ERROR_OUTPUT>
1423
####################################################################
1424
# Scenario: Test "lttng create <session> --snapshot (LTTng 2.5)
1425
####################################################################
1427
CreateSessionSnapshot2.5
1429
lttng create mysession --snapshot
1435
Session mysession created.
1436
Default snapshot output set to: /home/user/lttng-traces/mysession-20130913-141651
1437
Snapshot mode set. Every channel enabled for that session will be set in overwrite mode and mmap output.
1439
#------------------------------------------------------------------------------
1441
lttng snapshot list-output -s mysession
1447
Snapshot output list for session mysession
1448
[1] snapshot-1: /home/user/lttng-traces/mysession-20130913-141651 (max-size: 0)
1450
#------------------------------------------------------------------------------
1458
1) mysession () [inactive snapshot]
1461
#------------------------------------------------------------------------------
1463
lttng snapshot record -s mysession
1469
Snapshot recorded successfully for session mysession
1471
#------------------------------------------------------------------------------
1473
lttng destroy mysession
1479
Session mysession destroyed.