Print events discarded
[babeltrace.git] / include / babeltrace / ctf / types.h
index 54fd84622f138f583b3eca5d14d73a28b8423778..0b045448908e3db9afba22ae165751776722f7ec 100644 (file)
@@ -40,6 +40,7 @@ struct packet_index {
        size_t content_size;    /* content size, in bits */
        uint64_t timestamp_begin;
        uint64_t timestamp_end;
+       uint32_t events_discarded;
 };
 
 /*
@@ -60,6 +61,8 @@ struct ctf_stream_pos {
        char *base;             /* mmap base address */
        ssize_t offset;         /* offset from base, in bits. EOF for end of file. */
        size_t cur_index;       /* current index in packet index */
+       void (*move_pos_slow)(struct ctf_stream_pos *pos, size_t offset,
+                       int whence); /* function called to switch packet */
 
        int dummy;              /* dummy position, for length calculation */
        struct bt_stream_callbacks *cb; /* Callbacks registered for iterator. */
@@ -190,7 +193,7 @@ void ctf_pos_get_event(struct ctf_stream_pos *pos)
        if (pos->offset == pos->content_size) {
                printf_debug("ctf_move_pos_slow (before call): %zd\n",
                             pos->offset);
-               ctf_move_pos_slow(pos, 0, SEEK_CUR);
+               pos->move_pos_slow(pos, 0, SEEK_CUR);
                printf_debug("ctf_move_pos_slow (after call): %zd\n",
                             pos->offset);
        }
This page took 0.025182 seconds and 4 git commands to generate.