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>
1879 ####################################################################
1880 # Scenario: Test "lttng add-context -h" and lttng --mi xml add-context ..." with different inputs
1881 ####################################################################
1887 lttng --mi xml add-context -h
1893 usage: lttng add-context -t TYPE [-k|-u] [OPTIONS]
1895 If no channel is given (-c), the context is added to
1898 Otherwise the context is added only to the channel (-c).
1900 Exactly one domain (-k or -u) must be specified.
1903 -h, --help Show this help
1904 --list-options Simple listing of options
1905 -s, --session NAME Apply to session name
1906 -c, --channel NAME Apply to channel
1907 -k, --kernel Apply to the kernel tracer
1908 -u, --userspace Apply to the user-space tracer
1911 -t, --type TYPE Context type. You can repeat that option on
1912 the command line to specify multiple contexts at once.
1913 (--kernel preempts --userspace)
1914 TYPE can be one of the strings below:
1915 pid, procname, prio, nice, vpid, tid, pthread_id,
1916 vtid, ppid, vppid, perf:cpu:cpu-cycles, perf:cpu:cycles
1917 Note that the vpid, vppid and vtid context types represent the virtual process id,
1918 virtual parent process id and virtual thread id as seen from the current execution context
1919 as opposed to the pid, ppid and tid which are kernel internal data structures.
1922 This command will add the context information 'prio' and two per-cpu
1923 perf counters (hardware branch misses and cache misses), to all channels
1924 in the trace data output:
1925 # lttng add-context -k -t prio -t perf:cpu:branch-misses -t perf:cpu:cache-misses
1929 lttng --mi xml add-context -s mysession2 -c mychannel -e ust_tests_hello:tptest_sighandler -u -t prio -t pid
1935 UST context prio added to event ust_tests_hello:tptest_sighandle channel mychannel
1936 UST context pid added to event sched_kthread_stop_ret channel mychannel
1940 ####################################################################
1941 # Scenario: Test "lttng --mi xml add-context --list"
1942 ####################################################################
1948 lttng --mi xml add-context --list
1970 ContextErrorHandling
1973 lttng --mi xml add-context -h
1979 usage: lttng add-context -t TYPE
1981 If no channel and no event is given (-c/-e), the context
1982 will be added to all events and all channels.
1983 Otherwise the context will be added only to the channel (-c)
1984 and/or event (-e) indicated.
1985 Exactly one domain (-k/--kernel or -u/--userspace) must be specified.
1988 -h, --help Show this help
1989 --list-options Simple listing of options
1990 -s, --session NAME Apply to session name
1991 -c, --channel NAME Apply to channel
1992 -e, --event NAME Apply to event
1993 -k, --kernel Apply to the kernel tracer
1994 -u, --userspace Apply to the user-space tracer
1995 -t, --type TYPE Context type. You can repeat that option on
1996 the command line to specify multiple contexts at once.
1997 (--kernel preempts --userspace)
1998 TYPE can be one of the strings below:
1999 pid, procname, prio, nice, vpid, tid, pthread_id,
2000 vtid, ppid, vppid, perf:cpu-cycles, perf:cycles
2002 This command will add the context information 'prio' and two perf
2003 counters (hardware branch misses and cache misses), to all events
2004 in the trace data output:
2005 # lttng add-context -k -t prio -t perf:branch-misses -t perf:cache-misses
2010 lttng --mi xml add-context -s mysession2 -c mychannel -e ust_tests_hello:tptest_sighandler -u -t prio -t pid
2016 UST context prio added to event ust_tests_hello:tptest_sighandle channel mychannel
2017 UST context pid added to event sched_kthread_stop_ret channel mychannel
2022 ####################################################################
2023 # Scenario: Test "lttng create <session> with LTTng 2.1 options
2024 ####################################################################
2026 CreateSessionLttng2.1
2029 lttng --mi xml create mysession -U net://172.0.0.1
2035 <?xml version="1.0" encoding="UTF-8"?>
2036 <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">
2040 <name>mysession</name>
2041 <path>tcp4://172.0.0.1:5342/mysession-20140813-095804 [data: 5343]</path>
2042 <enabled>false</enabled>
2043 <snapshot_mode>0</snapshot_mode>
2044 <live_timer_interval>0</live_timer_interval>
2047 <success>true</success>
2052 lttng --mi xml create mysession -U file:///tmp
2058 <?xml version="1.0" encoding="UTF-8"?>
2059 <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">
2063 <name>mysession</name>
2065 <enabled>false</enabled>
2066 <snapshot_mode>0</snapshot_mode>
2067 <live_timer_interval>0</live_timer_interval>
2070 <success>true</success>
2075 lttng --mi xml create mysession -C tcp://172.0.0.1 -D tcp://172.0.0.1:5343
2081 <?xml version="1.0" encoding="UTF-8"?>
2082 <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">
2086 <name>mysession</name>
2087 <path>tcp4://172.0.0.1:5342/ [data: 5343]</path>
2088 <enabled>false</enabled>
2089 <snapshot_mode>0</snapshot_mode>
2090 <live_timer_interval>0</live_timer_interval>
2093 <success>true</success>
2098 lttng --mi xml create mysession -U 172.0.0.1:1234:2345
2104 <?xml version="1.0" encoding="UTF-8"?>
2105 <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">
2109 <name>mysession</name>
2110 <path>tcp4://172.0.0.1:1234/mysession-20140813-102225 [data: 2345]</path>
2111 <enabled>false</enabled>
2112 <snapshot_mode>0</snapshot_mode>
2113 <live_timer_interval>0</live_timer_interval>
2116 <success>true</success>
2121 lttng --mi xml destroy mysession
2127 <?xml version="1.0" encoding="UTF-8"?>
2128 <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">
2129 <name>destroy</name>
2133 <name>mysession</name>
2134 <path>/home/user/lttng-traces/mysession-20140818-100114</path>
2135 <enabled>false</enabled>
2136 <snapshot_mode>0</snapshot_mode>
2137 <live_timer_interval>0</live_timer_interval>
2141 <success>true</success>
2146 lttng --mi xml -vvv create mysession -U net://172.0.0.1
2152 DEBUG3: URI string: net://172.0.0.1 [in uri_parse() at uri.c:253]
2153 DEBUG2: IP address resolved to 172.0.0.1 [in set_ip_address() at uri.c:132]
2154 DEBUG3: URI dtype: 1, proto: 1, host: 172.0.0.1, subdir: , ctrl: 0, data: 0 [in uri_parse() at uri.c:467]
2155 DEBUG1: LSM cmd type : 8 [in send_session_msg() at lttng-ctl.c:261]
2156 Session mysession created.
2157 Traces will be written in net://172.0.0.1
2158 DEBUG1: Init config session in /home/bernd [in config_init() at conf.c:294]
2163 ####################################################################
2164 # Scenario: Test "lttng create <session> --snapshot (LTTng 2.3)
2165 ####################################################################
2167 CreateSessionSnapshot
2169 lttng --mi xml create mysession --snapshot
2175 <?xml version="1.0" encoding="UTF-8"?>
2176 <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">
2180 <name>mysession</name>
2182 <enabled>false</enabled>
2183 <snapshot_mode>1</snapshot_mode>
2184 <live_timer_interval>4294967295</live_timer_interval>
2187 <success>true</success>
2190 #------------------------------------------------------------------------------
2192 lttng --mi xml snapshot list-output -s mysession
2198 <?xml version="1.0" encoding="UTF-8"?>
2199 <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">
2200 <name>snapshot</name>
2203 <name>list-output</name>
2206 <name>mysession</name>
2210 <name>snapshot-1</name>
2211 <ctrl_url>/home/user/lttng-traces/mysession-20130913-141651</ctrl_url>
2213 <max_size>0</max_size>
2220 <success>true</success>
2223 #------------------------------------------------------------------------------
2231 <?xml version="1.0" encoding="UTF-8"?>
2232 <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">
2237 <name>mysession</name>
2239 <enabled>false</enabled>
2240 <snapshot_mode>1</snapshot_mode>
2241 <live_timer_interval>4294967295</live_timer_interval>
2247 #------------------------------------------------------------------------------
2249 lttng --mi xml snapshot record -s mysession
2255 Snapshot recorded successfully for session mysession
2257 #------------------------------------------------------------------------------
2259 lttng --mi xml destroy mysession
2265 <?xml version="1.0" encoding="UTF-8"?>
2266 <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">
2267 <name>destroy</name>
2271 <name>mysession</name>
2272 <path>/home/user/lttng-traces/mysession-20140818-100114</path>
2273 <enabled>false</enabled>
2274 <snapshot_mode>0</snapshot_mode>
2275 <live_timer_interval>0</live_timer_interval>
2279 <success>true</success>
2284 ####################################################################
2285 # Scenario: Test "lttng create <session> --snapshot -U <URL> (LTTng 2.3)
2286 ####################################################################
2288 CreateSessionStreamedSnapshot
2290 lttng --mi xml create mysession --snapshot -U net://172.0.0.1
2296 Session mysession created.
2297 Default snapshot output set to: net://172.0.0.1
2298 Snapshot mode set. Every channel enabled for that session will be set in overwrite mode and mmap output.
2300 #------------------------------------------------------------------------------
2302 lttng --mi xml snapshot list-output -s mysession
2308 Snapshot output list for session mysession
2309 [2] snapshot-2: net4://172.0.0.1:5342/
2311 #------------------------------------------------------------------------------
2319 1) mysession () [inactive snapshot]
2322 #------------------------------------------------------------------------------
2324 lttng --mi xml snapshot record -s mysession
2330 Snapshot recorded successfully for session mysession
2332 #------------------------------------------------------------------------------
2334 lttng --mi xml destroy mysession
2340 <?xml version="1.0" encoding="UTF-8"?>
2341 <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">
2342 <name>destroy</name>
2346 <name>mysession</name>
2347 <path>/home/user/lttng-traces/mysession-20140818-100114</path>
2348 <enabled>false</enabled>
2349 <snapshot_mode>0</snapshot_mode>
2350 <live_timer_interval>0</live_timer_interval>
2354 <success>true</success>
2359 ####################################################################
2360 # Scenario: Test "lttng create <session> --snapshot (LTTng 2.3)
2361 ####################################################################
2363 CreateSessionSnapshotErrors
2365 lttng --mi xml snapshot list-output -s blabla
2371 <COMMAND_ERROR_OUTPUT>
2372 <?xml version="1.0" encoding="UTF-8"?>
2373 <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">
2374 <name>snapshot</name>
2377 <name>list-output</name>
2381 <success>false</success>
2383 </COMMAND_ERROR_OUTPUT>
2385 #------------------------------------------------------------------------------
2386 #next is not an error case but good to be tested
2394 <?xml version="1.0" encoding="UTF-8"?>
2395 <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">
2400 <name>mysession</name>
2402 <enabled>true</enabled>
2403 <snapshot_mode>1</snapshot_mode>
2404 <live_timer_interval>4294967295</live_timer_interval>
2410 #------------------------------------------------------------------------------
2412 lttng --mi xml snapshot record -s blabla
2418 <COMMAND_ERROR_OUTPUT>
2419 Error: Session name not found
2420 </COMMAND_ERROR_OUTPUT>
2421 <?xml version="1.0" encoding="UTF-8"?>
2422 <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">
2423 <name>snapshot</name>
2430 <success>false</success>
2433 #------------------------------------------------------------------------------
2435 lttng --mi xml snapshot record -s mysession
2441 <COMMAND_ERROR_OUTPUT>
2442 Error: Session needs to be started once
2443 </COMMAND_ERROR_OUTPUT>
2444 <?xml version="1.0" encoding="UTF-8"?>
2445 <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">
2446 <name>snapshot</name>
2453 <success>false</success>
2459 ####################################################################
2460 # Scenario: Test "lttng create <session> --live [USEC] (LTTng 2.4)
2461 ####################################################################
2465 lttng --mi xml create mysession --live -U net://127.0.0.1
2471 <?xml version="1.0" encoding="UTF-8"?>
2472 <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">
2476 <name>mysession</name>
2477 <path>tcp4://127.0.0.1:5342/ [data: 5343]</path>
2478 <enabled>false</enabled>
2479 <snapshot_mode>0</snapshot_mode>
2480 <live_timer_interval>1000000</live_timer_interval>
2483 <success>true</success>
2486 #------------------------------------------------------------------------------
2494 <?xml version="1.0" encoding="UTF-8"?>
2495 <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">
2500 <name>mysession</name>
2501 <path>tcp4://127.0.0.1:5342/ [data: 5343]</path>
2502 <enabled>false</enabled>
2503 <snapshot_mode>0</snapshot_mode>
2504 <live_timer_interval>1000000</live_timer_interval>
2510 #------------------------------------------------------------------------------
2512 lttng --mi xml destroy mysession
2518 <?xml version="1.0" encoding="UTF-8"?>
2519 <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">
2520 <name>destroy</name>
2524 <name>mysession</name>
2525 <path>/home/user/lttng-traces/mysession-20140818-100114</path>
2526 <enabled>false</enabled>
2527 <snapshot_mode>0</snapshot_mode>
2528 <live_timer_interval>0</live_timer_interval>
2532 <success>true</success>
2537 ####################################################################
2538 # Scenario: Test errors for "lttng create <session> --live [USEC] (LTTng 2.4)
2539 ####################################################################
2541 CreateSessionLiveErrors
2543 lttng --mi xml create mysession --live --snapshot
2549 <COMMAND_ERROR_OUTPUT>
2550 Error: Snapshot and live modes are mutually exclusive.
2551 Error: Command error
2552 </COMMAND_ERROR_OUTPUT>
2554 #------------------------------------------------------------------------------
2556 lttng --mi xml create mysession --live -U blah
2562 <COMMAND_ERROR_OUTPUT>
2563 Error: URI parse unknown protocol blah
2564 Error: Unable to parse the URL blah
2565 Error: Invalid parameter
2566 </COMMAND_ERROR_OUTPUT>
2568 #------------------------------------------------------------------------------
2570 lttng --mi xml create mysession --live -C net://127.0.0.1
2576 <COMMAND_ERROR_OUTPUT>
2577 Error: You need both control and data URL.
2578 Error: Command error
2579 </COMMAND_ERROR_OUTPUT>
2583 ####################################################################
2584 # Scenario: Test "lttng list <session> (version 2.6.0, syscalls)
2585 ####################################################################
2587 GetSessionWithSyscalls
2589 lttng --mi xml list mysession
2595 <?xml version="1.0" encoding="UTF-8"?>
2596 <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">
2601 <name>mysession</name>
2602 <path>/home/user/lttng-traces/mysession-20120129-084256</path>
2603 <enabled>false</enabled><snapshot_mode>0</snapshot_mode>
2604 <live_timer_interval>0</live_timer_interval>
2608 <buffer_type>PER_PID</buffer_type>
2611 <name>channel0</name>
2612 <enabled>true</enabled>
2614 <overwrite_mode>DISCARD</overwrite_mode>
2615 <subbuffer_size>262144</subbuffer_size>
2616 <subbuffer_count>4</subbuffer_count>
2617 <switch_timer_interval>0</switch_timer_interval>
2618 <read_timer_interval>200</read_timer_interval>
2619 <output_type>SPLICE</output_type>
2620 <tracefile_size>0</tracefile_size>
2621 <tracefile_count>0</tracefile_count>
2622 <live_timer_interval>0</live_timer_interval>
2623 </attributes><events>
2626 <type>SYSCALL</type>
2627 <enabled>true</enabled>
2631 <type>SYSCALL</type>
2632 <enabled>true</enabled>
2645 ListSession2.7Compat
2647 lttng --mi xml list mysession
2653 <?xml version="1.0" encoding="UTF-8"?>
2654 <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">
2659 <name>mysession</name>
2660 <path>/home/user/lttng-traces/mysession-20151020-085614</path>
2661 <enabled>false</enabled>
2662 <snapshot_mode>0</snapshot_mode>
2663 <live_timer_interval>0</live_timer_interval>
2667 <buffer_type>GLOBAL</buffer_type>
2671 <name>channel0</name>
2672 <enabled>true</enabled>
2674 <overwrite_mode>DISCARD</overwrite_mode>
2675 <subbuffer_size>262144</subbuffer_size>
2676 <subbuffer_count>4</subbuffer_count>
2677 <switch_timer_interval>0</switch_timer_interval>
2678 <read_timer_interval>200000</read_timer_interval>
2679 <output_type>SPLICE</output_type>
2680 <tracefile_size>0</tracefile_size>
2681 <tracefile_count>0</tracefile_count>
2682 <live_timer_interval>0</live_timer_interval>
2685 <event><name>*</name>
2686 <type>SYSCALL</type>
2687 <enabled>true</enabled>
2691 <type>TRACEPOINT</type>
2692 <enabled>true</enabled>
2693 <loglevel>TRACE_EMERG</loglevel>
2694 <loglevel_type>ALL</loglevel_type>
2702 <buffer_type>PER_PID</buffer_type>
2706 <name>channel0</name>
2707 <enabled>true</enabled>
2709 <overwrite_mode>DISCARD</overwrite_mode>
2710 <subbuffer_size>4096</subbuffer_size>
2711 <subbuffer_count>4</subbuffer_count>
2712 <switch_timer_interval>0</switch_timer_interval>
2713 <read_timer_interval>0</read_timer_interval>
2714 <output_type>MMAP</output_type>
2715 <tracefile_size>0</tracefile_size>
2716 <tracefile_count>0</tracefile_count>
2717 <live_timer_interval>0</live_timer_interval>
2720 <event><name>*</name>
2721 <type>TRACEPOINT</type>
2722 <enabled>true</enabled>
2734 ####################################################################
2735 # Scenario: Test "lttng load [OPTIONS] [SESSION]"
2736 # "lttng save [OPTIONS] [SESSION]"
2738 ####################################################################
2742 lttng --mi xml load -i /home/user/.lttng/sessions/mysession.lttng
2748 <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>
2754 lttng --mi xml load -i /home/user/.lttng/sessions/mysession.lttng -f
2760 <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>
2770 <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>
2774 lttng --mi xml save mysession
2780 <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>
2784 lttng --mi xml save -f mysession
2790 <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>
2794 lttng --mi xml save -o /tmp/test -f mysession
2800 <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>