X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=ltt-events.h;h=a5eab5b8b7ca1fecf5ed681282be8a1b08aee123;hb=1ec3f75aca46d4196d4d7dbbbe0b791f663203f1;hp=5b5dcb50ba14db062314dcfdb67d2aed85d0384e;hpb=d793d5e111fe1436fb8e15daa5d7fb1be8987bb4;p=lttng-modules.git diff --git a/ltt-events.h b/ltt-events.h index 5b5dcb50..a5eab5b8 100644 --- a/ltt-events.h +++ b/ltt-events.h @@ -147,6 +147,12 @@ struct ltt_channel_ops { void (*event_commit)(struct lib_ring_buffer_ctx *ctx); void (*event_write)(struct lib_ring_buffer_ctx *ctx, const void *src, size_t len); + /* + * packet_avail_size returns the available size in the current + * packet. Note that the size returned is only a hint, since it + * may change due to concurrent writes. + */ + size_t (*packet_avail_size)(struct channel *chan); wait_queue_head_t *(*get_reader_wait_queue)(struct ltt_channel *chan); };