+ cat > "${tmp_expected_stdout_mi}" <<- EOF
+ <?xml version="1.0" encoding="UTF-8"?>
+ <command xmlns="https://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://lttng.org/xml/ns/lttng-mi https://lttng.org/xml/schemas/lttng-mi/4/lttng-mi-4.0.xsd" schemaVersion="4.0">
+ <name>list-trigger</name>
+ <output>
+ <triggers>
+ <trigger>
+ <name>T0</name>
+ <owner_uid>${uid}</owner_uid>
+ <condition>
+ <condition_event_rule_matches>
+ <event_rule>
+ <event_rule_user_tracepoint>
+ <name_pattern>some-event</name_pattern>
+ </event_rule_user_tracepoint>
+ </event_rule>
+ <capture_descriptors/>
+ </condition_event_rule_matches>
+ <error_query_results>
+ <error_query_result>
+ <name>discarded tracer messages</name>
+ <description>Count of messages discarded by the tracer due to a communication error with the session daemon</description>
+ <error_query_result_counter>
+ <value>0</value>
+ </error_query_result_counter>
+ </error_query_result>
+ </error_query_results>
+ </condition>
+ <action>
+ <action_list>
+ <action>
+ <action_snapshot_session>
+ <session_name>ze-session</session_name>
+ <rate_policy>
+ <rate_policy_every_n>
+ <interval>1</interval>
+ </rate_policy_every_n>
+ </rate_policy>
+ </action_snapshot_session>
+ <error_query_results>
+ <error_query_result>
+ <name>total execution failures</name>
+ <description>Aggregated count of errors encountered when executing the action</description>
+ <error_query_result_counter>
+ <value>0</value>
+ </error_query_result_counter>
+ </error_query_result>
+ </error_query_results>
+ </action>
+ </action_list>
+ </action>
+ <error_query_results/>
+ </trigger>
+ <trigger>
+ <name>T1</name>
+ <owner_uid>${uid}</owner_uid>
+ <condition>
+ <condition_event_rule_matches>
+ <event_rule>
+ <event_rule_user_tracepoint>
+ <name_pattern>some-event</name_pattern>
+ </event_rule_user_tracepoint>
+ </event_rule>
+ <capture_descriptors/>
+ </condition_event_rule_matches>
+ <error_query_results>
+ <error_query_result>
+ <name>discarded tracer messages</name>
+ <description>Count of messages discarded by the tracer due to a communication error with the session daemon</description>
+ <error_query_result_counter>
+ <value>0</value>
+ </error_query_result_counter>
+ </error_query_result>
+ </error_query_results>
+ </condition>
+ <action>
+ <action_list>
+ <action>
+ <action_snapshot_session>
+ <session_name>ze-session</session_name>
+ <output>
+ <ctrl_url>/some/path</ctrl_url>
+ </output>
+ <rate_policy>
+ <rate_policy_every_n>
+ <interval>1</interval>
+ </rate_policy_every_n>
+ </rate_policy>
+ </action_snapshot_session>
+ <error_query_results>
+ <error_query_result>
+ <name>total execution failures</name>
+ <description>Aggregated count of errors encountered when executing the action</description>
+ <error_query_result_counter>
+ <value>0</value>
+ </error_query_result_counter>
+ </error_query_result>
+ </error_query_results>
+ </action>
+ </action_list>
+ </action>
+ <error_query_results/>
+ </trigger>
+ <trigger>
+ <name>T2</name>
+ <owner_uid>${uid}</owner_uid>
+ <condition>
+ <condition_event_rule_matches>
+ <event_rule>
+ <event_rule_user_tracepoint>
+ <name_pattern>some-event</name_pattern>
+ </event_rule_user_tracepoint>
+ </event_rule>
+ <capture_descriptors/>
+ </condition_event_rule_matches>
+ <error_query_results>
+ <error_query_result>
+ <name>discarded tracer messages</name>
+ <description>Count of messages discarded by the tracer due to a communication error with the session daemon</description>
+ <error_query_result_counter>
+ <value>0</value>
+ </error_query_result_counter>
+ </error_query_result>
+ </error_query_results>
+ </condition>
+ <action>
+ <action_list>
+ <action>
+ <action_snapshot_session>
+ <session_name>ze-session</session_name>
+ <output>
+ <ctrl_url>/some/other/path</ctrl_url>
+ </output>
+ <rate_policy>
+ <rate_policy_every_n>
+ <interval>1</interval>
+ </rate_policy_every_n>
+ </rate_policy>
+ </action_snapshot_session>
+ <error_query_results>
+ <error_query_result>
+ <name>total execution failures</name>
+ <description>Aggregated count of errors encountered when executing the action</description>
+ <error_query_result_counter>
+ <value>0</value>
+ </error_query_result_counter>
+ </error_query_result>
+ </error_query_results>
+ </action>
+ </action_list>
+ </action>
+ <error_query_results/>
+ </trigger>
+ <trigger>
+ <name>T3</name>
+ <owner_uid>${uid}</owner_uid>
+ <condition>
+ <condition_event_rule_matches>
+ <event_rule>
+ <event_rule_user_tracepoint>
+ <name_pattern>some-event</name_pattern>
+ </event_rule_user_tracepoint>
+ </event_rule>
+ <capture_descriptors/>
+ </condition_event_rule_matches>
+ <error_query_results>
+ <error_query_result>
+ <name>discarded tracer messages</name>
+ <description>Count of messages discarded by the tracer due to a communication error with the session daemon</description>
+ <error_query_result_counter>
+ <value>0</value>
+ </error_query_result_counter>
+ </error_query_result>
+ </error_query_results>
+ </condition>
+ <action>
+ <action_list>
+ <action>
+ <action_snapshot_session>
+ <session_name>ze-session</session_name>
+ <output>
+ <ctrl_url>net://1.2.3.4</ctrl_url>
+ </output>
+ <rate_policy>
+ <rate_policy_every_n>
+ <interval>1</interval>
+ </rate_policy_every_n>
+ </rate_policy>
+ </action_snapshot_session>
+ <error_query_results>
+ <error_query_result>
+ <name>total execution failures</name>
+ <description>Aggregated count of errors encountered when executing the action</description>
+ <error_query_result_counter>
+ <value>0</value>
+ </error_query_result_counter>
+ </error_query_result>
+ </error_query_results>
+ </action>
+ </action_list>
+ </action>
+ <error_query_results/>
+ </trigger>
+ <trigger>
+ <name>T4</name>
+ <owner_uid>${uid}</owner_uid>
+ <condition>
+ <condition_event_rule_matches>
+ <event_rule>
+ <event_rule_user_tracepoint>
+ <name_pattern>some-event</name_pattern>
+ </event_rule_user_tracepoint>
+ </event_rule>
+ <capture_descriptors/>
+ </condition_event_rule_matches>
+ <error_query_results>
+ <error_query_result>
+ <name>discarded tracer messages</name>
+ <description>Count of messages discarded by the tracer due to a communication error with the session daemon</description>
+ <error_query_result_counter>
+ <value>0</value>
+ </error_query_result_counter>
+ </error_query_result>
+ </error_query_results>
+ </condition>
+ <action>
+ <action_list>
+ <action>
+ <action_snapshot_session>
+ <session_name>ze-session</session_name>
+ <output>
+ <ctrl_url>net://1.2.3.4:1234:1235</ctrl_url>
+ </output>
+ <rate_policy>
+ <rate_policy_every_n>
+ <interval>1</interval>
+ </rate_policy_every_n>
+ </rate_policy>
+ </action_snapshot_session>
+ <error_query_results>
+ <error_query_result>
+ <name>total execution failures</name>
+ <description>Aggregated count of errors encountered when executing the action</description>
+ <error_query_result_counter>
+ <value>0</value>
+ </error_query_result_counter>
+ </error_query_result>
+ </error_query_results>
+ </action>
+ </action_list>
+ </action>
+ <error_query_results/>
+ </trigger>
+ <trigger>
+ <name>T5</name>
+ <owner_uid>${uid}</owner_uid>
+ <condition>
+ <condition_event_rule_matches>
+ <event_rule>
+ <event_rule_user_tracepoint>
+ <name_pattern>some-event</name_pattern>
+ </event_rule_user_tracepoint>
+ </event_rule>
+ <capture_descriptors/>
+ </condition_event_rule_matches>
+ <error_query_results>
+ <error_query_result>
+ <name>discarded tracer messages</name>
+ <description>Count of messages discarded by the tracer due to a communication error with the session daemon</description>
+ <error_query_result_counter>
+ <value>0</value>
+ </error_query_result_counter>
+ </error_query_result>
+ </error_query_results>
+ </condition>
+ <action>
+ <action_list>
+ <action>
+ <action_snapshot_session>
+ <session_name>ze-session</session_name>
+ <output>
+ <ctrl_url>tcp://1.2.3.4:1111</ctrl_url>
+ <data_url>tcp://1.2.3.4:1112</data_url>
+ </output>
+ <rate_policy>
+ <rate_policy_every_n>
+ <interval>1</interval>
+ </rate_policy_every_n>
+ </rate_policy>
+ </action_snapshot_session>
+ <error_query_results>
+ <error_query_result>
+ <name>total execution failures</name>
+ <description>Aggregated count of errors encountered when executing the action</description>
+ <error_query_result_counter>
+ <value>0</value>
+ </error_query_result_counter>
+ </error_query_result>
+ </error_query_results>
+ </action>
+ </action_list>
+ </action>
+ <error_query_results/>
+ </trigger>
+ <trigger>
+ <name>T6</name>
+ <owner_uid>${uid}</owner_uid>
+ <condition>
+ <condition_event_rule_matches>
+ <event_rule>
+ <event_rule_user_tracepoint>
+ <name_pattern>some-event</name_pattern>
+ </event_rule_user_tracepoint>
+ </event_rule>
+ <capture_descriptors/>
+ </condition_event_rule_matches>
+ <error_query_results>
+ <error_query_result>
+ <name>discarded tracer messages</name>
+ <description>Count of messages discarded by the tracer due to a communication error with the session daemon</description>
+ <error_query_result_counter>
+ <value>0</value>
+ </error_query_result_counter>
+ </error_query_result>
+ </error_query_results>
+ </condition>
+ <action>
+ <action_list>
+ <action>
+ <action_snapshot_session>
+ <session_name>ze-session</session_name>
+ <output>
+ <ctrl_url>/some/path</ctrl_url>
+ <max_size>1234</max_size>
+ </output>
+ <rate_policy>
+ <rate_policy_every_n>
+ <interval>1</interval>
+ </rate_policy_every_n>
+ </rate_policy>
+ </action_snapshot_session>
+ <error_query_results>
+ <error_query_result>
+ <name>total execution failures</name>
+ <description>Aggregated count of errors encountered when executing the action</description>
+ <error_query_result_counter>
+ <value>0</value>
+ </error_query_result_counter>
+ </error_query_result>
+ </error_query_results>
+ </action>
+ </action_list>
+ </action>
+ <error_query_results/>
+ </trigger>
+ <trigger>
+ <name>T7</name>
+ <owner_uid>${uid}</owner_uid>
+ <condition>
+ <condition_event_rule_matches>
+ <event_rule>
+ <event_rule_user_tracepoint>
+ <name_pattern>some-event</name_pattern>
+ </event_rule_user_tracepoint>
+ </event_rule>
+ <capture_descriptors/>
+ </condition_event_rule_matches>
+ <error_query_results>
+ <error_query_result>
+ <name>discarded tracer messages</name>
+ <description>Count of messages discarded by the tracer due to a communication error with the session daemon</description>
+ <error_query_result_counter>
+ <value>0</value>
+ </error_query_result_counter>
+ </error_query_result>
+ </error_query_results>
+ </condition>
+ <action>
+ <action_list>
+ <action>
+ <action_snapshot_session>
+ <session_name>ze-session</session_name>
+ <output>
+ <name>meh</name>
+ <ctrl_url>/some/path</ctrl_url>
+ </output>
+ <rate_policy>
+ <rate_policy_every_n>
+ <interval>1</interval>
+ </rate_policy_every_n>
+ </rate_policy>
+ </action_snapshot_session>
+ <error_query_results>
+ <error_query_result>
+ <name>total execution failures</name>
+ <description>Aggregated count of errors encountered when executing the action</description>
+ <error_query_result_counter>
+ <value>0</value>
+ </error_query_result_counter>
+ </error_query_result>
+ </error_query_results>
+ </action>
+ </action_list>
+ </action>
+ <error_query_results/>
+ </trigger>
+ <trigger>
+ <name>T8</name>
+ <owner_uid>${uid}</owner_uid>
+ <condition>
+ <condition_event_rule_matches>
+ <event_rule>
+ <event_rule_user_tracepoint>
+ <name_pattern>some-event</name_pattern>
+ </event_rule_user_tracepoint>
+ </event_rule>
+ <capture_descriptors/>
+ </condition_event_rule_matches>
+ <error_query_results>
+ <error_query_result>
+ <name>discarded tracer messages</name>
+ <description>Count of messages discarded by the tracer due to a communication error with the session daemon</description>
+ <error_query_result_counter>
+ <value>0</value>
+ </error_query_result_counter>
+ </error_query_result>
+ </error_query_results>
+ </condition>
+ <action>
+ <action_list>
+ <action>
+ <action_snapshot_session>
+ <session_name>ze-session</session_name>
+ <rate_policy>
+ <rate_policy_every_n>
+ <interval>10</interval>
+ </rate_policy_every_n>
+ </rate_policy>
+ </action_snapshot_session>
+ <error_query_results>
+ <error_query_result>
+ <name>total execution failures</name>
+ <description>Aggregated count of errors encountered when executing the action</description>
+ <error_query_result_counter>
+ <value>0</value>
+ </error_query_result_counter>
+ </error_query_result>
+ </error_query_results>
+ </action>
+ </action_list>
+ </action>
+ <error_query_results/>
+ </trigger>
+ <trigger>
+ <name>T9</name>
+ <owner_uid>${uid}</owner_uid>
+ <condition>
+ <condition_event_rule_matches>
+ <event_rule>
+ <event_rule_user_tracepoint>
+ <name_pattern>some-event</name_pattern>
+ </event_rule_user_tracepoint>
+ </event_rule>
+ <capture_descriptors/>
+ </condition_event_rule_matches>
+ <error_query_results>
+ <error_query_result>
+ <name>discarded tracer messages</name>
+ <description>Count of messages discarded by the tracer due to a communication error with the session daemon</description>
+ <error_query_result_counter>
+ <value>0</value>
+ </error_query_result_counter>
+ </error_query_result>
+ </error_query_results>
+ </condition>
+ <action>
+ <action_list>
+ <action>
+ <action_snapshot_session>
+ <session_name>ze-session</session_name>
+ <rate_policy>
+ <rate_policy_once_after_n>
+ <threshold>10</threshold>
+ </rate_policy_once_after_n>
+ </rate_policy>
+ </action_snapshot_session>
+ <error_query_results>
+ <error_query_result>
+ <name>total execution failures</name>
+ <description>Aggregated count of errors encountered when executing the action</description>
+ <error_query_result_counter>
+ <value>0</value>
+ </error_query_result_counter>
+ </error_query_result>
+ </error_query_results>
+ </action>
+ </action_list>
+ </action>
+ <error_query_results/>
+ </trigger>
+ </triggers>
+ </output>
+ </command>
+ EOF
+