From: Pierre-Marc Fournier Date: Mon, 15 Feb 2010 05:28:03 +0000 (-0500) Subject: ustd: add FIXME X-Git-Tag: v0.2~10 X-Git-Url: https://git.lttng.org/?p=ust.git;a=commitdiff_plain;h=14e859d8ecbbed251380ec1c973c31cf9245b047 ustd: add FIXME --- diff --git a/ustd/lowlevel.c b/ustd/lowlevel.c index 6565749..a79b494 100644 --- a/ustd/lowlevel.c +++ b/ustd/lowlevel.c @@ -112,6 +112,8 @@ void finish_consuming_dead_subbuffer(struct buffer_info *buf) } /* Check if subbuf was fully written. This is from Mathieu's algorithm/paper. */ + /* FIXME: not sure data_size = 0xffffffff when the buffer is not full. It might + * take the value of the header size initially */ if (((commit_seq - buf->subbuf_size) & commit_seq_mask) - (USTD_BUFFER_TRUNC(consumed_offset, buf) >> n_subbufs_order) == 0 && header->data_size != 0xffffffff && header->sb_size != 0xffffffff) {