X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fplugins%2Fctf%2Ffs-src%2Flttng-index.hpp;h=644f57dec17c5c34f7610f9213fbedf458570973;hb=4164020e790f;hp=46eafa6b13ba729f276abb2441061a22e5adf818;hpb=087cd0f57f0f7d815a609a4e041d1200f380e4aa;p=babeltrace.git diff --git a/src/plugins/ctf/fs-src/lttng-index.hpp b/src/plugins/ctf/fs-src/lttng-index.hpp index 46eafa6b..644f57de 100644 --- a/src/plugins/ctf/fs-src/lttng-index.hpp +++ b/src/plugins/ctf/fs-src/lttng-index.hpp @@ -12,38 +12,40 @@ #include #include "compat/limits.h" -#define CTF_INDEX_MAGIC 0xC1F1DCC1 -#define CTF_INDEX_MAJOR 1 -#define CTF_INDEX_MINOR 1 +#define CTF_INDEX_MAGIC 0xC1F1DCC1 +#define CTF_INDEX_MAJOR 1 +#define CTF_INDEX_MINOR 1 #define CTF_INDEX_1_0_SIZE offsetof(struct ctf_packet_index, stream_instance_id) /* * Header at the beginning of each index file. * All integer fields are stored in big endian. */ -struct ctf_packet_index_file_hdr { - uint32_t magic; - uint32_t index_major; - uint32_t index_minor; - /* size of struct ctf_packet_index, in bytes. */ - uint32_t packet_index_len; +struct ctf_packet_index_file_hdr +{ + uint32_t magic; + uint32_t index_major; + uint32_t index_minor; + /* size of struct ctf_packet_index, in bytes. */ + uint32_t packet_index_len; } __attribute__((__packed__)); /* * Packet index generated for each trace packet store in a trace file. * All integer fields are stored in big endian. */ -struct ctf_packet_index { - uint64_t offset; /* offset of the packet in the file, in bytes */ - uint64_t packet_size; /* packet size, in bits */ - uint64_t content_size; /* content size, in bits */ - uint64_t timestamp_begin; - uint64_t timestamp_end; - uint64_t events_discarded; - uint64_t stream_id; - /* CTF_INDEX 1.0 limit */ - uint64_t stream_instance_id; /* ID of the channel instance */ - uint64_t packet_seq_num; /* packet sequence number */ +struct ctf_packet_index +{ + uint64_t offset; /* offset of the packet in the file, in bytes */ + uint64_t packet_size; /* packet size, in bits */ + uint64_t content_size; /* content size, in bits */ + uint64_t timestamp_begin; + uint64_t timestamp_end; + uint64_t events_discarded; + uint64_t stream_id; + /* CTF_INDEX 1.0 limit */ + uint64_t stream_instance_id; /* ID of the channel instance */ + uint64_t packet_seq_num; /* packet sequence number */ } __attribute__((__packed__)); #endif /* LTTNG_INDEX_H */