<?xml version="1.0"?>
-<facility name="compact">
+<facility name="compact" align="0">
<description>The compact facility contains high rate compact events.</description>
+ <event name="time_heartbeat" scope="tracefile">
+ <description>System time values sent periodically to detect cycle counter
+ rollovers. Useful when only the 32 LSB of the TSC are saved in events
+ header : we save the full 64 bits in this event. Put here for core.xml
+ facility compatibility.
+ </description>
+ </event>
+
+ <event name="time_heartbeat_full" scope="tracefile" scope="trace" attribute="force">
+ <description>System time, full 64 bits TSC. Saved before trace restart.
+ Forced write, even if trace is stopped.
+ </description>
+ <field name="tsc"><uint_fixed size="8"/></field>
+ </event>
+
<event name="event_a">
<description>Compact event with no data</description>
</event>
<field name="data1"> <uint_fixed size="8"/> </field>
</event>
+ <event name="event_d" attribute="compact_data">
+ <description>Compact data event</description>
+ <field name="data1"> <uint_fixed size="4"/> </field>
+ </event>
+
+ <event name="event_e" attribute="compact_data">
+ <description>Compact data event</description>
+ <field name="data1"> <uint_fixed size="4"/> </field>
+ <field name="data2"> <uint_fixed size="8"/> </field>
+ </event>
+
+
</facility>
<event name="facility_load">
<description>Facility is loaded</description>
<field name="name"><string/></field>
- <field name="checksum"><uint size="4"/></field>
- <field name="id"><uint size="4"/></field>
- <field name="int_size"><uint size="4"/></field>
- <field name="long_size"><uint size="4"/></field>
- <field name="pointer_size"><uint size="4"/></field>
- <field name="size_t_size"><uint size="4"/></field>
- <field name="has_alignment"><uint size="4"/></field>
+ <field name="checksum"><uint_fixed size="4"/></field>
+ <field name="id"><uint_fixed size="4"/></field>
+ <field name="int_size"><uint_fixed size="4"/></field>
+ <field name="long_size"><uint_fixed size="4"/></field>
+ <field name="pointer_size"><uint_fixed size="4"/></field>
+ <field name="size_t_size"><uint_fixed size="4"/></field>
+ <field name="has_alignment"><uint_fixed size="4"/></field>
</event>
<event name="facility_unload">
<description>Facility is unloaded</description>
- <field name="id"><uint size="4"/></field>
+ <field name="id"><uint_fixed size="4"/></field>
</event>
<event name="time_heartbeat" scope="tracefile">
header : we save the full 64 bits in this event.
</description>
</event>
-
+
+ <event name="time_heartbeat_full" scope="tracefile" scope="trace" attribute="force">
+ <description>System time, full 64 bits TSC. Saved before trace restart.
+ Forced write, even if trace is stopped.
+ </description>
+ <field name="tsc"><uint_fixed size="8"/></field>
+ </event>
+
<event name="state_dump_facility_load" scope="trace">
<description>Facility is loaded while in state dump</description>
<field name="name"><string/></field>
- <field name="checksum"><uint size="4"/></field>
- <field name="id"><uint size="4"/></field>
- <field name="int_size"><uint size="4"/></field>
- <field name="long_size"><uint size="4"/></field>
- <field name="pointer_size"><uint size="4"/></field>
- <field name="size_t_size"><uint size="4"/></field>
- <field name="has_alignment"><uint size="4"/></field>
+ <field name="checksum"><uint_fixed size="4"/></field>
+ <field name="id"><uint_fixed size="4"/></field>
+ <field name="int_size"><uint_fixed size="4"/></field>
+ <field name="long_size"><uint_fixed size="4"/></field>
+ <field name="pointer_size"><uint_fixed size="4"/></field>
+ <field name="size_t_size"><uint_fixed size="4"/></field>
+ <field name="has_alignment"><uint_fixed size="4"/></field>
</event>
</facility>