1 ####################################################################
2 # Copyright (c) 2014, 2016 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 # Jonathan Rajotte - Initial API and implementation
11 # Bernd Hufmann - Added new test cases
12 # Marc-Andre Laperle - Adapted to MI 3.0 (LTTng 2.8)
13 ####################################################################
14 ####################################################################
15 # Scenario: Test lttng not installed
16 ####################################################################
26 <COMMAND_ERROR_OUTPUT>
28 </COMMAND_ERROR_OUTPUT>
32 ####################################################################
33 # Scenario: Test lttng version
34 ####################################################################
44 lttng version 2.8.0 - Isseki Nicho
45 Web site: http://lttng.org
47 lttng is free software and under the GPL license and part LGPL
51 ####################################################################
52 # Scenario: Test lttng version
54 ####################################################################
56 LttngVersionWithPrompt
64 Prompt> lttng version 2.8.0 - Isseki Nicho
65 Web site: http://lttng.org
67 lttng is free software and under the GPL license and part LGPL
71 ####################################################################
72 # Scenario: Test lttng version (unsupported version)
73 ####################################################################
75 LttngUnsupportedVersion
83 lttng version 200.0.0 - Annedd'ale
84 Web site: http://lttng.org/
86 lttng is free software and under the GPL license and part LGPL
91 ####################################################################
92 # Scenario: Test lttng version (noversion)
93 ####################################################################
103 Web site: http://lttng.org/
105 lttng is free software and under the GPL license and part LGPL
109 ####################################################################
110 # Scenario: Test lttng version (compiled from source)
111 ####################################################################
115 lttng --mi xml version
121 <?xml version="1.0" encoding="UTF-8"?>
122 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
126 <string>2.8.0-rc1</string>
129 <commit>v2.8.0-rc1-29-g55b4b79</commit>
130 <patchLevel>0</patchLevel>
131 <name>Isseki Nicho</name>
132 <description>The result of a collaboration between "Dieu du Ciel!" and Nagano-based "Shiga Kogen", Isseki Nicho is a strong Imperial Dark Saison offering a rich roasted malt flavor combined with a complex fruity finish typical of Saison yeasts.</description>
133 <url>https://lttng.org</url>
134 <license>lttng is free software and under the GPL license and part LGPL</license>
141 ####################################################################
142 # Scenario: Test no sessions available
143 ####################################################################
153 <?xml version="1.0" encoding="UTF-8"?>
154 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0"><name>list</name><output><sessions/></output></command>
158 ####################################################################
159 # Scenario: Test get sessions
160 ####################################################################
170 <?xml version="1.0" encoding="UTF-8"?>
171 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
176 <name>mysession1</name>
177 <path>home/user/lttng-traces/mysession1-20120123-083928</path>
178 <enabled>false</enabled>
179 <snapshot_mode>0</snapshot_mode>
180 <live_timer_interval>0</live_timer_interval>
183 <name>mysession</name>
184 <path>home/user/lttng-traces/mysession-20120123-083318</path>
185 <enabled>false</enabled>
186 <snapshot_mode>0</snapshot_mode>
187 <live_timer_interval>0</live_timer_interval>
195 ####################################################################
196 # Scenario: Test get sessions with tracing group
197 ####################################################################
199 GetSessionWithTracingGroup
201 lttng -g group --mi xml list
207 <?xml version="1.0" encoding="UTF-8"?>
208 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
213 <name>mysession1</name>
214 <path>home/user/lttng-traces/mysession1-20120123-083928</path>
215 <enabled>false</enabled>
216 <snapshot_mode>0</snapshot_mode>
217 <live_timer_interval>0</live_timer_interval>
220 <name>mysession</name>
221 <path>home/user/lttng-traces/mysession-20120123-083318</path>
222 <enabled>false</enabled>
223 <snapshot_mode>0</snapshot_mode>
224 <live_timer_interval>0</live_timer_interval>
233 ####################################################################
234 # Scenario: Test lttng list <name> where session doesn't exist
235 ####################################################################
237 GetSessionNameNotExist
239 lttng --mi xml list test
245 <?xml version="1.0" encoding="UTF-8"?>
246 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0"><name>list</name><output><sessions/></output></command>
247 <COMMAND_ERROR_OUTPUT>
248 Error: Session 'test' not found
250 </COMMAND_ERROR_OUTPUT>
254 ####################################################################
255 # Scenario: Test lttng -vvv list <name> where session doesn't exist
256 ####################################################################
258 GetSessionNameNotExistVerbose
260 lttng --mi xml -vvv list test
266 <?xml version="1.0" encoding="UTF-8"?>
267 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0"><name>list</name><output><sessions/></output></command>
268 <COMMAND_ERROR_OUTPUT>
269 Error: Session 'test' not found
271 </COMMAND_ERROR_OUTPUT>
275 ####################################################################
276 # Scenario: Test lttng list with garbage output
277 ####################################################################
287 asdfaereafsdcv 12333456434&*89**(())(^%$*
288 @#$%^&*()@#$%^&*()0834523094578kj;djkfs
289 a;sdf094v5u dsafj;sd9
293 ####################################################################
294 # Scenario: Test lttng list <name> with sample outputs
295 ####################################################################
299 lttng --mi xml list mysession
305 <?xml version="1.0" encoding="UTF-8"?>
306 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
311 <name>mysession</name>
312 <path>/home/user/lttng-traces/mysession-20120129-084256</path>
313 <enabled>true</enabled>
314 <snapshot_mode>0</snapshot_mode>
315 <live_timer_interval>0</live_timer_interval>
319 <buffer_type>PER_PID</buffer_type>
322 <name>channel0</name>
323 <enabled>true</enabled>
325 <overwrite_mode>DISCARD</overwrite_mode>
326 <subbuffer_size>262144</subbuffer_size>
327 <subbuffer_count>4</subbuffer_count>
328 <switch_timer_interval>0</switch_timer_interval>
329 <read_timer_interval>200</read_timer_interval>
330 <output_type>SPLICE</output_type>
331 <tracefile_size>0</tracefile_size>
332 <tracefile_count>0</tracefile_count>
333 <live_timer_interval>0</live_timer_interval>
337 <name>block_rq_remap</name>
338 <type>TRACEPOINT</type>
339 <enabled>true</enabled>
340 <loglevel>TRACE_EMERG</loglevel>
341 <loglevel_type>ALL</loglevel_type>
344 <name>block_bio_remap</name>
345 <type>TRACEPOINT</type>
346 <enabled>false</enabled>
347 <loglevel>TRACE_EMERG</loglevel>
348 <loglevel_type>ALL</loglevel_type>
353 <name>channel1</name>
354 <enabled>false</enabled>
356 <overwrite_mode>OVERWRITE</overwrite_mode>
357 <subbuffer_size>524288</subbuffer_size>
358 <subbuffer_count>4</subbuffer_count>
359 <switch_timer_interval>100</switch_timer_interval>
360 <read_timer_interval>400</read_timer_interval>
361 <output_type>SPLICE</output_type>
362 <tracefile_size>0</tracefile_size>
363 <tracefile_count>0</tracefile_count>
364 <live_timer_interval>4294967295</live_timer_interval>
372 <buffer_type>PER_UID</buffer_type>
375 <name>mychannel1</name>
376 <enabled>false</enabled>
378 <overwrite_mode>OVERWRITE</overwrite_mode>
379 <subbuffer_size>8192</subbuffer_size>
380 <subbuffer_count>8</subbuffer_count>
381 <switch_timer_interval>200</switch_timer_interval>
382 <read_timer_interval>100</read_timer_interval>
383 <output_type>MMAP</output_type>
384 <tracefile_size>0</tracefile_size>
385 <tracefile_count>0</tracefile_count>
386 <live_timer_interval>0</live_timer_interval>
391 <name>channel0</name>
392 <enabled>true</enabled>
394 <overwrite_mode>DISCARD</overwrite_mode>
395 <subbuffer_size>4096</subbuffer_size>
396 <subbuffer_count>4</subbuffer_count>
397 <switch_timer_interval>0</switch_timer_interval>
398 <read_timer_interval>200</read_timer_interval>
399 <output_type>MMAP</output_type>
400 <tracefile_size>0</tracefile_size>
401 <tracefile_count>0</tracefile_count>
402 <live_timer_interval>0</live_timer_interval>
406 <name>ust_tests_hello:tptest_sighandler</name>
407 <type>TRACEPOINT</type>
408 <enabled>false</enabled>
409 <loglevel>TRACE_DEBUG_LINE</loglevel>
410 <loglevel_type>ALL</loglevel_type>
414 <type>TRACEPOINT</type>
415 <enabled>true</enabled>
428 lttng --mi xml list mysession1
434 <?xml version="1.0" encoding="UTF-8"?>
435 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
440 <name>mysession1</name>
441 <path>/home/user/lttng-traces/mysession1-20120203-133225</path>
442 <enabled>false</enabled>
443 <snapshot_mode>0</snapshot_mode>
444 <live_timer_interval>0</live_timer_interval>
453 ####################################################################
454 # Scenario: Test lttng list <name> in the presence of filter expressions
455 ####################################################################
457 GetSessionFilterExpression
459 lttng --mi xml list mysession
465 <?xml version="1.0" encoding="UTF-8"?>
466 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
471 <name>mysession</name>
472 <path>/home/user/lttng-traces/mysession-20120129-084256</path>
473 <enabled>true</enabled>
474 <snapshot_mode>0</snapshot_mode>
475 <live_timer_interval>0</live_timer_interval>
479 <buffer_type>PER_PID</buffer_type>
482 <name>channel0</name>
483 <enabled>true</enabled>
485 <overwrite_mode>DISCARD</overwrite_mode>
486 <subbuffer_size>262144</subbuffer_size>
487 <subbuffer_count>4</subbuffer_count>
488 <switch_timer_interval>0</switch_timer_interval>
489 <read_timer_interval>200</read_timer_interval>
490 <output_type>SPLICE</output_type>
491 <tracefile_size>0</tracefile_size>
492 <tracefile_count>0</tracefile_count>
493 <live_timer_interval>0</live_timer_interval>
497 <name>block_rq_remap</name>
498 <type>TRACEPOINT</type>
499 <enabled>true</enabled>
500 <filter_expression>foo > 10</filter_expression>
501 <loglevel>TRACE_EMERG</loglevel>
502 <loglevel_type>ALL</loglevel_type>
510 <buffer_type>PER_UID</buffer_type>
513 <name>channel0</name>
514 <enabled>true</enabled>
516 <overwrite_mode>DISCARD</overwrite_mode>
517 <subbuffer_size>4096</subbuffer_size>
518 <subbuffer_count>4</subbuffer_count>
519 <switch_timer_interval>0</switch_timer_interval>
520 <read_timer_interval>200</read_timer_interval>
521 <output_type>MMAP</output_type>
522 <tracefile_size>0</tracefile_size>
523 <tracefile_count>0</tracefile_count>
524 <live_timer_interval>0</live_timer_interval>
528 <name>ust_tests_hello:tptest_sighandler</name>
529 <type>TRACEPOINT</type>
530 <enabled>false</enabled>
531 <filter_expression>foo > 10</filter_expression>
532 <loglevel>TRACE_DEBUG_LINE</loglevel>
533 <loglevel_type>ALL</loglevel_type>
547 ####################################################################
548 # Scenario: Test lttng list <name> (with live time interval)
549 ####################################################################
551 GetSessionWithLiveInterval
553 lttng --mi xml list mysession
559 <?xml version="1.0" encoding="UTF-8"?>
560 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
565 <name>mysession</name>
566 <path>/home/user/lttng-traces/mysession-20120129-084256</path>
567 <enabled>false</enabled>
568 <snapshot_mode>1</snapshot_mode>
569 <live_timer_interval>4294967295</live_timer_interval>
577 #------------------------------------------------------------------------------
579 lttng --mi xml snapshot list-output -s mysession
585 <?xml version="1.0" encoding="UTF-8"?>
586 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
587 <name>snapshot</name>
590 <name>list-output</name>
593 <name>mysession</name>
597 <name>snapshot-1</name>
598 <ctrl_url>/home/user/lttng-traces/mysession-20120129-084256</ctrl_url>
600 <max_size>0</max_size>
607 <success>true</success>
610 #------------------------------------------------------------------------------
612 lttng --mi xml list mysession1
618 <?xml version="1.0" encoding="UTF-8"?>
619 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
624 <name>mysession1</name>
625 <path>/home/user/lttng-traces/mysession1-20120129-084256</path>
626 <enabled>true</enabled>
627 <snapshot_mode>0</snapshot_mode>
628 <live_timer_interval>0</live_timer_interval>
635 #------------------------------------------------------------------------------
637 lttng --mi xml list mysession2
643 <?xml version="1.0" encoding="UTF-8"?>
644 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
649 <name>mysession2</name>
650 <path>tcp4://172.0.0.1:5342/ [data: 5343]</path>
651 <enabled>false</enabled>
652 <snapshot_mode>0</snapshot_mode>
653 <live_timer_interval>1000000</live_timer_interval>
664 ####################################################################
665 # Scenario: Test "lttng list -k" with sample output
666 ####################################################################
670 lttng --mi xml list -k
676 <?xml version="1.0" encoding="UTF-8"?>
677 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
683 <buffer_type>PER_PID</buffer_type>
686 <name>sched_kthread_stop</name>
687 <type>TRACEPOINT</type>
688 <enabled>true</enabled>
689 <loglevel>TRACE_EMERG</loglevel>
690 <loglevel_type>ALL</loglevel_type>
693 <name>sched_kthread_stop_ret</name>
694 <type>TRACEPOINT</type>
695 <enabled>true</enabled>
696 <loglevel>TRACE_EMERG</loglevel>
697 <loglevel_type>ALL</loglevel_type>
700 <name>sched_wakeup_new</name>
701 <type>TRACEPOINT</type>
702 <enabled>true</enabled>
703 <loglevel>TRACE_EMERG</loglevel>
704 <loglevel_type>ALL</loglevel_type>
714 ####################################################################
715 # Scenario: Test "lttng list -k" with no kernel and no session daemon
716 ####################################################################
720 lttng --mi xml list -k
726 Spawning session daemon
727 <COMMAND_ERROR_OUTPUT>
728 Error: Unable to list kernel events
729 </COMMAND_ERROR_OUTPUT>
733 ####################################################################
734 # Scenario: Test "lttng list -k" with no kernel and with session daemon
735 ####################################################################
739 lttng --mi xml list -k
745 <COMMAND_ERROR_OUTPUT>
746 Error: Unable to list kernel events
747 </COMMAND_ERROR_OUTPUT>
751 ####################################################################
752 # Scenario: Test "lttng list -u" with sample output
753 ####################################################################
757 lttng --mi xml list -u -f
763 <?xml version="1.0" encoding="UTF-8"?>
764 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
770 <buffer_type>PER_PID</buffer_type>
774 <name>/home/user/git/lttng-ust/tests/hello.cxx/.libs/lt-hello</name>
777 <name>ust_tests_hello:tptest_sighandler</name>
778 <type>TRACEPOINT</type>
779 <enabled>true</enabled>
780 <loglevel>TRACE_DEBUG_MODULE</loglevel>
781 <loglevel_type>ALL</loglevel_type>
785 <name>ust_tests_hello:tptest</name>
786 <type>TRACEPOINT</type>
787 <enabled>true</enabled>
788 <loglevel>TRACE_INFO</loglevel>
789 <loglevel_type>ALL</loglevel_type>
792 <name>doublefield</name>
797 <name>floatfield</name>
802 <name>stringfield</name>
812 <name>/home/user/git/lttng-ust/tests/hello.cxx/.libs/lt-hello</name>
815 <name>ust_tests_hello:tptest_sighandler</name>
816 <type>TRACEPOINT</type>
817 <enabled>true</enabled>
818 <loglevel>TRACE_WARNING</loglevel>
819 <loglevel_type>ALL</loglevel_type>
823 <name>ust_tests_hello:tptest</name>
824 <type>TRACEPOINT</type>
825 <enabled>true</enabled>
826 <loglevel>TRACE_DEBUG_FUNCTION</loglevel>
827 <loglevel_type>ALL</loglevel_type>
830 <name>doublefield</name>
835 <name>floatfield</name>
840 <name>stringfield</name>
856 ####################################################################
857 # Scenario: Test "lttng list -u" with no UST provider available
858 ####################################################################
862 lttng --mi xml list -u -f
868 <?xml version="1.0" encoding="UTF-8"?>
869 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
875 <buffer_type>PER_PID</buffer_type>
884 ####################################################################
885 # Scenario: Test "lttng list -u" with no UST available (LTTng 2.0.x)
886 ####################################################################
890 lttng --mi xml list -u -f
896 <?xml version="1.0" encoding="UTF-8"?>
897 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0"><name>list</name><output/></command>
898 <COMMAND_ERROR_OUTPUT>
899 Error: Unable to list UST event fields: LTTng-UST tracer is not supported. Please rebuild lttng-tools with lttng-ust support enabled.
901 </COMMAND_ERROR_OUTPUT>
904 ####################################################################
905 # Scenario: Test "lttng list -u" with no UST available and no session daemon
906 ####################################################################
910 lttng --mi xml list -u -f
916 <?xml version="1.0" encoding="UTF-8"?>
917 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0"><name>list</name><output/></command>
918 <COMMAND_ERROR_OUTPUT>
919 Error: Unable to list UST event fields: LTTng-UST tracer is not supported. Please rebuild lttng-tools with lttng-ust support enabled.
921 </COMMAND_ERROR_OUTPUT>
924 ####################################################################
925 # Scenario: Test "lttng list -" with no kernel and with session daemon
926 ####################################################################
930 lttng --mi xml list -u -f
936 <?xml version="1.0" encoding="UTF-8"?>
937 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0"><name>list</name><output/></command>
938 <COMMAND_ERROR_OUTPUT>
939 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.
941 </COMMAND_ERROR_OUTPUT>
945 ####################################################################
946 # Scenario: Test "lttng list -u -f" with sample output (version 2.6.0)
947 ####################################################################
951 lttng --mi xml list -u -f
957 <?xml version="1.0" encoding="UTF-8"?>
958 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
964 <buffer_type>PER_PID</buffer_type>
968 <name>/home/user/git/lttng-ust/tests/hello.cxx/.libs/lt-hello</name>
971 <name>ust_tests_hello:tptest_sighandler</name>
972 <type>TRACEPOINT</type>
973 <enabled>true</enabled>
974 <loglevel>TRACE_DEBUG_MODULE</loglevel>
975 <loglevel_type>ALL</loglevel_type>
979 <name>ust_tests_hello:tptest</name>
980 <type>TRACEPOINT</type>
981 <enabled>true</enabled>
982 <loglevel>TRACE_INFO</loglevel>
983 <loglevel_type>ALL</loglevel_type>
986 <name>doublefield</name>
991 <name>floatfield</name>
996 <name>stringfield</name>
1006 <name>/home/user/git/lttng-ust/tests/hello.cxx/.libs/lt-hello</name>
1009 <name>ust_tests_hello:tptest_sighandler</name>
1010 <type>TRACEPOINT</type>
1011 <enabled>true</enabled>
1012 <loglevel>TRACE_WARNING</loglevel>
1013 <loglevel_type>ALL</loglevel_type>
1017 <name>ust_tests_hello:tptest</name>
1018 <type>TRACEPOINT</type>
1019 <enabled>true</enabled>
1020 <loglevel>TRACE_DEBUG_FUNCTION</loglevel>
1021 <loglevel_type>ALL</loglevel_type>
1024 <name>doublefield</name>
1026 <nowrite>0</nowrite>
1029 <name>floatfield</name>
1031 <nowrite>0</nowrite>
1034 <name>stringfield</name>
1036 <nowrite>0</nowrite>
1049 ####################################################################
1050 # Scenario: Test "lttng create <session>
1051 ####################################################################
1055 lttng --mi xml create mysession2
1061 <?xml version="1.0" encoding="UTF-8"?>
1062 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
1066 <name>mysession2</name>
1067 <path>/home/user/lttng-traces/mysession2-20120209-095418</path>
1068 <enabled>false</enabled>
1069 <snapshot_mode>0</snapshot_mode>
1070 <live_timer_interval>0</live_timer_interval>
1073 <success>true</success>
1078 ####################################################################
1079 # Scenario: Test "lttng create <session>
1080 ####################################################################
1082 CreateSessionWithPrompt
1084 lttng --mi xml create mysession2
1090 Prompt> Session mysession2 created.
1091 Traces will be written in /home/user/lttng-traces/mysession2-20120209-095418
1095 ####################################################################
1096 # Scenario: Test "lttng create <session> with different variants
1098 ####################################################################
1100 CreateSessionVariants
1102 lttng --mi xml create alreadyExist
1108 <?xml version="1.0" encoding="UTF-8"?>
1109 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
1112 <success>false</success>
1114 <COMMAND_ERROR_OUTPUT>
1115 Warning: Session mysession2 already exists
1116 Error: Session name already exists
1117 </COMMAND_ERROR_OUTPUT>
1121 lttng --mi xml create session with spaces
1127 <?xml version="1.0" encoding="UTF-8"?>
1128 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
1132 <name>session with spaces</name>
1133 <path>/home/user/lttng-traces/session with spaces-20120209-095418</path>
1134 <enabled>false</enabled>
1135 <snapshot_mode>0</snapshot_mode>
1136 <live_timer_interval>0</live_timer_interval>
1139 <success>true</success>
1144 lttng --mi xml create wrongName
1150 <?xml version="1.0" encoding="UTF-8"?>
1151 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
1156 <path>/home/user/lttng-traces/auto-20120209-095418</path>
1157 <enabled>false</enabled>
1158 <snapshot_mode>0</snapshot_mode>
1159 <live_timer_interval>0</live_timer_interval>
1162 <success>true</success>
1167 lttng --mi xml create wrongPath -o /home/user/hallo
1173 <?xml version="1.0" encoding="UTF-8"?>
1174 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
1178 <name>wrongPath</name>
1179 <path>/home/user/lttng-traces/wrongPath-20120209-095418</path>
1180 <enabled>false</enabled>
1181 <snapshot_mode>0</snapshot_mode>
1182 <live_timer_interval>0</live_timer_interval>
1185 <success>true</success>
1190 lttng --mi xml create pathWithSpaces -o /home/user/hallo user/here
1196 <?xml version="1.0" encoding="UTF-8"?>
1197 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
1201 <name>pathWithSpaces</name>
1202 <path>/home/user/hallo user/here/pathWithSpaces-20120209-095418</path>
1203 <enabled>false</enabled>
1204 <snapshot_mode>0</snapshot_mode>
1205 <live_timer_interval>0</live_timer_interval>
1208 <success>true</success>
1213 ####################################################################
1214 # Scenario: Test "lttng destroy <session>
1215 ####################################################################
1220 lttng --mi xml destroy mysession2
1226 <?xml version="1.0" encoding="UTF-8"?>
1227 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
1228 <name>destroy</name>
1232 <name>mysession2</name>
1233 <path>/home/user/lttng-traces/mysession2-20140812-160632</path>
1234 <enabled>false</enabled>
1235 <snapshot_mode>0</snapshot_mode>
1236 <live_timer_interval>0</live_timer_interval>
1240 <success>true</success>
1245 ####################################################################
1246 # Scenario: Test "lttng enable-channel ..." with different inputs
1247 ####################################################################
1252 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
1258 Kernel channel mychannel0 enabled for session mysession2
1259 Kernel channel mychannel1 enabled for session mysession2
1263 lttng --mi xml enable-channel mychannel0,mychannel1 -k -s mysession2 --overwrite --subbuf-size 16384 --num-subbuf 2 --switch-timer 200 --read-timer 100
1269 <?xml version="1.0" encoding="UTF-8"?>
1270 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
1271 <name>enable-channel</name>
1275 <name>mychannel0</name>
1276 <enabled>false</enabled>
1278 <overwrite_mode>OVERWRITE</overwrite_mode>
1279 <subbuffer_size>16384</subbuffer_size>
1280 <subbuffer_count>2</subbuffer_count>
1281 <switch_timer_interval>200</switch_timer_interval>
1282 <read_timer_interval>100</read_timer_interval>
1283 <output_type>SPLICE</output_type>
1284 <tracefile_size>0</tracefile_size>
1285 <tracefile_count>0</tracefile_count>
1286 <live_timer_interval>4294967295</live_timer_interval>
1288 <success>true</success>
1291 <name>mychannel1</name>
1292 <enabled>false</enabled>
1294 <overwrite_mode>OVERWRITE</overwrite_mode>
1295 <subbuffer_size>16384</subbuffer_size>
1296 <subbuffer_count>2</subbuffer_count>
1297 <switch_timer_interval>200</switch_timer_interval>
1298 <read_timer_interval>100</read_timer_interval>
1299 <output_type>SPLICE</output_type>
1300 <tracefile_size>0</tracefile_size>
1301 <tracefile_count>0</tracefile_count>
1302 <live_timer_interval>4294967295</live_timer_interval>
1304 <success>true</success>
1308 <success>true</success>
1313 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
1319 UST channel channel0 enabled for session mysession2
1323 lttng --mi xml enable-channel ustChannel -u -s mysession2 --overwrite --subbuf-size 32768 --num-subbuf 1 --switch-timer 100 --read-timer 200
1329 <?xml version="1.0" encoding="UTF-8"?>
1330 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
1331 <name>enable-channel</name>
1335 <name>ustChannel</name>
1336 <enabled>false</enabled>
1338 <overwrite_mode>OVERWRITE</overwrite_mode>
1339 <subbuffer_size>32768</subbuffer_size>
1340 <subbuffer_count>2</subbuffer_count>
1341 <switch_timer_interval>100</switch_timer_interval>
1342 <read_timer_interval>200</read_timer_interval>
1343 <output_type>MMAP</output_type>
1344 <tracefile_size>0</tracefile_size>
1345 <tracefile_count>0</tracefile_count>
1346 <live_timer_interval>4294967295</live_timer_interval>
1348 <success>true</success>
1352 <success>true</success>
1357 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
1363 UST channel channel0 enabled for session mysession2
1367 lttng --mi xml enable-channel ustChannel -u -s mysession2 --overwrite --buffers-pid
1373 <?xml version="1.0" encoding="UTF-8"?>
1374 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
1375 <name>enable-channel</name>
1379 <name>ustChannel</name>
1380 <enabled>false</enabled>
1382 <overwrite_mode>OVERWRITE</overwrite_mode>
1383 <subbuffer_size>4096</subbuffer_size>
1384 <subbuffer_count>4</subbuffer_count>
1385 <switch_timer_interval>0</switch_timer_interval>
1386 <read_timer_interval>0</read_timer_interval>
1387 <output_type>MMAP</output_type>
1388 <tracefile_size>0</tracefile_size>
1389 <tracefile_count>0</tracefile_count>
1390 <live_timer_interval>4294967295</live_timer_interval>
1392 <success>true</success>
1396 <success>true</success>
1401 lttng --mi xml enable-channel ustChannel -u -s mysession2 --overwrite --subbuf-size 32768 --num-subbuf 2 --switch-timer 100 --read-timer 200 --buffers-uid
1407 <?xml version="1.0" encoding="UTF-8"?>
1408 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
1409 <name>enable-channel</name>
1413 <name>ustChannel</name>
1414 <enabled>false</enabled>
1416 <overwrite_mode>OVERWRITE</overwrite_mode>
1417 <subbuffer_size>32768</subbuffer_size>
1418 <subbuffer_count>2</subbuffer_count>
1419 <switch_timer_interval>100</switch_timer_interval>
1420 <read_timer_interval>200</read_timer_interval>
1421 <output_type>MMAP</output_type>
1422 <tracefile_size>0</tracefile_size>
1423 <tracefile_count>0</tracefile_count>
1424 <live_timer_interval>4294967295</live_timer_interval>
1426 <success>true</success>
1430 <success>true</success>
1436 lttng --mi xml enable-channel mychannel0,mychannel1 -k -s mysession2
1442 <?xml version="1.0" encoding="UTF-8"?>
1443 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
1444 <name>enable-channel</name>
1448 <name>mychannel0</name>
1449 <enabled>false</enabled>
1451 <overwrite_mode>DISCARD</overwrite_mode>
1452 <subbuffer_size>262144</subbuffer_size>
1453 <subbuffer_count>4</subbuffer_count>
1454 <switch_timer_interval>0</switch_timer_interval>
1455 <read_timer_interval>200000</read_timer_interval>
1456 <output_type>SPLICE</output_type>
1457 <tracefile_size>0</tracefile_size>
1458 <tracefile_count>0</tracefile_count>
1459 <live_timer_interval>4294967295</live_timer_interval>
1461 <success>true</success>
1464 <name>mychannel1</name>
1465 <enabled>false</enabled>
1467 <overwrite_mode>DISCARD</overwrite_mode>
1468 <subbuffer_size>262144</subbuffer_size>
1469 <subbuffer_count>4</subbuffer_count>
1470 <switch_timer_interval>0</switch_timer_interval>
1471 <read_timer_interval>200000</read_timer_interval>
1472 <output_type>SPLICE</output_type>
1473 <tracefile_size>0</tracefile_size>
1474 <tracefile_count>0</tracefile_count>
1475 <live_timer_interval>4294967295</live_timer_interval>
1477 <success>true</success>
1481 <success>true</success>
1486 lttng --mi xml enable-channel ustChannel -u -s mysession2
1492 <?xml version="1.0" encoding="UTF-8"?>
1493 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
1494 <name>enable-channel</name>
1498 <name>ustChannel</name>
1499 <enabled>false</enabled>
1501 <overwrite_mode>DISCARD</overwrite_mode>
1502 <subbuffer_size>131072</subbuffer_size>
1503 <subbuffer_count>4</subbuffer_count>
1504 <switch_timer_interval>0</switch_timer_interval>
1505 <read_timer_interval>0</read_timer_interval>
1506 <output_type>MMAP</output_type>
1507 <tracefile_size>0</tracefile_size>
1508 <tracefile_count>0</tracefile_count>
1509 <live_timer_interval>4294967295</live_timer_interval>
1511 <success>true</success>
1515 <success>true</success>
1520 lttng --mi xml disable-channel mychannel0,mychannel1 -k -s mysession2
1526 <?xml version="1.0" encoding="UTF-8"?>
1527 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
1528 <name>disable-channel</name>
1532 <name>mychannel0</name>
1533 <enabled>false</enabled>
1534 <success>true</success>
1537 <name>mychannel1</name>
1538 <enabled>false</enabled>
1539 <success>true</success>
1543 <success>true</success>
1548 lttng --mi xml disable-channel ustChannel -u -s mysession2
1554 <?xml version="1.0" encoding="UTF-8"?>
1555 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
1556 <name>disable-channel</name>
1560 <name>ustChannel</name>
1561 <enabled>false</enabled>
1562 <success>true</success>
1566 <success>true</success>
1572 ####################################################################
1573 # Scenario: Test "lttng --mi xml enable-events ..." with different inputs
1574 ####################################################################
1578 # Tracepoint test cases
1581 lttng --mi xml enable-event block_rq_remap,block_bio_remap,softirq_entry -k -s mysession2 --tracepoint
1587 <?xml version="1.0" encoding="UTF-8"?>
1588 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
1589 <name>enable-event</name>
1593 <name>block_rq_remap</name>
1594 <type>TRACEPOINT</type>
1595 <enabled>true</enabled>
1596 <loglevel>TRACE_EMERG</loglevel>
1597 <loglevel_type>ALL</loglevel_type>
1598 <success>true</success>
1601 <name>block_bio_remap</name>
1602 <type>TRACEPOINT</type>
1603 <enabled>true</enabled>
1604 <loglevel>TRACE_EMERG</loglevel>
1605 <loglevel_type>ALL</loglevel_type>
1606 <success>true</success>
1609 <name>softirq_entry</name>
1610 <type>TRACEPOINT</type>
1611 <enabled>true</enabled>
1612 <loglevel>TRACE_EMERG</loglevel>
1613 <loglevel_type>ALL</loglevel_type>
1614 <success>true</success>
1618 <success>true</success>
1623 lttng --mi xml enable-event -a -k -s mysession2 -c mychannel --tracepoint
1629 <?xml version="1.0" encoding="UTF-8"?>
1630 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
1631 <name>enable-event</name>
1636 <type>TRACEPOINT</type>
1637 <enabled>true</enabled>
1638 <loglevel>TRACE_EMERG</loglevel>
1639 <loglevel_type>ALL</loglevel_type>
1640 <success>true</success>
1644 <success>true</success>
1649 lttng --mi xml enable-event ust_tests_hello:tptest_sighandler -u -s mysession2 -c mychannel --tracepoint
1655 <?xml version="1.0" encoding="UTF-8"?>
1656 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
1657 <name>enable-event</name>
1661 <name>ust_tests_hello:tptest_sighandler</name>
1662 <type>TRACEPOINT</type>
1663 <enabled>true</enabled>
1664 <success>true</success>
1668 <success>true</success>
1673 lttng --mi xml enable-event ust_tests_hello:tptest_sighandler -u -s mysession2 -c mychannel --tracepoint --filter intfield==10
1679 <?xml version="1.0" encoding="UTF-8"?>
1680 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
1681 <name>enable-event</name>
1685 <name>ust_tests_hello:tptest_sighandler</name>
1686 <type>TRACEPOINT</type>
1687 <enabled>true</enabled>
1688 <success>true</success>
1692 <success>true</success>
1697 lttng --mi xml enable-event -a -u -s mysession2 -c mychannel --tracepoint
1703 <?xml version="1.0" encoding="UTF-8"?>
1704 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
1705 <name>enable-event</name>
1710 <type>TRACEPOINT</type>
1711 <enabled>true</enabled>
1712 <success>true</success>
1716 <success>true</success>
1720 # Syscall test cases
1723 lttng --mi xml enable-event -a -k -s mysession2 --syscall
1729 <?xml version="1.0" encoding="UTF-8"?>
1730 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
1731 <name>enable-event</name>
1736 <type>SYSCALL</type>
1737 <enabled>true</enabled>
1738 <success>true</success>
1742 <success>true</success>
1747 lttng --mi xml enable-event -a -k -s mysession2 -c mychannel --syscall
1753 <?xml version="1.0" encoding="UTF-8"?>
1754 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
1755 <name>enable-event</name>
1760 <type>SYSCALL</type>
1761 <enabled>true</enabled>
1762 <success>true</success>
1766 <success>true</success>
1770 # dynamic probe/function probe test cases
1773 lttng --mi xml enable-event myevent0 -k -s mysession2 --function 0xc0101340
1779 <?xml version="1.0" encoding="UTF-8"?>
1780 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
1781 <name>enable-event</name>
1785 <name>myevent0</name>
1786 <type>FUNCTION</type>
1787 <enabled>false</enabled>
1788 <success>true</success>
1792 <success>true</success>
1797 lttng --mi xml enable-event myevent1 -k -s mysession2 -c mychannel --probe init_post
1803 <?xml version="1.0" encoding="UTF-8"?>
1804 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
1805 <name>enable-event</name>
1809 <name>myevent1</name>
1811 <enabled>false</enabled>
1813 <symbol_name>init_post</symbol_name>
1814 <success>true</success>
1818 <success>true</success>
1823 # log level test cases
1826 lttng --mi xml enable-event myevent4 -u -s mysession2 --loglevel-only TRACE_DEBUG
1832 <?xml version="1.0" encoding="UTF-8"?>
1833 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
1834 <name>enable-event</name>
1838 <name>myevent4</name>
1839 <type>TRACEPOINT</type>
1840 <enabled>true</enabled>
1841 <loglevel>TRACE_DEBUG</loglevel>
1842 <loglevel_type>SINGLE</loglevel_type>
1843 <success>true</success>
1847 <success>true</success>
1852 lttng --mi xml enable-event myevent5 -u -s mysession2 -c mychannel --loglevel TRACE_DEBUG_FUNCTION
1858 <?xml version="1.0" encoding="UTF-8"?>
1859 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
1860 <name>enable-event</name>
1864 <name>myevent5</name>
1865 <type>TRACEPOINT</type>
1866 <enabled>true</enabled>
1867 <loglevel>TRACE_DEBUG_FUNCTION</loglevel>
1868 <loglevel_type>RANGE</loglevel_type>
1869 <success>true</success>
1873 <success>true</success>
1878 lttng --mi xml enable-event -a -k -s mysession2
1884 <?xml version="1.0" encoding="UTF-8"?>
1885 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
1886 <name>enable-event</name>
1892 <enabled>true</enabled>
1893 <filter>false</filter>
1894 <success>true</success>
1898 <success>true</success>
1904 ####################################################################
1905 # Scenario: Test "lttng add-context -h" and lttng --mi xml add-context ..." with different inputs
1906 ####################################################################
1912 lttng --mi xml add-context -h
1918 usage: lttng add-context -t TYPE [-k|-u] [OPTIONS]
1920 If no channel is given (-c), the context is added to
1923 Otherwise the context is added only to the channel (-c).
1925 Exactly one domain (-k or -u) must be specified.
1928 -h, --help Show this help
1929 --list-options Simple listing of options
1930 -s, --session NAME Apply to session name
1931 -c, --channel NAME Apply to channel
1932 -k, --kernel Apply to the kernel tracer
1933 -u, --userspace Apply to the user-space tracer
1936 -t, --type TYPE Context type. You can repeat that option on
1937 the command line to specify multiple contexts at once.
1938 (--kernel preempts --userspace)
1939 TYPE can be one of the strings below:
1940 pid, procname, prio, nice, vpid, tid, pthread_id,
1941 vtid, ppid, vppid, perf:cpu:cpu-cycles, perf:cpu:cycles
1942 Note that the vpid, vppid and vtid context types represent the virtual process id,
1943 virtual parent process id and virtual thread id as seen from the current execution context
1944 as opposed to the pid, ppid and tid which are kernel internal data structures.
1947 This command will add the context information 'prio' and two per-cpu
1948 perf counters (hardware branch misses and cache misses), to all channels
1949 in the trace data output:
1950 # lttng add-context -k -t prio -t perf:cpu:branch-misses -t perf:cpu:cache-misses
1954 lttng --mi xml add-context -s mysession2 -c mychannel -e ust_tests_hello:tptest_sighandler -u -t prio -t pid
1960 UST context prio added to event ust_tests_hello:tptest_sighandle channel mychannel
1961 UST context pid added to event sched_kthread_stop_ret channel mychannel
1965 ####################################################################
1966 # Scenario: Test "lttng --mi xml add-context --list"
1967 ####################################################################
1973 lttng --mi xml add-context --list
1995 ContextErrorHandling
1998 lttng --mi xml add-context -h
2004 usage: lttng add-context -t TYPE
2006 If no channel and no event is given (-c/-e), the context
2007 will be added to all events and all channels.
2008 Otherwise the context will be added only to the channel (-c)
2009 and/or event (-e) indicated.
2010 Exactly one domain (-k/--kernel or -u/--userspace) must be specified.
2013 -h, --help Show this help
2014 --list-options Simple listing of options
2015 -s, --session NAME Apply to session name
2016 -c, --channel NAME Apply to channel
2017 -e, --event NAME Apply to event
2018 -k, --kernel Apply to the kernel tracer
2019 -u, --userspace Apply to the user-space tracer
2020 -t, --type TYPE Context type. You can repeat that option on
2021 the command line to specify multiple contexts at once.
2022 (--kernel preempts --userspace)
2023 TYPE can be one of the strings below:
2024 pid, procname, prio, nice, vpid, tid, pthread_id,
2025 vtid, ppid, vppid, perf:cpu-cycles, perf:cycles
2027 This command will add the context information 'prio' and two perf
2028 counters (hardware branch misses and cache misses), to all events
2029 in the trace data output:
2030 # lttng add-context -k -t prio -t perf:branch-misses -t perf:cache-misses
2035 lttng --mi xml add-context -s mysession2 -c mychannel -e ust_tests_hello:tptest_sighandler -u -t prio -t pid
2041 UST context prio added to event ust_tests_hello:tptest_sighandle channel mychannel
2042 UST context pid added to event sched_kthread_stop_ret channel mychannel
2047 ####################################################################
2048 # Scenario: Test "lttng create <session> with LTTng 2.1 options
2049 ####################################################################
2051 CreateSessionLttng2.1
2054 lttng --mi xml create mysession -U net://172.0.0.1
2060 <?xml version="1.0" encoding="UTF-8"?>
2061 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
2065 <name>mysession</name>
2066 <path>tcp4://172.0.0.1:5342/mysession-20140813-095804 [data: 5343]</path>
2067 <enabled>false</enabled>
2068 <snapshot_mode>0</snapshot_mode>
2069 <live_timer_interval>0</live_timer_interval>
2072 <success>true</success>
2077 lttng --mi xml create mysession -U file:///tmp
2083 <?xml version="1.0" encoding="UTF-8"?>
2084 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
2088 <name>mysession</name>
2090 <enabled>false</enabled>
2091 <snapshot_mode>0</snapshot_mode>
2092 <live_timer_interval>0</live_timer_interval>
2095 <success>true</success>
2100 lttng --mi xml create mysession -C tcp://172.0.0.1 -D tcp://172.0.0.1:5343
2106 <?xml version="1.0" encoding="UTF-8"?>
2107 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
2111 <name>mysession</name>
2112 <path>tcp4://172.0.0.1:5342/ [data: 5343]</path>
2113 <enabled>false</enabled>
2114 <snapshot_mode>0</snapshot_mode>
2115 <live_timer_interval>0</live_timer_interval>
2118 <success>true</success>
2123 lttng --mi xml create mysession -U 172.0.0.1:1234:2345
2129 <?xml version="1.0" encoding="UTF-8"?>
2130 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
2134 <name>mysession</name>
2135 <path>tcp4://172.0.0.1:1234/mysession-20140813-102225 [data: 2345]</path>
2136 <enabled>false</enabled>
2137 <snapshot_mode>0</snapshot_mode>
2138 <live_timer_interval>0</live_timer_interval>
2141 <success>true</success>
2146 lttng --mi xml destroy mysession
2152 <?xml version="1.0" encoding="UTF-8"?>
2153 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
2154 <name>destroy</name>
2158 <name>mysession</name>
2159 <path>/home/user/lttng-traces/mysession-20140818-100114</path>
2160 <enabled>false</enabled>
2161 <snapshot_mode>0</snapshot_mode>
2162 <live_timer_interval>0</live_timer_interval>
2166 <success>true</success>
2171 lttng --mi xml -vvv create mysession -U net://172.0.0.1
2177 DEBUG3: URI string: net://172.0.0.1 [in uri_parse() at uri.c:253]
2178 DEBUG2: IP address resolved to 172.0.0.1 [in set_ip_address() at uri.c:132]
2179 DEBUG3: URI dtype: 1, proto: 1, host: 172.0.0.1, subdir: , ctrl: 0, data: 0 [in uri_parse() at uri.c:467]
2180 DEBUG1: LSM cmd type : 8 [in send_session_msg() at lttng-ctl.c:261]
2181 Session mysession created.
2182 Traces will be written in net://172.0.0.1
2183 DEBUG1: Init config session in /home/bernd [in config_init() at conf.c:294]
2188 ####################################################################
2189 # Scenario: Test "lttng create <session> --snapshot (LTTng 2.3)
2190 ####################################################################
2192 CreateSessionSnapshot
2194 lttng --mi xml create mysession --snapshot
2200 <?xml version="1.0" encoding="UTF-8"?>
2201 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
2205 <name>mysession</name>
2207 <enabled>false</enabled>
2208 <snapshot_mode>1</snapshot_mode>
2209 <live_timer_interval>4294967295</live_timer_interval>
2212 <success>true</success>
2215 #------------------------------------------------------------------------------
2217 lttng --mi xml snapshot list-output -s mysession
2223 <?xml version="1.0" encoding="UTF-8"?>
2224 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
2225 <name>snapshot</name>
2228 <name>list-output</name>
2231 <name>mysession</name>
2235 <name>snapshot-1</name>
2236 <ctrl_url>/home/user/lttng-traces/mysession-20130913-141651</ctrl_url>
2238 <max_size>0</max_size>
2245 <success>true</success>
2248 #------------------------------------------------------------------------------
2256 <?xml version="1.0" encoding="UTF-8"?>
2257 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
2262 <name>mysession</name>
2264 <enabled>false</enabled>
2265 <snapshot_mode>1</snapshot_mode>
2266 <live_timer_interval>4294967295</live_timer_interval>
2272 #------------------------------------------------------------------------------
2274 lttng --mi xml snapshot record -s mysession
2280 Snapshot recorded successfully for session mysession
2282 #------------------------------------------------------------------------------
2284 lttng --mi xml destroy mysession
2290 <?xml version="1.0" encoding="UTF-8"?>
2291 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
2292 <name>destroy</name>
2296 <name>mysession</name>
2297 <path>/home/user/lttng-traces/mysession-20140818-100114</path>
2298 <enabled>false</enabled>
2299 <snapshot_mode>0</snapshot_mode>
2300 <live_timer_interval>0</live_timer_interval>
2304 <success>true</success>
2309 ####################################################################
2310 # Scenario: Test "lttng create <session> --snapshot -U <URL> (LTTng 2.3)
2311 ####################################################################
2313 CreateSessionStreamedSnapshot
2315 lttng --mi xml create mysession --snapshot -U net://172.0.0.1
2321 Session mysession created.
2322 Default snapshot output set to: net://172.0.0.1
2323 Snapshot mode set. Every channel enabled for that session will be set in overwrite mode and mmap output.
2325 #------------------------------------------------------------------------------
2327 lttng --mi xml snapshot list-output -s mysession
2333 Snapshot output list for session mysession
2334 [2] snapshot-2: net4://172.0.0.1:5342/
2336 #------------------------------------------------------------------------------
2344 1) mysession () [inactive snapshot]
2347 #------------------------------------------------------------------------------
2349 lttng --mi xml snapshot record -s mysession
2355 Snapshot recorded successfully for session mysession
2357 #------------------------------------------------------------------------------
2359 lttng --mi xml destroy mysession
2365 <?xml version="1.0" encoding="UTF-8"?>
2366 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
2367 <name>destroy</name>
2371 <name>mysession</name>
2372 <path>/home/user/lttng-traces/mysession-20140818-100114</path>
2373 <enabled>false</enabled>
2374 <snapshot_mode>0</snapshot_mode>
2375 <live_timer_interval>0</live_timer_interval>
2379 <success>true</success>
2384 ####################################################################
2385 # Scenario: Test "lttng create <session> --snapshot (LTTng 2.3)
2386 ####################################################################
2388 CreateSessionSnapshotErrors
2390 lttng --mi xml snapshot list-output -s blabla
2396 <COMMAND_ERROR_OUTPUT>
2397 <?xml version="1.0" encoding="UTF-8"?>
2398 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
2399 <name>snapshot</name>
2402 <name>list-output</name>
2406 <success>false</success>
2408 </COMMAND_ERROR_OUTPUT>
2410 #------------------------------------------------------------------------------
2411 #next is not an error case but good to be tested
2419 <?xml version="1.0" encoding="UTF-8"?>
2420 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
2425 <name>mysession</name>
2427 <enabled>true</enabled>
2428 <snapshot_mode>1</snapshot_mode>
2429 <live_timer_interval>4294967295</live_timer_interval>
2435 #------------------------------------------------------------------------------
2437 lttng --mi xml snapshot record -s blabla
2443 <COMMAND_ERROR_OUTPUT>
2444 Error: Session name not found
2445 </COMMAND_ERROR_OUTPUT>
2446 <?xml version="1.0" encoding="UTF-8"?>
2447 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
2448 <name>snapshot</name>
2455 <success>false</success>
2458 #------------------------------------------------------------------------------
2460 lttng --mi xml snapshot record -s mysession
2466 <COMMAND_ERROR_OUTPUT>
2467 Error: Session needs to be started once
2468 </COMMAND_ERROR_OUTPUT>
2469 <?xml version="1.0" encoding="UTF-8"?>
2470 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
2471 <name>snapshot</name>
2478 <success>false</success>
2484 ####################################################################
2485 # Scenario: Test "lttng create <session> --live [USEC] (LTTng 2.4)
2486 ####################################################################
2490 lttng --mi xml create mysession --live -U net://127.0.0.1
2496 <?xml version="1.0" encoding="UTF-8"?>
2497 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
2501 <name>mysession</name>
2502 <path>tcp4://127.0.0.1:5342/ [data: 5343]</path>
2503 <enabled>false</enabled>
2504 <snapshot_mode>0</snapshot_mode>
2505 <live_timer_interval>1000000</live_timer_interval>
2508 <success>true</success>
2511 #------------------------------------------------------------------------------
2519 <?xml version="1.0" encoding="UTF-8"?>
2520 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
2525 <name>mysession</name>
2526 <path>tcp4://127.0.0.1:5342/ [data: 5343]</path>
2527 <enabled>false</enabled>
2528 <snapshot_mode>0</snapshot_mode>
2529 <live_timer_interval>1000000</live_timer_interval>
2535 #------------------------------------------------------------------------------
2537 lttng --mi xml destroy mysession
2543 <?xml version="1.0" encoding="UTF-8"?>
2544 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
2545 <name>destroy</name>
2549 <name>mysession</name>
2550 <path>/home/user/lttng-traces/mysession-20140818-100114</path>
2551 <enabled>false</enabled>
2552 <snapshot_mode>0</snapshot_mode>
2553 <live_timer_interval>0</live_timer_interval>
2557 <success>true</success>
2562 ####################################################################
2563 # Scenario: Test errors for "lttng create <session> --live [USEC] (LTTng 2.4)
2564 ####################################################################
2566 CreateSessionLiveErrors
2568 lttng --mi xml create mysession --live --snapshot
2574 <COMMAND_ERROR_OUTPUT>
2575 Error: Snapshot and live modes are mutually exclusive.
2576 Error: Command error
2577 </COMMAND_ERROR_OUTPUT>
2579 #------------------------------------------------------------------------------
2581 lttng --mi xml create mysession --live -U blah
2587 <COMMAND_ERROR_OUTPUT>
2588 Error: URI parse unknown protocol blah
2589 Error: Unable to parse the URL blah
2590 Error: Invalid parameter
2591 </COMMAND_ERROR_OUTPUT>
2593 #------------------------------------------------------------------------------
2595 lttng --mi xml create mysession --live -C net://127.0.0.1
2601 <COMMAND_ERROR_OUTPUT>
2602 Error: You need both control and data URL.
2603 Error: Command error
2604 </COMMAND_ERROR_OUTPUT>
2608 ####################################################################
2609 # Scenario: Test "lttng list <session> (version 2.6.0, syscalls)
2610 ####################################################################
2612 GetSessionWithSyscalls
2614 lttng --mi xml list mysession
2620 <?xml version="1.0" encoding="UTF-8"?>
2621 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
2626 <name>mysession</name>
2627 <path>/home/user/lttng-traces/mysession-20120129-084256</path>
2628 <enabled>false</enabled><snapshot_mode>0</snapshot_mode>
2629 <live_timer_interval>0</live_timer_interval>
2633 <buffer_type>PER_PID</buffer_type>
2636 <name>channel0</name>
2637 <enabled>true</enabled>
2639 <overwrite_mode>DISCARD</overwrite_mode>
2640 <subbuffer_size>262144</subbuffer_size>
2641 <subbuffer_count>4</subbuffer_count>
2642 <switch_timer_interval>0</switch_timer_interval>
2643 <read_timer_interval>200</read_timer_interval>
2644 <output_type>SPLICE</output_type>
2645 <tracefile_size>0</tracefile_size>
2646 <tracefile_count>0</tracefile_count>
2647 <live_timer_interval>0</live_timer_interval>
2648 </attributes><events>
2651 <type>SYSCALL</type>
2652 <enabled>true</enabled>
2656 <type>SYSCALL</type>
2657 <enabled>true</enabled>
2670 ListSession2.7Compat
2672 lttng --mi xml list mysession
2678 <?xml version="1.0" encoding="UTF-8"?>
2679 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0">
2684 <name>mysession</name>
2685 <path>/home/user/lttng-traces/mysession-20151020-085614</path>
2686 <enabled>false</enabled>
2687 <snapshot_mode>0</snapshot_mode>
2688 <live_timer_interval>0</live_timer_interval>
2692 <buffer_type>GLOBAL</buffer_type>
2696 <name>channel0</name>
2697 <enabled>true</enabled>
2699 <overwrite_mode>DISCARD</overwrite_mode>
2700 <subbuffer_size>262144</subbuffer_size>
2701 <subbuffer_count>4</subbuffer_count>
2702 <switch_timer_interval>0</switch_timer_interval>
2703 <read_timer_interval>200000</read_timer_interval>
2704 <output_type>SPLICE</output_type>
2705 <tracefile_size>0</tracefile_size>
2706 <tracefile_count>0</tracefile_count>
2707 <live_timer_interval>0</live_timer_interval>
2710 <event><name>*</name>
2711 <type>SYSCALL</type>
2712 <enabled>true</enabled>
2716 <type>TRACEPOINT</type>
2717 <enabled>true</enabled>
2718 <loglevel>TRACE_EMERG</loglevel>
2719 <loglevel_type>ALL</loglevel_type>
2727 <buffer_type>PER_PID</buffer_type>
2731 <name>channel0</name>
2732 <enabled>true</enabled>
2734 <overwrite_mode>DISCARD</overwrite_mode>
2735 <subbuffer_size>4096</subbuffer_size>
2736 <subbuffer_count>4</subbuffer_count>
2737 <switch_timer_interval>0</switch_timer_interval>
2738 <read_timer_interval>0</read_timer_interval>
2739 <output_type>MMAP</output_type>
2740 <tracefile_size>0</tracefile_size>
2741 <tracefile_count>0</tracefile_count>
2742 <live_timer_interval>0</live_timer_interval>
2745 <event><name>*</name>
2746 <type>TRACEPOINT</type>
2747 <enabled>true</enabled>
2759 ####################################################################
2760 # Scenario: Test "lttng load [OPTIONS] [SESSION]"
2761 # "lttng save [OPTIONS] [SESSION]"
2763 ####################################################################
2767 lttng --mi xml load -i /home/user/.lttng/sessions/mysession.lttng
2773 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0"><name>load</name><output><load><session><name>*</name></session><path>.lttng/sessions/seqSession2.lttng</path></load></output><success>true</success></command>
2779 lttng --mi xml load -i /home/user/.lttng/sessions/mysession.lttng -f
2785 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0"><name>load</name><output><load><session><name>*</name></session><path>.lttng/sessions/seqSession2.lttng</path></load></output><success>true</success></command>
2795 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0"><name>save</name><output><save><session><name>*</name></session></save></output><success>true</success></command>
2799 lttng --mi xml save mysession
2805 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0"><name>save</name><output><save><session><name>seqSession2</name></session></save></output><success>true</success></command>
2809 lttng --mi xml save -f mysession
2815 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0"><name>save</name><output><save><session><name>seqSession2</name></session></save></output><success>true</success></command>
2819 lttng --mi xml save -o /tmp/test -f mysession
2825 <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0"><name>save</name><output><save><session><name>seqSession2</name></session></save></output><success>true</success></command>