e88b05f3277a8bd5a5eedf7d45d5807641ecff20
[deliverable/tracecompass.git] / lttng / org.eclipse.tracecompass.lttng2.control.ui.tests / testfiles / LTTngServiceMiTest.cfg
1 ####################################################################
2 # Copyright (c) 2014, 2015 Ericsson
3 #
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
8 #
9 # Contributors:
10 # Jonathan Rajotte - Initial API and implementation
11 # Bernd Hufmann - Added new test cases
12 ####################################################################
13 ####################################################################
14 # Scenario: Test lttng not installed
15 ####################################################################
16 <SCENARIO>
17 LttngNotInstalled
18 <COMMAND_INPUT>
19 lttng --mi xml list
20 </COMMAND_INPUT>
21 <COMMAND_RESULT>
22 1
23 </COMMAND_RESULT>
24 <COMMAND_OUTPUT>
25 <COMMAND_ERROR_OUTPUT>
26 Command not found
27 </COMMAND_ERROR_OUTPUT>
28 </COMMAND_OUTPUT>
29 </SCENARIO>
30
31 ####################################################################
32 # Scenario: Test lttng version
33 ####################################################################
34 <SCENARIO>
35 LttngVersion
36 <COMMAND_INPUT>
37 lttng version
38 </COMMAND_INPUT>
39 <COMMAND_RESULT>
40 0
41 </COMMAND_RESULT>
42 <COMMAND_OUTPUT>
43 lttng version 2.1.0 - Basse Messe
44 Web site: http://lttng.org/
45
46 lttng is free software and under the GPL license and part LGPL
47 </COMMAND_OUTPUT>
48 </SCENARIO>
49
50 ####################################################################
51 # Scenario: Test lttng version
52 # output with prompt
53 ####################################################################
54 <SCENARIO>
55 LttngVersionWithPrompt
56 <COMMAND_INPUT>
57 lttng version
58 </COMMAND_INPUT>
59 <COMMAND_RESULT>
60 0
61 </COMMAND_RESULT>
62 <COMMAND_OUTPUT>
63 Prompt> lttng version 2.0.0 - Annedd'ale
64 Web site: http://lttng.org/
65
66 lttng is free software and under the GPL license and part LGPL
67 </COMMAND_OUTPUT>
68 </SCENARIO>
69
70 ####################################################################
71 # Scenario: Test lttng version (unsupported version)
72 ####################################################################
73 <SCENARIO>
74 LttngUnsupportedVersion
75 <COMMAND_INPUT>
76 lttng version
77 </COMMAND_INPUT>
78 <COMMAND_RESULT>
79 0
80 </COMMAND_RESULT>
81 <COMMAND_OUTPUT>
82 lttng version 200.0.0 - Annedd'ale
83 Web site: http://lttng.org/
84
85 lttng is free software and under the GPL license and part LGPL
86 </COMMAND_OUTPUT>
87 </SCENARIO>
88
89
90 ####################################################################
91 # Scenario: Test lttng version (noversion)
92 ####################################################################
93 <SCENARIO>
94 LttngNoVersion
95 <COMMAND_INPUT>
96 lttng version
97 </COMMAND_INPUT>
98 <COMMAND_RESULT>
99 0
100 </COMMAND_RESULT>
101 <COMMAND_OUTPUT>
102 Web site: http://lttng.org/
103
104 lttng is free software and under the GPL license and part LGPL
105 </COMMAND_OUTPUT>
106 </SCENARIO>
107
108 ####################################################################
109 # Scenario: Test lttng version (compiled from source)
110 ####################################################################
111 <SCENARIO>
112 LttngVersionCompiled
113 <COMMAND_INPUT>
114 lttng --mi xml version
115 </COMMAND_INPUT>
116 <COMMAND_RESULT>
117 0
118 </COMMAND_RESULT>
119 <COMMAND_OUTPUT>
120 <?xml version="1.0" encoding="UTF-8"?>
121 <command>
122 <name>version</name>
123 <output>
124 <version>
125 <string>2.5.0-rc2</string>
126 <major>2</major>
127 <minor>5</minor>
128 <commit>v2.5.0-rc2-99-g234170a</commit>
129 <patchLevel>0</patchLevel>
130 <name>Fumisterie</name>
131 <description>The Fumisterie is a beer whose style is at the confluence of English and German ales. On the palate, it is full-bodied, malty and slightly caramelized. The organic hemp seeds incorporated during the brewing gives it a unique and original taste. The hop flavour comes through delicately in the after taste.</description>
132 <url>http://lttng.org</url>
133 <license>lttng is free software and under the GPL license and part LGPL</license>
134 </version>
135 </output>
136 </command>
137 </COMMAND_OUTPUT>
138 </SCENARIO>
139
140 ####################################################################
141 # Scenario: Test no sessions available
142 ####################################################################
143 <SCENARIO>
144 NoSessionAvailable
145 <COMMAND_INPUT>
146 lttng --mi xml list
147 </COMMAND_INPUT>
148 <COMMAND_RESULT>
149 0
150 </COMMAND_RESULT>
151 <COMMAND_OUTPUT>
152 <?xml version="1.0" encoding="UTF-8"?>
153 <command><name>list</name><output><sessions/></output></command>
154 </COMMAND_OUTPUT>
155 </SCENARIO>
156
157 ####################################################################
158 # Scenario: Test get sessions
159 ####################################################################
160 <SCENARIO>
161 GetSessionNames1
162 <COMMAND_INPUT>
163 lttng --mi xml list
164 </COMMAND_INPUT>
165 <COMMAND_RESULT>
166 0
167 </COMMAND_RESULT>
168 <COMMAND_OUTPUT>
169 <?xml version="1.0" encoding="UTF-8"?>
170 <command>
171 <name>list</name>
172 <output>
173 <sessions>
174 <session>
175 <name>mysession1</name>
176 <path>home/user/lttng-traces/mysession1-20120123-083928</path>
177 <enabled>false</enabled>
178 <snapshot_mode>0</snapshot_mode>
179 <live_timer_interval>0</live_timer_interval>
180 </session>
181 <session>
182 <name>mysession</name>
183 <path>home/user/lttng-traces/mysession-20120123-083318</path>
184 <enabled>false</enabled>
185 <snapshot_mode>0</snapshot_mode>
186 <live_timer_interval>0</live_timer_interval>
187 </session>
188 </sessions>
189 </output>
190 </command>
191 </COMMAND_OUTPUT>
192 </SCENARIO>
193
194 ####################################################################
195 # Scenario: Test get sessions with tracing group
196 ####################################################################
197 <SCENARIO>
198 GetSessionWithTracingGroup
199 <COMMAND_INPUT>
200 lttng -g group --mi xml list
201 </COMMAND_INPUT>
202 <COMMAND_RESULT>
203 0
204 </COMMAND_RESULT>
205 <COMMAND_OUTPUT>
206 <?xml version="1.0" encoding="UTF-8"?>
207 <command>
208 <name>list</name>
209 <output>
210 <sessions>
211 <session>
212 <name>mysession1</name>
213 <path>home/user/lttng-traces/mysession1-20120123-083928</path>
214 <enabled>false</enabled>
215 <snapshot_mode>0</snapshot_mode>
216 <live_timer_interval>0</live_timer_interval>
217 </session>
218 <session>
219 <name>mysession</name>
220 <path>home/user/lttng-traces/mysession-20120123-083318</path>
221 <enabled>false</enabled>
222 <snapshot_mode>0</snapshot_mode>
223 <live_timer_interval>0</live_timer_interval>
224 </session>
225 </sessions>
226 </output>
227 </command>
228 </COMMAND_OUTPUT>
229 </SCENARIO>
230
231
232 ####################################################################
233 # Scenario: Test lttng list <name> where session doesn't exist
234 ####################################################################
235 <SCENARIO>
236 GetSessionNameNotExist
237 <COMMAND_INPUT>
238 lttng --mi xml list test
239 </COMMAND_INPUT>
240 <COMMAND_RESULT>
241 1
242 </COMMAND_RESULT>
243 <COMMAND_OUTPUT>
244 <?xml version="1.0" encoding="UTF-8"?>
245 <command><name>list</name><output><sessions/></output></command>
246 <COMMAND_ERROR_OUTPUT>
247 Error: Session 'test' not found
248 Error: Command error
249 </COMMAND_ERROR_OUTPUT>
250 </COMMAND_OUTPUT>
251 </SCENARIO>
252
253 ####################################################################
254 # Scenario: Test lttng -vvv list <name> where session doesn't exist
255 ####################################################################
256 <SCENARIO>
257 GetSessionNameNotExistVerbose
258 <COMMAND_INPUT>
259 lttng --mi xml -vvv list test
260 </COMMAND_INPUT>
261 <COMMAND_RESULT>
262 1
263 </COMMAND_RESULT>
264 <COMMAND_OUTPUT>
265 <?xml version="1.0" encoding="UTF-8"?>
266 <command><name>list</name><output><sessions/></output></command>
267 <COMMAND_ERROR_OUTPUT>
268 Error: Session 'test' not found
269 Error: Command error
270 </COMMAND_ERROR_OUTPUT>
271 </COMMAND_OUTPUT>
272 </SCENARIO>
273
274 ####################################################################
275 # Scenario: Test lttng list with garbage output
276 ####################################################################
277 <SCENARIO>
278 GetSessionGarbageOut
279 <COMMAND_INPUT>
280 lttng --mi xml list
281 </COMMAND_INPUT>
282 <COMMAND_RESULT>
283 0
284 </COMMAND_RESULT>
285 <COMMAND_OUTPUT>
286 asdfaereafsdcv 12333456434&*89**(())(^%$*
287 @#$%^&*()@#$%^&*()0834523094578kj;djkfs
288 a;sdf094v5u dsafj;sd9
289 </COMMAND_OUTPUT>
290 </SCENARIO>
291
292 ####################################################################
293 # Scenario: Test lttng list <name> with sample outputs
294 ####################################################################
295 <SCENARIO>
296 GetSession1
297 <COMMAND_INPUT>
298 lttng --mi xml list mysession
299 </COMMAND_INPUT>
300 <COMMAND_RESULT>
301 0
302 </COMMAND_RESULT>
303 <COMMAND_OUTPUT>
304 <?xml version="1.0" encoding="UTF-8"?>
305 <command>
306 <name>list</name>
307 <output>
308 <sessions>
309 <session>
310 <name>mysession</name>
311 <path>/home/user/lttng-traces/mysession-20120129-084256</path>
312 <enabled>true</enabled>
313 <snapshot_mode>0</snapshot_mode>
314 <live_timer_interval>0</live_timer_interval>
315 <domains>
316 <domain>
317 <type>KERNEL</type>
318 <buffer_type>PER_PID</buffer_type>
319 <channels>
320 <channel>
321 <name>channel0</name>
322 <enabled>true</enabled>
323 <attributes>
324 <overwrite_mode>DISCARD</overwrite_mode>
325 <subbuffer_size>262144</subbuffer_size>
326 <subbuffer_count>4</subbuffer_count>
327 <switch_timer_interval>0</switch_timer_interval>
328 <read_timer_interval>200</read_timer_interval>
329 <output_type>SPLICE</output_type>
330 <tracefile_size>0</tracefile_size>
331 <tracefile_count>0</tracefile_count>
332 <live_timer_interval>0</live_timer_interval>
333 </attributes>
334 <events>
335 <event>
336 <name>block_rq_remap</name>
337 <type>TRACEPOINT</type>
338 <enabled>true</enabled>
339 <filter>false</filter>
340 <loglevel>TRACE_EMERG</loglevel>
341 <loglevel_type>ALL</loglevel_type>
342 <exclusion>false</exclusion>
343 </event>
344 <event>
345 <name>block_bio_remap</name>
346 <type>TRACEPOINT</type>
347 <enabled>false</enabled>
348 <filter>false</filter>
349 <loglevel>TRACE_EMERG</loglevel>
350 <loglevel_type>ALL</loglevel_type>
351 <exclusion>false</exclusion>
352 </event>
353 </events>
354 </channel>
355 <channel>
356 <name>channel1</name>
357 <enabled>false</enabled>
358 <attributes>
359 <overwrite_mode>OVERWRITE</overwrite_mode>
360 <subbuffer_size>524288</subbuffer_size>
361 <subbuffer_count>4</subbuffer_count>
362 <switch_timer_interval>100</switch_timer_interval>
363 <read_timer_interval>400</read_timer_interval>
364 <output_type>SPLICE</output_type>
365 <tracefile_size>0</tracefile_size>
366 <tracefile_count>0</tracefile_count>
367 <live_timer_interval>4294967295</live_timer_interval>
368 </attributes>
369 <events/>
370 </channel>
371 </channels>
372 </domain>
373 <domain>
374 <type>UST</type>
375 <buffer_type>PER_UID</buffer_type>
376 <channels>
377 <channel>
378 <name>mychannel1</name>
379 <enabled>false</enabled>
380 <attributes>
381 <overwrite_mode>OVERWRITE</overwrite_mode>
382 <subbuffer_size>8192</subbuffer_size>
383 <subbuffer_count>8</subbuffer_count>
384 <switch_timer_interval>200</switch_timer_interval>
385 <read_timer_interval>100</read_timer_interval>
386 <output_type>MMAP</output_type>
387 <tracefile_size>0</tracefile_size>
388 <tracefile_count>0</tracefile_count>
389 <live_timer_interval>0</live_timer_interval>
390 </attributes>
391 <events/>
392 </channel>
393 <channel>
394 <name>channel0</name>
395 <enabled>true</enabled>
396 <attributes>
397 <overwrite_mode>DISCARD</overwrite_mode>
398 <subbuffer_size>4096</subbuffer_size>
399 <subbuffer_count>4</subbuffer_count>
400 <switch_timer_interval>0</switch_timer_interval>
401 <read_timer_interval>200</read_timer_interval>
402 <output_type>MMAP</output_type>
403 <tracefile_size>0</tracefile_size>
404 <tracefile_count>0</tracefile_count>
405 <live_timer_interval>0</live_timer_interval>
406 </attributes>
407 <events>
408 <event>
409 <name>ust_tests_hello:tptest_sighandler</name>
410 <type>TRACEPOINT</type>
411 <enabled>false</enabled>
412 <filter>false</filter>
413 <loglevel>TRACE_DEBUG_LINE</loglevel>
414 <loglevel_type>ALL</loglevel_type>
415 <exclusion>false</exclusion>
416 </event>
417 <event>
418 <name>*</name>
419 <type>TRACEPOINT</type>
420 <enabled>true</enabled>
421 <filter>false</filter>
422 <exclusion>false</exclusion>
423 </event>
424 </events>
425 </channel>
426 </channels>
427 </domain>
428 </domains>
429 </session>
430 </sessions>
431 </output>
432 </command>
433 </COMMAND_OUTPUT>
434 <COMMAND_INPUT>
435 lttng --mi xml list mysession1
436 </COMMAND_INPUT>
437 <COMMAND_RESULT>
438 0
439 </COMMAND_RESULT>
440 <COMMAND_OUTPUT>
441 <?xml version="1.0" encoding="UTF-8"?>
442 <command>
443 <name>list</name>
444 <output>
445 <sessions>
446 <session>
447 <name>mysession1</name>
448 <path>/home/user/lttng-traces/mysession1-20120203-133225</path>
449 <enabled>false</enabled>
450 <snapshot_mode>0</snapshot_mode>
451 <live_timer_interval>0</live_timer_interval>
452 <domains/>
453 </session>
454 </sessions>
455 </output>
456 </command>
457 </COMMAND_OUTPUT>
458 </SCENARIO>
459
460 ####################################################################
461 # Scenario: Test lttng list <name> in the presence of filter expressions
462 ####################################################################
463 <SCENARIO>
464 GetSessionFilterExpression
465 <COMMAND_INPUT>
466 lttng --mi xml list mysession
467 </COMMAND_INPUT>
468 <COMMAND_RESULT>
469 0
470 </COMMAND_RESULT>
471 <COMMAND_OUTPUT>
472 <?xml version="1.0" encoding="UTF-8"?>
473 <command>
474 <name>list</name>
475 <output>
476 <sessions>
477 <session>
478 <name>mysession</name>
479 <path>/home/user/lttng-traces/mysession-20120129-084256</path>
480 <enabled>true</enabled>
481 <snapshot_mode>0</snapshot_mode>
482 <live_timer_interval>0</live_timer_interval>
483 <domains>
484 <domain>
485 <type>KERNEL</type>
486 <buffer_type>PER_PID</buffer_type>
487 <channels>
488 <channel>
489 <name>channel0</name>
490 <enabled>true</enabled>
491 <attributes>
492 <overwrite_mode>DISCARD</overwrite_mode>
493 <subbuffer_size>262144</subbuffer_size>
494 <subbuffer_count>4</subbuffer_count>
495 <switch_timer_interval>0</switch_timer_interval>
496 <read_timer_interval>200</read_timer_interval>
497 <output_type>SPLICE</output_type>
498 <tracefile_size>0</tracefile_size>
499 <tracefile_count>0</tracefile_count>
500 <live_timer_interval>0</live_timer_interval>
501 </attributes>
502 <events>
503 <event>
504 <name>block_rq_remap</name>
505 <type>TRACEPOINT</type>
506 <enabled>true</enabled>
507 <filter_expression>foo &gt; 10</filter_expression>
508 <loglevel>TRACE_EMERG</loglevel>
509 <loglevel_type>ALL</loglevel_type>
510 <exclusion>false</exclusion>
511 </event>
512 </events>
513 </channel>
514 </channels>
515 </domain>
516 <domain>
517 <type>UST</type>
518 <buffer_type>PER_UID</buffer_type>
519 <channels>
520 <channel>
521 <name>channel0</name>
522 <enabled>true</enabled>
523 <attributes>
524 <overwrite_mode>DISCARD</overwrite_mode>
525 <subbuffer_size>4096</subbuffer_size>
526 <subbuffer_count>4</subbuffer_count>
527 <switch_timer_interval>0</switch_timer_interval>
528 <read_timer_interval>200</read_timer_interval>
529 <output_type>MMAP</output_type>
530 <tracefile_size>0</tracefile_size>
531 <tracefile_count>0</tracefile_count>
532 <live_timer_interval>0</live_timer_interval>
533 </attributes>
534 <events>
535 <event>
536 <name>ust_tests_hello:tptest_sighandler</name>
537 <type>TRACEPOINT</type>
538 <enabled>false</enabled>
539 <filter_expression>foo &gt; 10</filter_expression>
540 <loglevel>TRACE_DEBUG_LINE</loglevel>
541 <loglevel_type>ALL</loglevel_type>
542 <exclusion>false</exclusion>
543 </event>
544 </events>
545 </channel>
546 </channels>
547 </domain>
548 </domains>
549 </session>
550 </sessions>
551 </output>
552 </command>
553 </COMMAND_OUTPUT>
554 </SCENARIO>
555
556 ####################################################################
557 # Scenario: Test lttng list <name> (with live time interval)
558 ####################################################################
559 <SCENARIO>
560 GetSessionWithLiveInterval
561 <COMMAND_INPUT>
562 lttng --mi xml list mysession
563 </COMMAND_INPUT>
564 <COMMAND_RESULT>
565 0
566 </COMMAND_RESULT>
567 <COMMAND_OUTPUT>
568 <?xml version="1.0" encoding="UTF-8"?>
569 <command>
570 <name>list</name>
571 <output>
572 <sessions>
573 <session>
574 <name>mysession</name>
575 <path>/home/user/lttng-traces/mysession-20120129-084256</path>
576 <enabled>false</enabled>
577 <snapshot_mode>1</snapshot_mode>
578 <live_timer_interval>4294967295</live_timer_interval>
579 <domains>
580 </domains>
581 </session>
582 </sessions>
583 </output>
584 </command>
585 </COMMAND_OUTPUT>
586 #------------------------------------------------------------------------------
587 <COMMAND_INPUT>
588 lttng --mi xml snapshot list-output -s mysession
589 </COMMAND_INPUT>
590 <COMMAND_RESULT>
591 0
592 </COMMAND_RESULT>
593 <COMMAND_OUTPUT>
594 <?xml version="1.0" encoding="UTF-8"?>
595 <command>
596 <name>snapshot</name>
597 <output>
598 <snapshot_action>
599 <name>list-output</name>
600 <output>
601 <session>
602 <name>mysession</name>
603 <snapshots>
604 <snapshot>
605 <id>1</id>
606 <name>snapshot-1</name>
607 <ctrl_url>/home/user/lttng-traces/mysession-20120129-084256</ctrl_url>
608 <data_url/>
609 <max_size>0</max_size>
610 </snapshot>
611 </snapshots>
612 </session>
613 </output>
614 </snapshot_action>
615 </output>
616 <success>true</success>
617 </command>
618 </COMMAND_OUTPUT>
619 #------------------------------------------------------------------------------
620 <COMMAND_INPUT>
621 lttng --mi xml list mysession1
622 </COMMAND_INPUT>
623 <COMMAND_RESULT>
624 0
625 </COMMAND_RESULT>
626 <COMMAND_OUTPUT>
627 <?xml version="1.0" encoding="UTF-8"?>
628 <command>
629 <name>list</name>
630 <output>
631 <sessions>
632 <session>
633 <name>mysession1</name>
634 <path>/home/user/lttng-traces/mysession1-20120129-084256</path>
635 <enabled>true</enabled>
636 <snapshot_mode>0</snapshot_mode>
637 <live_timer_interval>0</live_timer_interval>
638 <domains/>
639 </session>
640 </sessions>
641 </output>
642 </command>
643 </COMMAND_OUTPUT>
644 #------------------------------------------------------------------------------
645 <COMMAND_INPUT>
646 lttng --mi xml list mysession2
647 </COMMAND_INPUT>
648 <COMMAND_RESULT>
649 0
650 </COMMAND_RESULT>
651 <COMMAND_OUTPUT>
652 <?xml version="1.0" encoding="UTF-8"?>
653 <command>
654 <name>list</name>
655 <output>
656 <sessions>
657 <session>
658 <name>mysession2</name>
659 <path>tcp4://172.0.0.1:5342/ [data: 5343]</path>
660 <enabled>false</enabled>
661 <snapshot_mode>0</snapshot_mode>
662 <live_timer_interval>1000000</live_timer_interval>
663 <domains/>
664 </session>
665 </sessions>
666 </output>
667 </command>
668 </COMMAND_OUTPUT>
669
670 </SCENARIO>
671
672
673 ####################################################################
674 # Scenario: Test "lttng list -k" with sample output
675 ####################################################################
676 <SCENARIO>
677 GetKernelProvider1
678 <COMMAND_INPUT>
679 lttng --mi xml list -k
680 </COMMAND_INPUT>
681 <COMMAND_RESULT>
682 0
683 </COMMAND_RESULT>
684 <COMMAND_OUTPUT>
685 <?xml version="1.0" encoding="UTF-8"?>
686 <command>
687 <name>list</name>
688 <output>
689 <domains>
690 <domain>
691 <type>KERNEL</type>
692 <buffer_type>PER_PID</buffer_type>
693 <events>
694 <event>
695 <name>sched_kthread_stop</name>
696 <type>TRACEPOINT</type>
697 <enabled>true</enabled>
698 <filter>false</filter>
699 <loglevel>TRACE_EMERG</loglevel>
700 <loglevel_type>ALL</loglevel_type>
701 <exclusion>false</exclusion>
702 </event>
703 <event>
704 <name>sched_kthread_stop_ret</name>
705 <type>TRACEPOINT</type>
706 <enabled>true</enabled>
707 <filter>false</filter>
708 <loglevel>TRACE_EMERG</loglevel>
709 <loglevel_type>ALL</loglevel_type>
710 <exclusion>false</exclusion>
711 </event>
712 <event>
713 <name>sched_wakeup_new</name>
714 <type>TRACEPOINT</type>
715 <enabled>true</enabled>
716 <filter>false</filter>
717 <loglevel>TRACE_EMERG</loglevel>
718 <loglevel_type>ALL</loglevel_type>
719 <exclusion>false</exclusion>
720 </event>
721 </events>
722 </domain>
723 </domains>
724 </output>
725 </command>
726 </COMMAND_OUTPUT>
727 </SCENARIO>
728
729 ####################################################################
730 # Scenario: Test "lttng list -k" with no kernel and no session daemon
731 ####################################################################
732 <SCENARIO>
733 ListWithNoKernel1
734 <COMMAND_INPUT>
735 lttng --mi xml list -k
736 </COMMAND_INPUT>
737 <COMMAND_RESULT>
738 1
739 </COMMAND_RESULT>
740 <COMMAND_OUTPUT>
741 Spawning session daemon
742 <COMMAND_ERROR_OUTPUT>
743 Error: Unable to list kernel events
744 </COMMAND_ERROR_OUTPUT>
745 </COMMAND_OUTPUT>
746 </SCENARIO>
747
748 ####################################################################
749 # Scenario: Test "lttng list -k" with no kernel and with session daemon
750 ####################################################################
751 <SCENARIO>
752 ListWithNoKernel2
753 <COMMAND_INPUT>
754 lttng --mi xml list -k
755 </COMMAND_INPUT>
756 <COMMAND_RESULT>
757 1
758 </COMMAND_RESULT>
759 <COMMAND_OUTPUT>
760 <COMMAND_ERROR_OUTPUT>
761 Error: Unable to list kernel events
762 </COMMAND_ERROR_OUTPUT>
763 </COMMAND_OUTPUT>
764 </SCENARIO>
765
766 ####################################################################
767 # Scenario: Test "lttng list -u" with sample output
768 ####################################################################
769 <SCENARIO>
770 GetUstProvider1
771 <COMMAND_INPUT>
772 lttng --mi xml list -u -f
773 </COMMAND_INPUT>
774 <COMMAND_RESULT>
775 0
776 </COMMAND_RESULT>
777 <COMMAND_OUTPUT>
778 <?xml version="1.0" encoding="UTF-8"?>
779 <command>
780 <name>list</name>
781 <output>
782 <domains>
783 <domain>
784 <type>UST</type>
785 <buffer_type>PER_PID</buffer_type>
786 <pids>
787 <pid>
788 <id>9379</id>
789 <name>/home/user/git/lttng-ust/tests/hello.cxx/.libs/lt-hello</name>
790 <events>
791 <event>
792 <name>ust_tests_hello:tptest_sighandler</name>
793 <type>TRACEPOINT</type>
794 <enabled>true</enabled>
795 <filter>false</filter>
796 <loglevel>TRACE_DEBUG_MODULE</loglevel>
797 <loglevel_type>ALL</loglevel_type>
798 <exclusion>false</exclusion>
799 <event_fields/>
800 </event>
801 <event>
802 <name>ust_tests_hello:tptest</name>
803 <type>TRACEPOINT</type>
804 <enabled>true</enabled>
805 <filter>false</filter>
806 <loglevel>TRACE_INFO</loglevel>
807 <loglevel_type>ALL</loglevel_type>
808 <exclusion>false</exclusion>
809 <event_fields>
810 <event_field>
811 <name>doublefield</name>
812 <type>FLOAT</type>
813 <nowrite>0</nowrite>
814 </event_field>
815 <event_field>
816 <name>floatfield</name>
817 <type>FLOAT</type>
818 <nowrite>0</nowrite>
819 </event_field>
820 <event_field>
821 <name>stringfield</name>
822 <type>STRING</type>
823 <nowrite>0</nowrite>
824 </event_field>
825 </event_fields>
826 </event>
827 </events>
828 </pid>
829 <pid>
830 <id>4852</id>
831 <name>/home/user/git/lttng-ust/tests/hello.cxx/.libs/lt-hello</name>
832 <events>
833 <event>
834 <name>ust_tests_hello:tptest_sighandler</name>
835 <type>TRACEPOINT</type>
836 <enabled>true</enabled>
837 <filter>false</filter>
838 <loglevel>TRACE_WARNING</loglevel>
839 <loglevel_type>ALL</loglevel_type>
840 <exclusion>false</exclusion>
841 <event_fields/>
842 </event>
843 <event>
844 <name>ust_tests_hello:tptest</name>
845 <type>TRACEPOINT</type>
846 <enabled>true</enabled>
847 <filter>false</filter>
848 <loglevel>TRACE_DEBUG_FUNCTION</loglevel>
849 <loglevel_type>ALL</loglevel_type>
850 <exclusion>false</exclusion>
851 <event_fields>
852 <event_field>
853 <name>doublefield</name>
854 <type>FLOAT</type>
855 <nowrite>0</nowrite>
856 </event_field>
857 <event_field>
858 <name>floatfield</name>
859 <type>FLOAT</type>
860 <nowrite>0</nowrite>
861 </event_field>
862 <event_field>
863 <name>stringfield</name>
864 <type>STRING</type>
865 <nowrite>0</nowrite>
866 </event_field>
867 </event_fields>
868 </event>
869 </events>
870 </pid>
871 </pids>
872 </domain>
873 </domains>
874 </output>
875 </command>
876 </COMMAND_OUTPUT>
877 </SCENARIO>
878
879 ####################################################################
880 # Scenario: Test "lttng list -u" with no UST provider available
881 ####################################################################
882 <SCENARIO>
883 GetUstProvider2
884 <COMMAND_INPUT>
885 lttng --mi xml list -u -f
886 </COMMAND_INPUT>
887 <COMMAND_RESULT>
888 0
889 </COMMAND_RESULT>
890 <COMMAND_OUTPUT>
891 <?xml version="1.0" encoding="UTF-8"?>
892 <command>
893 <name>list</name>
894 <output>
895 <domains>
896 <domain>
897 <type>UST</type>
898 <buffer_type>PER_PID</buffer_type>
899 <pids/>
900 </domain>
901 </domains>
902 </output>
903 </command>
904 </COMMAND_OUTPUT>
905 </SCENARIO>
906
907 ####################################################################
908 # Scenario: Test "lttng list -u" with no UST available (LTTng 2.0.x)
909 ####################################################################
910 <SCENARIO>
911 ListWithNoUst1
912 <COMMAND_INPUT>
913 lttng --mi xml list -u -f
914 </COMMAND_INPUT>
915 <COMMAND_RESULT>
916 1
917 </COMMAND_RESULT>
918 <COMMAND_OUTPUT>
919 <?xml version="1.0" encoding="UTF-8"?>
920 <command><name>list</name><output/></command>
921 <COMMAND_ERROR_OUTPUT>
922 Error: Unable to list UST event fields: LTTng-UST tracer is not supported. Please rebuild lttng-tools with lttng-ust support enabled.
923 Error: Command error
924 </COMMAND_ERROR_OUTPUT>
925 </COMMAND_OUTPUT>
926 </SCENARIO>
927 ####################################################################
928 # Scenario: Test "lttng list -u" with no UST available and no session daemon
929 ####################################################################
930 <SCENARIO>
931 ListWithNoUst2
932 <COMMAND_INPUT>
933 lttng --mi xml list -u -f
934 </COMMAND_INPUT>
935 <COMMAND_RESULT>
936 1
937 </COMMAND_RESULT>
938 <COMMAND_OUTPUT>
939 <?xml version="1.0" encoding="UTF-8"?>
940 <command><name>list</name><output/></command>
941 <COMMAND_ERROR_OUTPUT>
942 Error: Unable to list UST event fields: LTTng-UST tracer is not supported. Please rebuild lttng-tools with lttng-ust support enabled.
943 Error: Command error
944 </COMMAND_ERROR_OUTPUT>
945 </COMMAND_OUTPUT>
946 </SCENARIO>
947 ####################################################################
948 # Scenario: Test "lttng list -" with no kernel and with session daemon
949 ####################################################################
950 <SCENARIO>
951 ListWithNoUst3
952 <COMMAND_INPUT>
953 lttng --mi xml list -u -f
954 </COMMAND_INPUT>
955 <COMMAND_RESULT>
956 1
957 </COMMAND_RESULT>
958 <COMMAND_OUTPUT>
959 <?xml version="1.0" encoding="UTF-8"?>
960 <command><name>list</name><output/></command>
961 <COMMAND_ERROR_OUTPUT>
962 Error: Unable to list kernel events: Tracing the kernel requires a root lttng-sessiond daemon, as well as "tracing" group membership or root user ID for the lttng client.
963 Error: Command Error
964 </COMMAND_ERROR_OUTPUT>
965 </COMMAND_OUTPUT>
966 </SCENARIO>
967
968 ####################################################################
969 # Scenario: Test "lttng list -u -f" with sample output (version 2.6.0)
970 ####################################################################
971 <SCENARIO>
972 GetUstProvider3
973 <COMMAND_INPUT>
974 lttng --mi xml list -u -f
975 </COMMAND_INPUT>
976 <COMMAND_RESULT>
977 0
978 </COMMAND_RESULT>
979 <COMMAND_OUTPUT>
980 <?xml version="1.0" encoding="UTF-8"?>
981 <command>
982 <name>list</name>
983 <output>
984 <domains>
985 <domain>
986 <type>UST</type>
987 <buffer_type>PER_PID</buffer_type>
988 <pids>
989 <pid>
990 <id>9379</id>
991 <name>/home/user/git/lttng-ust/tests/hello.cxx/.libs/lt-hello</name>
992 <events>
993 <event>
994 <name>ust_tests_hello:tptest_sighandler</name>
995 <type>TRACEPOINT</type>
996 <enabled>true</enabled>
997 <filter>false</filter>
998 <loglevel>TRACE_DEBUG_MODULE</loglevel>
999 <loglevel_type>ALL</loglevel_type>
1000 <exclusion>false</exclusion>
1001 <event_fields/>
1002 </event>
1003 <event>
1004 <name>ust_tests_hello:tptest</name>
1005 <type>TRACEPOINT</type>
1006 <enabled>true</enabled>
1007 <filter>false</filter>
1008 <loglevel>TRACE_INFO</loglevel>
1009 <loglevel_type>ALL</loglevel_type>
1010 <exclusion>false</exclusion>
1011 <event_fields>
1012 <event_field>
1013 <name>doublefield</name>
1014 <type>FLOAT</type>
1015 <nowrite>0</nowrite>
1016 </event_field>
1017 <event_field>
1018 <name>floatfield</name>
1019 <type>FLOAT</type>
1020 <nowrite>0</nowrite>
1021 </event_field>
1022 <event_field>
1023 <name>stringfield</name>
1024 <type>STRING</type>
1025 <nowrite>0</nowrite>
1026 </event_field>
1027 </event_fields>
1028 </event>
1029 </events>
1030 </pid>
1031 <pid>
1032 <id>4852</id>
1033 <name>/home/user/git/lttng-ust/tests/hello.cxx/.libs/lt-hello</name>
1034 <events>
1035 <event>
1036 <name>ust_tests_hello:tptest_sighandler</name>
1037 <type>TRACEPOINT</type>
1038 <enabled>true</enabled>
1039 <filter>false</filter>
1040 <loglevel>TRACE_WARNING</loglevel>
1041 <loglevel_type>ALL</loglevel_type>
1042 <exclusion>false</exclusion>
1043 <event_fields/>
1044 </event>
1045 <event>
1046 <name>ust_tests_hello:tptest</name>
1047 <type>TRACEPOINT</type>
1048 <enabled>true</enabled>
1049 <filter>false</filter>
1050 <loglevel>TRACE_DEBUG_FUNCTION</loglevel>
1051 <loglevel_type>ALL</loglevel_type>
1052 <exclusion>false</exclusion>
1053 <event_fields>
1054 <event_field>
1055 <name>doublefield</name>
1056 <type>FLOAT</type>
1057 <nowrite>0</nowrite>
1058 </event_field>
1059 <event_field>
1060 <name>floatfield</name>
1061 <type>FLOAT</type>
1062 <nowrite>0</nowrite>
1063 </event_field>
1064 <event_field>
1065 <name>stringfield</name>
1066 <type>STRING</type>
1067 <nowrite>0</nowrite>
1068 </event_field>
1069 </event_fields>
1070 </event>
1071 </events>
1072 </pid>
1073 </pids>
1074 </domain>
1075 </domains>
1076 </output>
1077 </command>
1078 </COMMAND_OUTPUT>
1079 </SCENARIO>
1080 ####################################################################
1081 # Scenario: Test "lttng create <session>
1082 ####################################################################
1083 <SCENARIO>
1084 CreateSession1
1085 <COMMAND_INPUT>
1086 lttng --mi xml create mysession2
1087 </COMMAND_INPUT>
1088 <COMMAND_RESULT>
1089 0
1090 </COMMAND_RESULT>
1091 <COMMAND_OUTPUT>
1092 <?xml version="1.0" encoding="UTF-8"?>
1093 <command>
1094 <name>create</name>
1095 <output>
1096 <session>
1097 <name>mysession2</name>
1098 <path>/home/user/lttng-traces/mysession2-20120209-095418</path>
1099 <enabled>false</enabled>
1100 <snapshot_mode>0</snapshot_mode>
1101 <live_timer_interval>0</live_timer_interval>
1102 </session>
1103 </output>
1104 <success>true</success>
1105 </command>
1106 </COMMAND_OUTPUT>
1107 </SCENARIO>
1108
1109 ####################################################################
1110 # Scenario: Test "lttng create <session>
1111 ####################################################################
1112 <SCENARIO>
1113 CreateSessionWithPrompt
1114 <COMMAND_INPUT>
1115 lttng --mi xml create mysession2
1116 </COMMAND_INPUT>
1117 <COMMAND_RESULT>
1118 0
1119 </COMMAND_RESULT>
1120 <COMMAND_OUTPUT>
1121 Prompt> Session mysession2 created.
1122 Traces will be written in /home/user/lttng-traces/mysession2-20120209-095418
1123 </COMMAND_OUTPUT>
1124 </SCENARIO>
1125
1126 ####################################################################
1127 # Scenario: Test "lttng create <session> with different variants
1128 # and errors
1129 ####################################################################
1130 <SCENARIO>
1131 CreateSessionVariants
1132 <COMMAND_INPUT>
1133 lttng --mi xml create alreadyExist
1134 </COMMAND_INPUT>
1135 <COMMAND_RESULT>
1136 1
1137 </COMMAND_RESULT>
1138 <COMMAND_OUTPUT>
1139 <?xml version="1.0" encoding="UTF-8"?>
1140 <command>
1141 <name>create</name>
1142 <output/>
1143 <success>false</success>
1144 </command>
1145 <COMMAND_ERROR_OUTPUT>
1146 Warning: Session mysession2 already exists
1147 Error: Session name already exists
1148 </COMMAND_ERROR_OUTPUT>
1149 </COMMAND_OUTPUT>
1150
1151 <COMMAND_INPUT>
1152 lttng --mi xml create session with spaces
1153 </COMMAND_INPUT>
1154 <COMMAND_RESULT>
1155 0
1156 </COMMAND_RESULT>
1157 <COMMAND_OUTPUT>
1158 <?xml version="1.0" encoding="UTF-8"?>
1159 <command>
1160 <name>create</name>
1161 <output>
1162 <session>
1163 <name>session with spaces</name>
1164 <path>/home/user/lttng-traces/session with spaces-20120209-095418</path>
1165 <enabled>false</enabled>
1166 <snapshot_mode>0</snapshot_mode>
1167 <live_timer_interval>0</live_timer_interval>
1168 </session>
1169 </output>
1170 <success>true</success>
1171 </command>
1172 </COMMAND_OUTPUT>
1173
1174 <COMMAND_INPUT>
1175 lttng --mi xml create wrongName
1176 </COMMAND_INPUT>
1177 <COMMAND_RESULT>
1178 0
1179 </COMMAND_RESULT>
1180 <COMMAND_OUTPUT>
1181 <?xml version="1.0" encoding="UTF-8"?>
1182 <command>
1183 <name>create</name>
1184 <output>
1185 <session>
1186 <name>auto</name>
1187 <path>/home/user/lttng-traces/auto-20120209-095418</path>
1188 <enabled>false</enabled>
1189 <snapshot_mode>0</snapshot_mode>
1190 <live_timer_interval>0</live_timer_interval>
1191 </session>
1192 </output>
1193 <success>true</success>
1194 </command>
1195 </COMMAND_OUTPUT>
1196
1197 <COMMAND_INPUT>
1198 lttng --mi xml create wrongPath -o /home/user/hallo
1199 </COMMAND_INPUT>
1200 <COMMAND_RESULT>
1201 0
1202 </COMMAND_RESULT>
1203 <COMMAND_OUTPUT>
1204 <?xml version="1.0" encoding="UTF-8"?>
1205 <command>
1206 <name>create</name>
1207 <output>
1208 <session>
1209 <name>wrongPath</name>
1210 <path>/home/user/lttng-traces/wrongPath-20120209-095418</path>
1211 <enabled>false</enabled>
1212 <snapshot_mode>0</snapshot_mode>
1213 <live_timer_interval>0</live_timer_interval>
1214 </session>
1215 </output>
1216 <success>true</success>
1217 </command>
1218 </COMMAND_OUTPUT>
1219
1220 <COMMAND_INPUT>
1221 lttng --mi xml create pathWithSpaces -o /home/user/hallo user/here
1222 </COMMAND_INPUT>
1223 <COMMAND_RESULT>
1224 0
1225 </COMMAND_RESULT>
1226 <COMMAND_OUTPUT>
1227 <?xml version="1.0" encoding="UTF-8"?>
1228 <command>
1229 <name>create</name>
1230 <output>
1231 <session>
1232 <name>pathWithSpaces</name>
1233 <path>/home/user/hallo user/here/pathWithSpaces-20120209-095418</path>
1234 <enabled>false</enabled>
1235 <snapshot_mode>0</snapshot_mode>
1236 <live_timer_interval>0</live_timer_interval>
1237 </session>
1238 </output>
1239 <success>true</success>
1240 </command>
1241 </COMMAND_OUTPUT>
1242 </SCENARIO>
1243
1244 ####################################################################
1245 # Scenario: Test "lttng destroy <session>
1246 ####################################################################
1247
1248 <SCENARIO>
1249 DestroySession1
1250 <COMMAND_INPUT>
1251 lttng --mi xml destroy mysession2
1252 </COMMAND_INPUT>
1253 <COMMAND_RESULT>
1254 0
1255 </COMMAND_RESULT>
1256 <COMMAND_OUTPUT>
1257 <?xml version="1.0" encoding="UTF-8"?>
1258 <command>
1259 <name>destroy</name>
1260 <output>
1261 <sessions>
1262 <session>
1263 <name>mysession2</name>
1264 <path>/home/user/lttng-traces/mysession2-20140812-160632</path>
1265 <enabled>false</enabled>
1266 <snapshot_mode>0</snapshot_mode>
1267 <live_timer_interval>0</live_timer_interval>
1268 </session>
1269 </sessions>
1270 </output>
1271 <success>true</success>
1272 </command>
1273 </COMMAND_OUTPUT>
1274 </SCENARIO>
1275
1276 ####################################################################
1277 # Scenario: Test "lttng enable-channel ..." with different inputs
1278 ####################################################################
1279
1280 <SCENARIO>
1281 ChannelHandling
1282 <COMMAND_INPUT>
1283 lttng --mi xml enable-channel mychannel0,mychannel1 -k -s mysession2 --overwrite --subbuf-size 16384 --num-subbuf 2 --switch-timer 200 --read-timer 100 -C 0 -W 10
1284 </COMMAND_INPUT>
1285 <COMMAND_RESULT>
1286 0
1287 </COMMAND_RESULT>
1288 <COMMAND_OUTPUT>
1289 Kernel channel mychannel0 enabled for session mysession2
1290 Kernel channel mychannel1 enabled for session mysession2
1291 </COMMAND_OUTPUT>
1292
1293 <COMMAND_INPUT>
1294 lttng --mi xml enable-channel mychannel0,mychannel1 -k -s mysession2 --overwrite --subbuf-size 16384 --num-subbuf 2 --switch-timer 200 --read-timer 100
1295 </COMMAND_INPUT>
1296 <COMMAND_RESULT>
1297 0
1298 </COMMAND_RESULT>
1299 <COMMAND_OUTPUT>
1300 <?xml version="1.0" encoding="UTF-8"?>
1301 <command>
1302 <name>enable-channel</name>
1303 <output>
1304 <channels>
1305 <channel>
1306 <name>mychannel0</name>
1307 <enabled>false</enabled>
1308 <attributes>
1309 <overwrite_mode>OVERWRITE</overwrite_mode>
1310 <subbuffer_size>16384</subbuffer_size>
1311 <subbuffer_count>2</subbuffer_count>
1312 <switch_timer_interval>200</switch_timer_interval>
1313 <read_timer_interval>100</read_timer_interval>
1314 <output_type>SPLICE</output_type>
1315 <tracefile_size>0</tracefile_size>
1316 <tracefile_count>0</tracefile_count>
1317 <live_timer_interval>4294967295</live_timer_interval>
1318 </attributes>
1319 <success>true</success>
1320 </channel>
1321 <channel>
1322 <name>mychannel1</name>
1323 <enabled>false</enabled>
1324 <attributes>
1325 <overwrite_mode>OVERWRITE</overwrite_mode>
1326 <subbuffer_size>16384</subbuffer_size>
1327 <subbuffer_count>2</subbuffer_count>
1328 <switch_timer_interval>200</switch_timer_interval>
1329 <read_timer_interval>100</read_timer_interval>
1330 <output_type>SPLICE</output_type>
1331 <tracefile_size>0</tracefile_size>
1332 <tracefile_count>0</tracefile_count>
1333 <live_timer_interval>4294967295</live_timer_interval>
1334 </attributes>
1335 <success>true</success>
1336 </channel>
1337 </channels>
1338 </output>
1339 <success>true</success>
1340 </command>
1341 </COMMAND_OUTPUT>
1342
1343 <COMMAND_INPUT>
1344 lttng --mi xml enable-channel ustChannel -u -s mysession2 --overwrite --subbuf-size 32768 --num-subbuf 1 --switch-timer 100 --read-timer 200 -C 0 -W 20
1345 </COMMAND_INPUT>
1346 <COMMAND_RESULT>
1347 0
1348 </COMMAND_RESULT>
1349 <COMMAND_OUTPUT>
1350 UST channel channel0 enabled for session mysession2
1351 </COMMAND_OUTPUT>
1352
1353 <COMMAND_INPUT>
1354 lttng --mi xml enable-channel ustChannel -u -s mysession2 --overwrite --subbuf-size 32768 --num-subbuf 1 --switch-timer 100 --read-timer 200
1355 </COMMAND_INPUT>
1356 <COMMAND_RESULT>
1357 0
1358 </COMMAND_RESULT>
1359 <COMMAND_OUTPUT>
1360 <?xml version="1.0" encoding="UTF-8"?>
1361 <command>
1362 <name>enable-channel</name>
1363 <output>
1364 <channels>
1365 <channel>
1366 <name>ustChannel</name>
1367 <enabled>false</enabled>
1368 <attributes>
1369 <overwrite_mode>OVERWRITE</overwrite_mode>
1370 <subbuffer_size>32768</subbuffer_size>
1371 <subbuffer_count>2</subbuffer_count>
1372 <switch_timer_interval>100</switch_timer_interval>
1373 <read_timer_interval>200</read_timer_interval>
1374 <output_type>MMAP</output_type>
1375 <tracefile_size>0</tracefile_size>
1376 <tracefile_count>0</tracefile_count>
1377 <live_timer_interval>4294967295</live_timer_interval>
1378 </attributes>
1379 <success>true</success>
1380 </channel>
1381 </channels>
1382 </output>
1383 <success>true</success>
1384 </command>
1385 </COMMAND_OUTPUT>
1386
1387 <COMMAND_INPUT>
1388 lttng --mi xml 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
1389 </COMMAND_INPUT>
1390 <COMMAND_RESULT>
1391 0
1392 </COMMAND_RESULT>
1393 <COMMAND_OUTPUT>
1394 UST channel channel0 enabled for session mysession2
1395 </COMMAND_OUTPUT>
1396
1397 <COMMAND_INPUT>
1398 lttng --mi xml enable-channel ustChannel -u -s mysession2 --overwrite --buffers-pid
1399 </COMMAND_INPUT>
1400 <COMMAND_RESULT>
1401 0
1402 </COMMAND_RESULT>
1403 <COMMAND_OUTPUT>
1404 <?xml version="1.0" encoding="UTF-8"?>
1405 <command>
1406 <name>enable-channel</name>
1407 <output>
1408 <channels>
1409 <channel>
1410 <name>ustChannel</name>
1411 <enabled>false</enabled>
1412 <attributes>
1413 <overwrite_mode>OVERWRITE</overwrite_mode>
1414 <subbuffer_size>4096</subbuffer_size>
1415 <subbuffer_count>4</subbuffer_count>
1416 <switch_timer_interval>0</switch_timer_interval>
1417 <read_timer_interval>0</read_timer_interval>
1418 <output_type>MMAP</output_type>
1419 <tracefile_size>0</tracefile_size>
1420 <tracefile_count>0</tracefile_count>
1421 <live_timer_interval>4294967295</live_timer_interval>
1422 </attributes>
1423 <success>true</success>
1424 </channel>
1425 </channels>
1426 </output>
1427 <success>true</success>
1428 </command>
1429 </COMMAND_OUTPUT>
1430
1431 <COMMAND_INPUT>
1432 lttng --mi xml enable-channel ustChannel -u -s mysession2 --overwrite --subbuf-size 32768 --num-subbuf 2 --switch-timer 100 --read-timer 200 --buffers-uid
1433 </COMMAND_INPUT>
1434 <COMMAND_RESULT>
1435 0
1436 </COMMAND_RESULT>
1437 <COMMAND_OUTPUT>
1438 <?xml version="1.0" encoding="UTF-8"?>
1439 <command>
1440 <name>enable-channel</name>
1441 <output>
1442 <channels>
1443 <channel>
1444 <name>ustChannel</name>
1445 <enabled>false</enabled>
1446 <attributes>
1447 <overwrite_mode>OVERWRITE</overwrite_mode>
1448 <subbuffer_size>32768</subbuffer_size>
1449 <subbuffer_count>2</subbuffer_count>
1450 <switch_timer_interval>100</switch_timer_interval>
1451 <read_timer_interval>200</read_timer_interval>
1452 <output_type>MMAP</output_type>
1453 <tracefile_size>0</tracefile_size>
1454 <tracefile_count>0</tracefile_count>
1455 <live_timer_interval>4294967295</live_timer_interval>
1456 </attributes>
1457 <success>true</success>
1458 </channel>
1459 </channels>
1460 </output>
1461 <success>true</success>
1462 </command>
1463 </COMMAND_OUTPUT>
1464
1465
1466 <COMMAND_INPUT>
1467 lttng --mi xml enable-channel mychannel0,mychannel1 -k -s mysession2
1468 </COMMAND_INPUT>
1469 <COMMAND_RESULT>
1470 0
1471 </COMMAND_RESULT>
1472 <COMMAND_OUTPUT>
1473 <?xml version="1.0" encoding="UTF-8"?>
1474 <command>
1475 <name>enable-channel</name>
1476 <output>
1477 <channels>
1478 <channel>
1479 <name>mychannel0</name>
1480 <enabled>false</enabled>
1481 <attributes>
1482 <overwrite_mode>DISCARD</overwrite_mode>
1483 <subbuffer_size>262144</subbuffer_size>
1484 <subbuffer_count>4</subbuffer_count>
1485 <switch_timer_interval>0</switch_timer_interval>
1486 <read_timer_interval>200000</read_timer_interval>
1487 <output_type>SPLICE</output_type>
1488 <tracefile_size>0</tracefile_size>
1489 <tracefile_count>0</tracefile_count>
1490 <live_timer_interval>4294967295</live_timer_interval>
1491 </attributes>
1492 <success>true</success>
1493 </channel>
1494 <channel>
1495 <name>mychannel1</name>
1496 <enabled>false</enabled>
1497 <attributes>
1498 <overwrite_mode>DISCARD</overwrite_mode>
1499 <subbuffer_size>262144</subbuffer_size>
1500 <subbuffer_count>4</subbuffer_count>
1501 <switch_timer_interval>0</switch_timer_interval>
1502 <read_timer_interval>200000</read_timer_interval>
1503 <output_type>SPLICE</output_type>
1504 <tracefile_size>0</tracefile_size>
1505 <tracefile_count>0</tracefile_count>
1506 <live_timer_interval>4294967295</live_timer_interval>
1507 </attributes>
1508 <success>true</success>
1509 </channel>
1510 </channels>
1511 </output>
1512 <success>true</success>
1513 </command>
1514 </COMMAND_OUTPUT>
1515
1516 <COMMAND_INPUT>
1517 lttng --mi xml enable-channel ustChannel -u -s mysession2
1518 </COMMAND_INPUT>
1519 <COMMAND_RESULT>
1520 0
1521 </COMMAND_RESULT>
1522 <COMMAND_OUTPUT>
1523 <?xml version="1.0" encoding="UTF-8"?>
1524 <command>
1525 <name>enable-channel</name>
1526 <output>
1527 <channels>
1528 <channel>
1529 <name>ustChannel</name>
1530 <enabled>false</enabled>
1531 <attributes>
1532 <overwrite_mode>DISCARD</overwrite_mode>
1533 <subbuffer_size>131072</subbuffer_size>
1534 <subbuffer_count>4</subbuffer_count>
1535 <switch_timer_interval>0</switch_timer_interval>
1536 <read_timer_interval>0</read_timer_interval>
1537 <output_type>MMAP</output_type>
1538 <tracefile_size>0</tracefile_size>
1539 <tracefile_count>0</tracefile_count>
1540 <live_timer_interval>4294967295</live_timer_interval>
1541 </attributes>
1542 <success>true</success>
1543 </channel>
1544 </channels>
1545 </output>
1546 <success>true</success>
1547 </command>
1548 </COMMAND_OUTPUT>
1549
1550 <COMMAND_INPUT>
1551 lttng --mi xml disable-channel mychannel0,mychannel1 -k -s mysession2
1552 </COMMAND_INPUT>
1553 <COMMAND_RESULT>
1554 0
1555 </COMMAND_RESULT>
1556 <COMMAND_OUTPUT>
1557 <?xml version="1.0" encoding="UTF-8"?>
1558 <command>
1559 <name>disable-channel</name>
1560 <output>
1561 <channels>
1562 <channel>
1563 <name>mychannel0</name>
1564 <enabled>false</enabled>
1565 <success>true</success>
1566 </channel>
1567 <channel>
1568 <name>mychannel1</name>
1569 <enabled>false</enabled>
1570 <success>true</success>
1571 </channel>
1572 </channels>
1573 </output>
1574 <success>true</success>
1575 </command>
1576 </COMMAND_OUTPUT>
1577
1578 <COMMAND_INPUT>
1579 lttng --mi xml disable-channel ustChannel -u -s mysession2
1580 </COMMAND_INPUT>
1581 <COMMAND_RESULT>
1582 0
1583 </COMMAND_RESULT>
1584 <COMMAND_OUTPUT>
1585 <?xml version="1.0" encoding="UTF-8"?>
1586 <command>
1587 <name>disable-channel</name>
1588 <output>
1589 <channels>
1590 <channel>
1591 <name>ustChannel</name>
1592 <enabled>false</enabled>
1593 <success>true</success>
1594 </channel>
1595 </channels>
1596 </output>
1597 <success>true</success>
1598 </command>
1599 </COMMAND_OUTPUT>
1600 </SCENARIO>
1601
1602
1603 ####################################################################
1604 # Scenario: Test "lttng --mi xml enable-events ..." with different inputs
1605 ####################################################################
1606 <SCENARIO>
1607 EventHandling
1608
1609 # Tracepoint test cases
1610
1611 <COMMAND_INPUT>
1612 lttng --mi xml enable-event block_rq_remap,block_bio_remap,softirq_entry -k -s mysession2 --tracepoint
1613 </COMMAND_INPUT>
1614 <COMMAND_RESULT>
1615 0
1616 </COMMAND_RESULT>
1617 <COMMAND_OUTPUT>
1618 <?xml version="1.0" encoding="UTF-8"?>
1619 <command>
1620 <name>enable-event</name>
1621 <output>
1622 <events>
1623 <event>
1624 <name>block_rq_remap</name>
1625 <type>TRACEPOINT</type>
1626 <enabled>true</enabled>
1627 <filter>false</filter>
1628 <loglevel>TRACE_EMERG</loglevel>
1629 <loglevel_type>ALL</loglevel_type>
1630 <exclusion>false</exclusion>
1631 <success>true</success>
1632 </event>
1633 <event>
1634 <name>block_bio_remap</name>
1635 <type>TRACEPOINT</type>
1636 <enabled>true</enabled>
1637 <filter>false</filter>
1638 <loglevel>TRACE_EMERG</loglevel>
1639 <loglevel_type>ALL</loglevel_type>
1640 <exclusion>false</exclusion>
1641 <success>true</success>
1642 </event>
1643 <event>
1644 <name>softirq_entry</name>
1645 <type>TRACEPOINT</type>
1646 <enabled>true</enabled>
1647 <filter>false</filter>
1648 <loglevel>TRACE_EMERG</loglevel>
1649 <loglevel_type>ALL</loglevel_type>
1650 <exclusion>false</exclusion>
1651 <success>true</success>
1652 </event>
1653 </events>
1654 </output>
1655 <success>true</success>
1656 </command>
1657 </COMMAND_OUTPUT>
1658
1659 <COMMAND_INPUT>
1660 lttng --mi xml enable-event -a -k -s mysession2 -c mychannel --tracepoint
1661 </COMMAND_INPUT>
1662 <COMMAND_RESULT>
1663 0
1664 </COMMAND_RESULT>
1665 <COMMAND_OUTPUT>
1666 <?xml version="1.0" encoding="UTF-8"?>
1667 <command>
1668 <name>enable-event</name>
1669 <output>
1670 <events>
1671 <event>
1672 <name>*</name>
1673 <type>TRACEPOINT</type>
1674 <enabled>true</enabled>
1675 <filter>false</filter>
1676 <loglevel>TRACE_EMERG</loglevel>
1677 <loglevel_type>ALL</loglevel_type>
1678 <exclusion>false</exclusion>
1679 <success>true</success>
1680 </event>
1681 </events>
1682 </output>
1683 <success>true</success>
1684 </command>
1685 </COMMAND_OUTPUT>
1686
1687 <COMMAND_INPUT>
1688 lttng --mi xml enable-event ust_tests_hello:tptest_sighandler -u -s mysession2 -c mychannel --tracepoint
1689 </COMMAND_INPUT>
1690 <COMMAND_RESULT>
1691 0
1692 </COMMAND_RESULT>
1693 <COMMAND_OUTPUT>
1694 <?xml version="1.0" encoding="UTF-8"?>
1695 <command>
1696 <name>enable-event</name>
1697 <output>
1698 <events>
1699 <event>
1700 <name>ust_tests_hello:tptest_sighandler</name>
1701 <type>TRACEPOINT</type>
1702 <enabled>true</enabled>
1703 <filter>false</filter>
1704 <exclusion>false</exclusion>
1705 <success>true</success>
1706 </event>
1707 </events>
1708 </output>
1709 <success>true</success>
1710 </command>
1711 </COMMAND_OUTPUT>
1712
1713 <COMMAND_INPUT>
1714 lttng --mi xml enable-event ust_tests_hello:tptest_sighandler -u -s mysession2 -c mychannel --tracepoint --filter intfield==10
1715 </COMMAND_INPUT>
1716 <COMMAND_RESULT>
1717 0
1718 </COMMAND_RESULT>
1719 <COMMAND_OUTPUT>
1720 <?xml version="1.0" encoding="UTF-8"?>
1721 <command>
1722 <name>enable-event</name>
1723 <output>
1724 <events>
1725 <event>
1726 <name>ust_tests_hello:tptest_sighandler</name>
1727 <type>TRACEPOINT</type>
1728 <enabled>true</enabled>
1729 <filter>true</filter>
1730 <exclusion>false</exclusion>
1731 <success>true</success>
1732 </event>
1733 </events>
1734 </output>
1735 <success>true</success>
1736 </command>
1737 </COMMAND_OUTPUT>
1738
1739 <COMMAND_INPUT>
1740 lttng --mi xml enable-event -a -u -s mysession2 -c mychannel --tracepoint
1741 </COMMAND_INPUT>
1742 <COMMAND_RESULT>
1743 0
1744 </COMMAND_RESULT>
1745 <COMMAND_OUTPUT>
1746 <?xml version="1.0" encoding="UTF-8"?>
1747 <command>
1748 <name>enable-event</name>
1749 <output>
1750 <events>
1751 <event>
1752 <name>*</name>
1753 <type>TRACEPOINT</type>
1754 <enabled>true</enabled>
1755 <filter>false</filter>
1756 <exclusion>false</exclusion>
1757 <success>true</success>
1758 </event>
1759 </events>
1760 </output>
1761 <success>true</success>
1762 </command>
1763 </COMMAND_OUTPUT>
1764
1765 # Syscall test cases
1766
1767 <COMMAND_INPUT>
1768 lttng --mi xml enable-event -a -k -s mysession2 --syscall
1769 </COMMAND_INPUT>
1770 <COMMAND_RESULT>
1771 0
1772 </COMMAND_RESULT>
1773 <COMMAND_OUTPUT>
1774 <?xml version="1.0" encoding="UTF-8"?>
1775 <command>
1776 <name>enable-event</name>
1777 <output>
1778 <events>
1779 <event>
1780 <name>*</name>
1781 <type>SYSCALL</type>
1782 <enabled>true</enabled>
1783 <filter>false</filter>
1784 <success>true</success>
1785 </event>
1786 </events>
1787 </output>
1788 <success>true</success>
1789 </command>
1790 </COMMAND_OUTPUT>
1791
1792 <COMMAND_INPUT>
1793 lttng --mi xml enable-event -a -k -s mysession2 -c mychannel --syscall
1794 </COMMAND_INPUT>
1795 <COMMAND_RESULT>
1796 0
1797 </COMMAND_RESULT>
1798 <COMMAND_OUTPUT>
1799 <?xml version="1.0" encoding="UTF-8"?>
1800 <command>
1801 <name>enable-event</name>
1802 <output>
1803 <events>
1804 <event>
1805 <name>*</name>
1806 <type>SYSCALL</type>
1807 <enabled>true</enabled>
1808 <filter>false</filter>
1809 <success>true</success>
1810 </event>
1811 </events>
1812 </output>
1813 <success>true</success>
1814 </command>
1815 </COMMAND_OUTPUT>
1816
1817 # dynamic probe/function probe test cases
1818
1819 <COMMAND_INPUT>
1820 lttng --mi xml enable-event myevent0 -k -s mysession2 --function 0xc0101340
1821 </COMMAND_INPUT>
1822 <COMMAND_RESULT>
1823 0
1824 </COMMAND_RESULT>
1825 <COMMAND_OUTPUT>
1826 <?xml version="1.0" encoding="UTF-8"?>
1827 <command>
1828 <name>enable-event</name>
1829 <output>
1830 <events>
1831 <event>
1832 <name>myevent0</name>
1833 <type>FUNCTION</type>
1834 <enabled>false</enabled>
1835 <filter>false</filter>
1836 <success>true</success>
1837 </event>
1838 </events>
1839 </output>
1840 <success>true</success>
1841 </command>
1842 </COMMAND_OUTPUT>
1843
1844 <COMMAND_INPUT>
1845 lttng --mi xml enable-event myevent1 -k -s mysession2 -c mychannel --probe init_post
1846 </COMMAND_INPUT>
1847 <COMMAND_RESULT>
1848 0
1849 </COMMAND_RESULT>
1850 <COMMAND_OUTPUT>
1851 <?xml version="1.0" encoding="UTF-8"?>
1852 <command>
1853 <name>enable-event</name>
1854 <output>
1855 <events>
1856 <event>
1857 <name>myevent1</name>
1858 <type>PROBE</type>
1859 <enabled>false</enabled>
1860 <filter>false</filter>
1861 <offset>0</offset>
1862 <symbol_name>init_post</symbol_name>
1863 <success>true</success>
1864 </event>
1865 </events>
1866 </output>
1867 <success>true</success>
1868 </command>
1869
1870 </COMMAND_OUTPUT>
1871
1872 # log level test cases
1873
1874 <COMMAND_INPUT>
1875 lttng --mi xml enable-event myevent4 -u -s mysession2 --loglevel-only TRACE_DEBUG
1876 </COMMAND_INPUT>
1877 <COMMAND_RESULT>
1878 0
1879 </COMMAND_RESULT>
1880 <COMMAND_OUTPUT>
1881 <?xml version="1.0" encoding="UTF-8"?>
1882 <command>
1883 <name>enable-event</name>
1884 <output>
1885 <events>
1886 <event>
1887 <name>myevent4</name>
1888 <type>TRACEPOINT</type>
1889 <enabled>true</enabled>
1890 <filter>false</filter>
1891 <loglevel>TRACE_DEBUG</loglevel>
1892 <loglevel_type>SINGLE</loglevel_type>
1893 <exclusion>false</exclusion>
1894 <success>true</success>
1895 </event>
1896 </events>
1897 </output>
1898 <success>true</success>
1899 </command>
1900 </COMMAND_OUTPUT>
1901
1902 <COMMAND_INPUT>
1903 lttng --mi xml enable-event myevent5 -u -s mysession2 -c mychannel --loglevel TRACE_DEBUG_FUNCTION
1904 </COMMAND_INPUT>
1905 <COMMAND_RESULT>
1906 0
1907 </COMMAND_RESULT>
1908 <COMMAND_OUTPUT>
1909 <?xml version="1.0" encoding="UTF-8"?>
1910 <command>
1911 <name>enable-event</name>
1912 <output>
1913 <events>
1914 <event>
1915 <name>myevent5</name>
1916 <type>TRACEPOINT</type>
1917 <enabled>true</enabled>
1918 <filter>false</filter>
1919 <loglevel>TRACE_DEBUG_FUNCTION</loglevel>
1920 <loglevel_type>RANGE</loglevel_type>
1921 <exclusion>false</exclusion>
1922 <success>true</success>
1923 </event>
1924 </events>
1925 </output>
1926 <success>true</success>
1927 </command>
1928 </COMMAND_OUTPUT>
1929
1930 </SCENARIO>
1931
1932 ####################################################################
1933 # Scenario: Test "lttng add-context -h" and lttng --mi xml add-context ..." with different inputs
1934 ####################################################################
1935
1936 <SCENARIO>
1937 ContextHandling
1938
1939 <COMMAND_INPUT>
1940 lttng --mi xml add-context -h
1941 </COMMAND_INPUT>
1942 <COMMAND_RESULT>
1943 0
1944 </COMMAND_RESULT>
1945 <COMMAND_OUTPUT>
1946 usage: lttng add-context -t TYPE [-k|-u] [OPTIONS]
1947
1948 If no channel is given (-c), the context is added to
1949 all channels.
1950
1951 Otherwise the context is added only to the channel (-c).
1952
1953 Exactly one domain (-k or -u) must be specified.
1954
1955 Options:
1956 -h, --help Show this help
1957 --list-options Simple listing of options
1958 -s, --session NAME Apply to session name
1959 -c, --channel NAME Apply to channel
1960 -k, --kernel Apply to the kernel tracer
1961 -u, --userspace Apply to the user-space tracer
1962
1963 Context:
1964 -t, --type TYPE Context type. You can repeat that option on
1965 the command line to specify multiple contexts at once.
1966 (--kernel preempts --userspace)
1967 TYPE can be one of the strings below:
1968 pid, procname, prio, nice, vpid, tid, pthread_id,
1969 vtid, ppid, vppid, perf:cpu:cpu-cycles, perf:cpu:cycles
1970 Note that the vpid, vppid and vtid context types represent the virtual process id,
1971 virtual parent process id and virtual thread id as seen from the current execution context
1972 as opposed to the pid, ppid and tid which are kernel internal data structures.
1973
1974 Example:
1975 This command will add the context information 'prio' and two per-cpu
1976 perf counters (hardware branch misses and cache misses), to all channels
1977 in the trace data output:
1978 # lttng add-context -k -t prio -t perf:cpu:branch-misses -t perf:cpu:cache-misses
1979 </COMMAND_OUTPUT>
1980
1981 <COMMAND_INPUT>
1982 lttng --mi xml add-context -s mysession2 -c mychannel -e ust_tests_hello:tptest_sighandler -u -t prio -t pid
1983 </COMMAND_INPUT>
1984 <COMMAND_RESULT>
1985 0
1986 </COMMAND_RESULT>
1987 <COMMAND_OUTPUT>
1988 UST context prio added to event ust_tests_hello:tptest_sighandle channel mychannel
1989 UST context pid added to event sched_kthread_stop_ret channel mychannel
1990 </COMMAND_OUTPUT>
1991 </SCENARIO>
1992
1993 ####################################################################
1994 # Scenario: Test "lttng --mi xml add-context --list"
1995 ####################################################################
1996
1997 <SCENARIO>
1998 ListContext28
1999
2000 <COMMAND_INPUT>
2001 lttng --mi xml add-context --list
2002 </COMMAND_INPUT>
2003 <COMMAND_RESULT>
2004 0
2005 </COMMAND_RESULT>
2006 <COMMAND_OUTPUT>
2007 pid
2008 procname
2009 prio
2010 nice
2011 vpid
2012 tid
2013 pthread_id
2014 vtid
2015 ppid
2016 vppid
2017 perf:cpu:cpu-cycles
2018 perf:cpu:cycles
2019 </COMMAND_OUTPUT>
2020 </SCENARIO>
2021
2022 <SCENARIO>
2023 ContextErrorHandling
2024
2025 <COMMAND_INPUT>
2026 lttng --mi xml add-context -h
2027 </COMMAND_INPUT>
2028 <COMMAND_RESULT>
2029 1
2030 </COMMAND_RESULT>
2031 <COMMAND_OUTPUT>
2032 usage: lttng add-context -t TYPE
2033
2034 If no channel and no event is given (-c/-e), the context
2035 will be added to all events and all channels.
2036 Otherwise the context will be added only to the channel (-c)
2037 and/or event (-e) indicated.
2038 Exactly one domain (-k/--kernel or -u/--userspace) must be specified.
2039
2040 Options:
2041 -h, --help Show this help
2042 --list-options Simple listing of options
2043 -s, --session NAME Apply to session name
2044 -c, --channel NAME Apply to channel
2045 -e, --event NAME Apply to event
2046 -k, --kernel Apply to the kernel tracer
2047 -u, --userspace Apply to the user-space tracer
2048 -t, --type TYPE Context type. You can repeat that option on
2049 the command line to specify multiple contexts at once.
2050 (--kernel preempts --userspace)
2051 TYPE can be one of the strings below:
2052 pid, procname, prio, nice, vpid, tid, pthread_id,
2053 vtid, ppid, vppid, perf:cpu-cycles, perf:cycles
2054 Example:
2055 This command will add the context information 'prio' and two perf
2056 counters (hardware branch misses and cache misses), to all events
2057 in the trace data output:
2058 # lttng add-context -k -t prio -t perf:branch-misses -t perf:cache-misses
2059
2060 </COMMAND_OUTPUT>
2061
2062 <COMMAND_INPUT>
2063 lttng --mi xml add-context -s mysession2 -c mychannel -e ust_tests_hello:tptest_sighandler -u -t prio -t pid
2064 </COMMAND_INPUT>
2065 <COMMAND_RESULT>
2066 1
2067 </COMMAND_RESULT>
2068 <COMMAND_OUTPUT>
2069 UST context prio added to event ust_tests_hello:tptest_sighandle channel mychannel
2070 UST context pid added to event sched_kthread_stop_ret channel mychannel
2071 </COMMAND_OUTPUT>
2072
2073 </SCENARIO>
2074
2075 ####################################################################
2076 # Scenario: Test "lttng create <session> with LTTng 2.1 options
2077 ####################################################################
2078 <SCENARIO>
2079 CreateSessionLttng2.1
2080
2081 <COMMAND_INPUT>
2082 lttng --mi xml create mysession -U net://172.0.0.1
2083 </COMMAND_INPUT>
2084 <COMMAND_RESULT>
2085 0
2086 </COMMAND_RESULT>
2087 <COMMAND_OUTPUT>
2088 <?xml version="1.0" encoding="UTF-8"?>
2089 <command>
2090 <name>create</name>
2091 <output>
2092 <session>
2093 <name>mysession</name>
2094 <path>tcp4://172.0.0.1:5342/mysession-20140813-095804 [data: 5343]</path>
2095 <enabled>false</enabled>
2096 <snapshot_mode>0</snapshot_mode>
2097 <live_timer_interval>0</live_timer_interval>
2098 </session>
2099 </output>
2100 <success>true</success>
2101 </command>
2102 </COMMAND_OUTPUT>
2103
2104 <COMMAND_INPUT>
2105 lttng --mi xml create mysession -U file:///tmp
2106 </COMMAND_INPUT>
2107 <COMMAND_RESULT>
2108 0
2109 </COMMAND_RESULT>
2110 <COMMAND_OUTPUT>
2111 <?xml version="1.0" encoding="UTF-8"?>
2112 <command>
2113 <name>create</name>
2114 <output>
2115 <session>
2116 <name>mysession</name>
2117 <path>/tmp</path>
2118 <enabled>false</enabled>
2119 <snapshot_mode>0</snapshot_mode>
2120 <live_timer_interval>0</live_timer_interval>
2121 </session>
2122 </output>
2123 <success>true</success>
2124 </command>
2125 </COMMAND_OUTPUT>
2126
2127 <COMMAND_INPUT>
2128 lttng --mi xml create mysession -C tcp://172.0.0.1 -D tcp://172.0.0.1:5343
2129 </COMMAND_INPUT>
2130 <COMMAND_RESULT>
2131 0
2132 </COMMAND_RESULT>
2133 <COMMAND_OUTPUT>
2134 <?xml version="1.0" encoding="UTF-8"?>
2135 <command>
2136 <name>create</name>
2137 <output>
2138 <session>
2139 <name>mysession</name>
2140 <path>tcp4://172.0.0.1:5342/ [data: 5343]</path>
2141 <enabled>false</enabled>
2142 <snapshot_mode>0</snapshot_mode>
2143 <live_timer_interval>0</live_timer_interval>
2144 </session>
2145 </output>
2146 <success>true</success>
2147 </command>
2148 </COMMAND_OUTPUT>
2149
2150 <COMMAND_INPUT>
2151 lttng --mi xml create mysession -U 172.0.0.1:1234:2345
2152 </COMMAND_INPUT>
2153 <COMMAND_RESULT>
2154 0
2155 </COMMAND_RESULT>
2156 <COMMAND_OUTPUT>
2157 <?xml version="1.0" encoding="UTF-8"?>
2158 <command>
2159 <name>create</name>
2160 <output>
2161 <session>
2162 <name>mysession</name>
2163 <path>tcp4://172.0.0.1:1234/mysession-20140813-102225 [data: 2345]</path>
2164 <enabled>false</enabled>
2165 <snapshot_mode>0</snapshot_mode>
2166 <live_timer_interval>0</live_timer_interval>
2167 </session>
2168 </output>
2169 <success>true</success>
2170 </command>
2171 </COMMAND_OUTPUT>
2172
2173 <COMMAND_INPUT>
2174 lttng --mi xml destroy mysession
2175 </COMMAND_INPUT>
2176 <COMMAND_RESULT>
2177 0
2178 </COMMAND_RESULT>
2179 <COMMAND_OUTPUT>
2180 <?xml version="1.0" encoding="UTF-8"?>
2181 <command>
2182 <name>destroy</name>
2183 <output>
2184 <sessions>
2185 <session>
2186 <name>mysession</name>
2187 <path>/home/user/lttng-traces/mysession-20140818-100114</path>
2188 <enabled>false</enabled>
2189 <snapshot_mode>0</snapshot_mode>
2190 <live_timer_interval>0</live_timer_interval>
2191 </session>
2192 </sessions>
2193 </output>
2194 <success>true</success>
2195 </command>
2196 </COMMAND_OUTPUT>
2197
2198 <COMMAND_INPUT>
2199 lttng --mi xml -vvv create mysession -U net://172.0.0.1
2200 </COMMAND_INPUT>
2201 <COMMAND_RESULT>
2202 0
2203 </COMMAND_RESULT>
2204 <COMMAND_OUTPUT>
2205 DEBUG3: URI string: net://172.0.0.1 [in uri_parse() at uri.c:253]
2206 DEBUG2: IP address resolved to 172.0.0.1 [in set_ip_address() at uri.c:132]
2207 DEBUG3: URI dtype: 1, proto: 1, host: 172.0.0.1, subdir: , ctrl: 0, data: 0 [in uri_parse() at uri.c:467]
2208 DEBUG1: LSM cmd type : 8 [in send_session_msg() at lttng-ctl.c:261]
2209 Session mysession created.
2210 Traces will be written in net://172.0.0.1
2211 DEBUG1: Init config session in /home/bernd [in config_init() at conf.c:294]
2212 </COMMAND_OUTPUT>
2213
2214 </SCENARIO>
2215
2216 ####################################################################
2217 # Scenario: Test "lttng create <session> --snapshot (LTTng 2.3)
2218 ####################################################################
2219 <SCENARIO>
2220 CreateSessionSnapshot
2221 <COMMAND_INPUT>
2222 lttng --mi xml create mysession --snapshot
2223 </COMMAND_INPUT>
2224 <COMMAND_RESULT>
2225 0
2226 </COMMAND_RESULT>
2227 <COMMAND_OUTPUT>
2228 <?xml version="1.0" encoding="UTF-8"?>
2229 <command>
2230 <name>create</name>
2231 <output>
2232 <session>
2233 <name>mysession</name>
2234 <path/>
2235 <enabled>false</enabled>
2236 <snapshot_mode>1</snapshot_mode>
2237 <live_timer_interval>4294967295</live_timer_interval>
2238 </session>
2239 </output>
2240 <success>true</success>
2241 </command>
2242 </COMMAND_OUTPUT>
2243 #------------------------------------------------------------------------------
2244 <COMMAND_INPUT>
2245 lttng --mi xml snapshot list-output -s mysession
2246 </COMMAND_INPUT>
2247 <COMMAND_RESULT>
2248 0
2249 </COMMAND_RESULT>
2250 <COMMAND_OUTPUT>
2251 <?xml version="1.0" encoding="UTF-8"?>
2252 <command>
2253 <name>snapshot</name>
2254 <output>
2255 <snapshot_action>
2256 <name>list-output</name>
2257 <output>
2258 <session>
2259 <name>mysession</name>
2260 <snapshots>
2261 <snapshot>
2262 <id>1</id>
2263 <name>snapshot-1</name>
2264 <ctrl_url>/home/user/lttng-traces/mysession-20130913-141651</ctrl_url>
2265 <data_url/>
2266 <max_size>0</max_size>
2267 </snapshot>
2268 </snapshots>
2269 </session>
2270 </output>
2271 </snapshot_action>
2272 </output>
2273 <success>true</success>
2274 </command>
2275 </COMMAND_OUTPUT>
2276 #------------------------------------------------------------------------------
2277 <COMMAND_INPUT>
2278 lttng --mi xml list
2279 </COMMAND_INPUT>
2280 <COMMAND_RESULT>
2281 0
2282 </COMMAND_RESULT>
2283 <COMMAND_OUTPUT>
2284 <?xml version="1.0" encoding="UTF-8"?>
2285 <command>
2286 <name>list</name>
2287 <output>
2288 <sessions>
2289 <session>
2290 <name>mysession</name>
2291 <path/>
2292 <enabled>false</enabled>
2293 <snapshot_mode>1</snapshot_mode>
2294 <live_timer_interval>4294967295</live_timer_interval>
2295 </session>
2296 </sessions>
2297 </output>
2298 </command>
2299 </COMMAND_OUTPUT>
2300 #------------------------------------------------------------------------------
2301 <COMMAND_INPUT>
2302 lttng --mi xml snapshot record -s mysession
2303 </COMMAND_INPUT>
2304 <COMMAND_RESULT>
2305 0
2306 </COMMAND_RESULT>
2307 <COMMAND_OUTPUT>
2308 Snapshot recorded successfully for session mysession
2309 </COMMAND_OUTPUT>
2310 #------------------------------------------------------------------------------
2311 <COMMAND_INPUT>
2312 lttng --mi xml destroy mysession
2313 </COMMAND_INPUT>
2314 <COMMAND_RESULT>
2315 0
2316 </COMMAND_RESULT>
2317 <COMMAND_OUTPUT>
2318 <?xml version="1.0" encoding="UTF-8"?>
2319 <command>
2320 <name>destroy</name>
2321 <output>
2322 <sessions>
2323 <session>
2324 <name>mysession</name>
2325 <path>/home/user/lttng-traces/mysession-20140818-100114</path>
2326 <enabled>false</enabled>
2327 <snapshot_mode>0</snapshot_mode>
2328 <live_timer_interval>0</live_timer_interval>
2329 </session>
2330 </sessions>
2331 </output>
2332 <success>true</success>
2333 </command>
2334 </COMMAND_OUTPUT>
2335 </SCENARIO>
2336
2337 ####################################################################
2338 # Scenario: Test "lttng create <session> --snapshot -U <URL> (LTTng 2.3)
2339 ####################################################################
2340 <SCENARIO>
2341 CreateSessionStreamedSnapshot
2342 <COMMAND_INPUT>
2343 lttng --mi xml create mysession --snapshot -U net://172.0.0.1
2344 </COMMAND_INPUT>
2345 <COMMAND_RESULT>
2346 0
2347 </COMMAND_RESULT>
2348 <COMMAND_OUTPUT>
2349 Session mysession created.
2350 Default snapshot output set to: net://172.0.0.1
2351 Snapshot mode set. Every channel enabled for that session will be set in overwrite mode and mmap output.
2352 </COMMAND_OUTPUT>
2353 #------------------------------------------------------------------------------
2354 <COMMAND_INPUT>
2355 lttng --mi xml snapshot list-output -s mysession
2356 </COMMAND_INPUT>
2357 <COMMAND_RESULT>
2358 0
2359 </COMMAND_RESULT>
2360 <COMMAND_OUTPUT>
2361 Snapshot output list for session mysession
2362 [2] snapshot-2: net4://172.0.0.1:5342/
2363 </COMMAND_OUTPUT>
2364 #------------------------------------------------------------------------------
2365 <COMMAND_INPUT>
2366 lttng --mi xml list
2367 </COMMAND_INPUT>
2368 <COMMAND_RESULT>
2369 0
2370 </COMMAND_RESULT>
2371 <COMMAND_OUTPUT>
2372 1) mysession () [inactive snapshot]
2373
2374 </COMMAND_OUTPUT>
2375 #------------------------------------------------------------------------------
2376 <COMMAND_INPUT>
2377 lttng --mi xml snapshot record -s mysession
2378 </COMMAND_INPUT>
2379 <COMMAND_RESULT>
2380 0
2381 </COMMAND_RESULT>
2382 <COMMAND_OUTPUT>
2383 Snapshot recorded successfully for session mysession
2384 </COMMAND_OUTPUT>
2385 #------------------------------------------------------------------------------
2386 <COMMAND_INPUT>
2387 lttng --mi xml destroy mysession
2388 </COMMAND_INPUT>
2389 <COMMAND_RESULT>
2390 0
2391 </COMMAND_RESULT>
2392 <COMMAND_OUTPUT>
2393 <?xml version="1.0" encoding="UTF-8"?>
2394 <command>
2395 <name>destroy</name>
2396 <output>
2397 <sessions>
2398 <session>
2399 <name>mysession</name>
2400 <path>/home/user/lttng-traces/mysession-20140818-100114</path>
2401 <enabled>false</enabled>
2402 <snapshot_mode>0</snapshot_mode>
2403 <live_timer_interval>0</live_timer_interval>
2404 </session>
2405 </sessions>
2406 </output>
2407 <success>true</success>
2408 </command>
2409 </COMMAND_OUTPUT>
2410 </SCENARIO>
2411
2412 ####################################################################
2413 # Scenario: Test "lttng create <session> --snapshot (LTTng 2.3)
2414 ####################################################################
2415 <SCENARIO>
2416 CreateSessionSnapshotErrors
2417 <COMMAND_INPUT>
2418 lttng --mi xml snapshot list-output -s blabla
2419 </COMMAND_INPUT>
2420 <COMMAND_RESULT>
2421 1
2422 </COMMAND_RESULT>
2423 <COMMAND_OUTPUT>
2424 <COMMAND_ERROR_OUTPUT>
2425 <?xml version="1.0" encoding="UTF-8"?>
2426 <command>
2427 <name>snapshot</name>
2428 <output>
2429 <snapshot_action>
2430 <name>list-output</name>
2431 <output/>
2432 </snapshot_action>
2433 </output>
2434 <success>false</success>
2435 </command>
2436 </COMMAND_ERROR_OUTPUT>
2437 </COMMAND_OUTPUT>
2438 #------------------------------------------------------------------------------
2439 #next is not an error case but good to be tested
2440 <COMMAND_INPUT>
2441 lttng --mi xml list
2442 </COMMAND_INPUT>
2443 <COMMAND_RESULT>
2444 0
2445 </COMMAND_RESULT>
2446 <COMMAND_OUTPUT>
2447 <?xml version="1.0" encoding="UTF-8"?>
2448 <command>
2449 <name>list</name>
2450 <output>
2451 <sessions>
2452 <session>
2453 <name>mysession</name>
2454 <path/>
2455 <enabled>true</enabled>
2456 <snapshot_mode>1</snapshot_mode>
2457 <live_timer_interval>4294967295</live_timer_interval>
2458 </session>
2459 </sessions>
2460 </output>
2461 </command>
2462 </COMMAND_OUTPUT>
2463 #------------------------------------------------------------------------------
2464 <COMMAND_INPUT>
2465 lttng --mi xml snapshot record -s blabla
2466 </COMMAND_INPUT>
2467 <COMMAND_RESULT>
2468 1
2469 </COMMAND_RESULT>
2470 <COMMAND_OUTPUT>
2471 <COMMAND_ERROR_OUTPUT>
2472 Error: Session name not found
2473 </COMMAND_ERROR_OUTPUT>
2474 <?xml version="1.0" encoding="UTF-8"?>
2475 <command>
2476 <name>snapshot</name>
2477 <output>
2478 <snapshot_action>
2479 <name>record</name>
2480 <output/>
2481 </snapshot_action>
2482 </output>
2483 <success>false</success>
2484 </command>
2485 </COMMAND_OUTPUT>
2486 #------------------------------------------------------------------------------
2487 <COMMAND_INPUT>
2488 lttng --mi xml snapshot record -s mysession
2489 </COMMAND_INPUT>
2490 <COMMAND_RESULT>
2491 1
2492 </COMMAND_RESULT>
2493 <COMMAND_OUTPUT>
2494 <COMMAND_ERROR_OUTPUT>
2495 Error: Session needs to be started once
2496 </COMMAND_ERROR_OUTPUT>
2497 <?xml version="1.0" encoding="UTF-8"?>
2498 <command>
2499 <name>snapshot</name>
2500 <output>
2501 <snapshot_action>
2502 <name>record</name>
2503 <output/>
2504 </snapshot_action>
2505 </output>
2506 <success>false</success>
2507 </command>
2508 </COMMAND_OUTPUT>
2509
2510 </SCENARIO>
2511
2512 ####################################################################
2513 # Scenario: Test "lttng create <session> --live [USEC] (LTTng 2.4)
2514 ####################################################################
2515 <SCENARIO>
2516 CreateSessionLive
2517 <COMMAND_INPUT>
2518 lttng --mi xml create mysession --live -U net://127.0.0.1
2519 </COMMAND_INPUT>
2520 <COMMAND_RESULT>
2521 0
2522 </COMMAND_RESULT>
2523 <COMMAND_OUTPUT>
2524 <?xml version="1.0" encoding="UTF-8"?>
2525 <command>
2526 <name>create</name>
2527 <output>
2528 <session>
2529 <name>mysession</name>
2530 <path>tcp4://127.0.0.1:5342/ [data: 5343]</path>
2531 <enabled>false</enabled>
2532 <snapshot_mode>0</snapshot_mode>
2533 <live_timer_interval>1000000</live_timer_interval>
2534 </session>
2535 </output>
2536 <success>true</success>
2537 </command>
2538 </COMMAND_OUTPUT>
2539 #------------------------------------------------------------------------------
2540 <COMMAND_INPUT>
2541 lttng --mi xml list
2542 </COMMAND_INPUT>
2543 <COMMAND_RESULT>
2544 0
2545 </COMMAND_RESULT>
2546 <COMMAND_OUTPUT>
2547 <?xml version="1.0" encoding="UTF-8"?>
2548 <command>
2549 <name>list</name>
2550 <output>
2551 <sessions>
2552 <session>
2553 <name>mysession</name>
2554 <path>tcp4://127.0.0.1:5342/ [data: 5343]</path>
2555 <enabled>false</enabled>
2556 <snapshot_mode>0</snapshot_mode>
2557 <live_timer_interval>1000000</live_timer_interval>
2558 </session>
2559 </sessions>
2560 </output>
2561 </command>
2562 </COMMAND_OUTPUT>
2563 #------------------------------------------------------------------------------
2564 <COMMAND_INPUT>
2565 lttng --mi xml destroy mysession
2566 </COMMAND_INPUT>
2567 <COMMAND_RESULT>
2568 0
2569 </COMMAND_RESULT>
2570 <COMMAND_OUTPUT>
2571 <?xml version="1.0" encoding="UTF-8"?>
2572 <command>
2573 <name>destroy</name>
2574 <output>
2575 <sessions>
2576 <session>
2577 <name>mysession</name>
2578 <path>/home/user/lttng-traces/mysession-20140818-100114</path>
2579 <enabled>false</enabled>
2580 <snapshot_mode>0</snapshot_mode>
2581 <live_timer_interval>0</live_timer_interval>
2582 </session>
2583 </sessions>
2584 </output>
2585 <success>true</success>
2586 </command>
2587 </COMMAND_OUTPUT>
2588 </SCENARIO>
2589
2590 ####################################################################
2591 # Scenario: Test errors for "lttng create <session> --live [USEC] (LTTng 2.4)
2592 ####################################################################
2593 <SCENARIO>
2594 CreateSessionLiveErrors
2595 <COMMAND_INPUT>
2596 lttng --mi xml create mysession --live --snapshot
2597 </COMMAND_INPUT>
2598 <COMMAND_RESULT>
2599 1
2600 </COMMAND_RESULT>
2601 <COMMAND_OUTPUT>
2602 <COMMAND_ERROR_OUTPUT>
2603 Error: Snapshot and live modes are mutually exclusive.
2604 Error: Command error
2605 </COMMAND_ERROR_OUTPUT>
2606 </COMMAND_OUTPUT>
2607 #------------------------------------------------------------------------------
2608 <COMMAND_INPUT>
2609 lttng --mi xml create mysession --live -U blah
2610 </COMMAND_INPUT>
2611 <COMMAND_RESULT>
2612 1
2613 </COMMAND_RESULT>
2614 <COMMAND_OUTPUT>
2615 <COMMAND_ERROR_OUTPUT>
2616 Error: URI parse unknown protocol blah
2617 Error: Unable to parse the URL blah
2618 Error: Invalid parameter
2619 </COMMAND_ERROR_OUTPUT>
2620 </COMMAND_OUTPUT>
2621 #------------------------------------------------------------------------------
2622 <COMMAND_INPUT>
2623 lttng --mi xml create mysession --live -C net://127.0.0.1
2624 </COMMAND_INPUT>
2625 <COMMAND_RESULT>
2626 1
2627 </COMMAND_RESULT>
2628 <COMMAND_OUTPUT>
2629 <COMMAND_ERROR_OUTPUT>
2630 Error: You need both control and data URL.
2631 Error: Command error
2632 </COMMAND_ERROR_OUTPUT>
2633 </COMMAND_OUTPUT>
2634 </SCENARIO>
2635
2636 ####################################################################
2637 # Scenario: Test "lttng list <session> (version 2.6.0, syscalls)
2638 ####################################################################
2639 <SCENARIO>
2640 GetSessionWithSyscalls
2641 <COMMAND_INPUT>
2642 lttng --mi xml list mysession
2643 </COMMAND_INPUT>
2644 <COMMAND_RESULT>
2645 0
2646 </COMMAND_RESULT>
2647 <COMMAND_OUTPUT>
2648 <?xml version="1.0" encoding="UTF-8"?>
2649 <command>
2650 <name>list</name>
2651 <output>
2652 <sessions>
2653 <session>
2654 <name>mysession</name>
2655 <path>/home/user/lttng-traces/mysession-20120129-084256</path>
2656 <enabled>false</enabled><snapshot_mode>0</snapshot_mode>
2657 <live_timer_interval>0</live_timer_interval>
2658 <domains>
2659 <domain>
2660 <type>KERNEL</type>
2661 <buffer_type>PER_PID</buffer_type>
2662 <channels>
2663 <channel>
2664 <name>channel0</name>
2665 <enabled>true</enabled>
2666 <attributes>
2667 <overwrite_mode>DISCARD</overwrite_mode>
2668 <subbuffer_size>262144</subbuffer_size>
2669 <subbuffer_count>4</subbuffer_count>
2670 <switch_timer_interval>0</switch_timer_interval>
2671 <read_timer_interval>200</read_timer_interval>
2672 <output_type>SPLICE</output_type>
2673 <tracefile_size>0</tracefile_size>
2674 <tracefile_count>0</tracefile_count>
2675 <live_timer_interval>0</live_timer_interval>
2676 </attributes><events>
2677 <event>
2678 <name>read</name>
2679 <type>SYSCALL</type>
2680 <enabled>true</enabled>
2681 <filter>false</filter>
2682 </event>
2683 <event>
2684 <name>write</name>
2685 <type>SYSCALL</type>
2686 <enabled>true</enabled>
2687 <filter>false</filter>
2688 </event>
2689 </events>
2690 </channel>
2691 </channels>
2692 </domain></domains>
2693 </session>
2694 </sessions>
2695 </output>
2696 </command>
2697 </COMMAND_OUTPUT>
2698 </SCENARIO>
2699 <SCENARIO>
2700 ListSession2.7Compat
2701 <COMMAND_INPUT>
2702 lttng --mi xml list mysession
2703 </COMMAND_INPUT>
2704 <COMMAND_RESULT>
2705 0
2706 </COMMAND_RESULT>
2707 <COMMAND_OUTPUT>
2708 <?xml version="1.0" encoding="UTF-8"?>
2709 <command>
2710 <name>list</name>
2711 <output>
2712 <sessions>
2713 <session>
2714 <name>mysession</name>
2715 <path>/home/user/lttng-traces/mysession-20151020-085614</path>
2716 <enabled>false</enabled>
2717 <snapshot_mode>0</snapshot_mode>
2718 <live_timer_interval>0</live_timer_interval>
2719 <domains>
2720 <domain>
2721 <type>KERNEL</type>
2722 <buffer_type>GLOBAL</buffer_type>
2723 <trackers/>
2724 <channels>
2725 <channel>
2726 <name>channel0</name>
2727 <enabled>true</enabled>
2728 <attributes>
2729 <overwrite_mode>DISCARD</overwrite_mode>
2730 <subbuffer_size>262144</subbuffer_size>
2731 <subbuffer_count>4</subbuffer_count>
2732 <switch_timer_interval>0</switch_timer_interval>
2733 <read_timer_interval>200000</read_timer_interval>
2734 <output_type>SPLICE</output_type>
2735 <tracefile_size>0</tracefile_size>
2736 <tracefile_count>0</tracefile_count>
2737 <live_timer_interval>0</live_timer_interval>
2738 </attributes>
2739 <events>
2740 <event><name>*</name>
2741 <type>SYSCALL</type>
2742 <enabled>true</enabled>
2743 <filter>false</filter>
2744 </event>
2745 <event>
2746 <name>*</name>
2747 <type>TRACEPOINT</type>
2748 <enabled>true</enabled>
2749 <filter>false</filter>
2750 <loglevel>TRACE_EMERG</loglevel>
2751 <loglevel_type>ALL</loglevel_type>
2752 <exclusion>false</exclusion>
2753 </event>
2754 </events>
2755 </channel>
2756 </channels>
2757 </domain>
2758 <domain>
2759 <type>UST</type>
2760 <buffer_type>PER_PID</buffer_type>
2761 <trackers/>
2762 <channels>
2763 <channel>
2764 <name>channel0</name>
2765 <enabled>true</enabled>
2766 <attributes>
2767 <overwrite_mode>DISCARD</overwrite_mode>
2768 <subbuffer_size>4096</subbuffer_size>
2769 <subbuffer_count>4</subbuffer_count>
2770 <switch_timer_interval>0</switch_timer_interval>
2771 <read_timer_interval>0</read_timer_interval>
2772 <output_type>MMAP</output_type>
2773 <tracefile_size>0</tracefile_size>
2774 <tracefile_count>0</tracefile_count>
2775 <live_timer_interval>0</live_timer_interval>
2776 </attributes>
2777 <events>
2778 <event><name>*</name>
2779 <type>TRACEPOINT</type>
2780 <enabled>true</enabled>
2781 <filter>false</filter>
2782 <exclusion>false</exclusion>
2783 </event></events>
2784 </channel>
2785 </channels>
2786 </domain>
2787 </domains>
2788 </session>
2789 </sessions>
2790 </output>
2791 </command>
2792 </COMMAND_OUTPUT>
2793 </SCENARIO>
2794 ####################################################################
2795 # Scenario: Test "lttng load [OPTIONS] [SESSION]"
2796 # "lttng save [OPTIONS] [SESSION]"
2797 # (LTTng 2.5)
2798 ####################################################################
2799 <SCENARIO>
2800 SessionProfile
2801 <COMMAND_INPUT>
2802 lttng --mi xml load -i /home/user/.lttng/sessions/mysession.lttng
2803 </COMMAND_INPUT>
2804 <COMMAND_RESULT>
2805 0
2806 </COMMAND_RESULT>
2807 <COMMAND_OUTPUT>
2808 <command><name>load</name><output><load><session><name>*</name></session><path>.lttng/sessions/seqSession2.lttng</path></load></output><success>true</success></command>
2809 </COMMAND_OUTPUT>
2810
2811 <SCENARIO>
2812 SessionProfile
2813 <COMMAND_INPUT>
2814 lttng --mi xml load -i /home/user/.lttng/sessions/mysession.lttng -f
2815 </COMMAND_INPUT>
2816 <COMMAND_RESULT>
2817 0
2818 </COMMAND_RESULT>
2819 <COMMAND_OUTPUT>
2820 <command><name>load</name><output><load><session><name>*</name></session><path>.lttng/sessions/seqSession2.lttng</path></load></output><success>true</success></command>
2821 </COMMAND_OUTPUT>
2822
2823 <COMMAND_INPUT>
2824 lttng --mi xml save
2825 </COMMAND_INPUT>
2826 <COMMAND_RESULT>
2827 0
2828 </COMMAND_RESULT>
2829 <COMMAND_OUTPUT>
2830 <command><name>save</name><output><save><session><name>*</name></session></save></output><success>true</success></command>
2831 </COMMAND_OUTPUT>
2832
2833 <COMMAND_INPUT>
2834 lttng --mi xml save mysession
2835 </COMMAND_INPUT>
2836 <COMMAND_RESULT>
2837 0
2838 </COMMAND_RESULT>
2839 <COMMAND_OUTPUT>
2840 <command><name>save</name><output><save><session><name>seqSession2</name></session></save></output><success>true</success></command>
2841 </COMMAND_OUTPUT>
2842
2843 <COMMAND_INPUT>
2844 lttng --mi xml save -f mysession
2845 </COMMAND_INPUT>
2846 <COMMAND_RESULT>
2847 0
2848 </COMMAND_RESULT>
2849 <COMMAND_OUTPUT>
2850 <command><name>save</name><output><save><session><name>seqSession2</name></session></save></output><success>true</success></command>
2851 </COMMAND_OUTPUT>
2852
2853 <COMMAND_INPUT>
2854 lttng --mi xml save -o /tmp/test -f mysession
2855 </COMMAND_INPUT>
2856 <COMMAND_RESULT>
2857 0
2858 </COMMAND_RESULT>
2859 <COMMAND_OUTPUT>
2860 <command><name>save</name><output><save><session><name>seqSession2</name></session></save></output><success>true</success></command>
2861 </COMMAND_OUTPUT>
2862
2863 </SCENARIO>
This page took 0.091482 seconds and 4 git commands to generate.