2 * Copyright (C) 2013 - Julien Desfossez <jdesfossez@efficios.com>
3 * David Goulet <dgoulet@efficios.com>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License, version 2 only,
7 * as published by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 #define INDEX_MAGIC "CTFIDX"
29 * Header at the beginning of each index file.
30 * All integer fields are stored in big endian.
32 struct lttng_packet_index_file_hdr
{
36 } __attribute__((__packed__
));
39 * Packet index generated for each trace packet store in a trace file.
40 * All integer fields are stored in big endian.
42 struct lttng_packet_index
{
43 uint64_t offset
; /* offset of the packet in the file, in bytes */
44 uint64_t packet_size
; /* packet size, in bits */
45 uint64_t content_size
; /* content size, in bits */
46 uint64_t timestamp_begin
;
47 uint64_t timestamp_end
;
48 uint64_t events_discarded
;
50 } __attribute__((__packed__
));
52 #endif /* LTTNG_INDEX_H */