X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=ustd%2Flowlevel.c;h=4c179c5cbe1317b71b6724f276fcd920cdee4ac8;hb=1d59f7ebe74e0bb11f5db359e543f8f05a2f8635;hp=47a6f776e6dc5a9f92c90327c7bb88179e5e36f6;hpb=04c989a49784c278c229a3a5fa0dc2154e03e209;p=ust.git diff --git a/ustd/lowlevel.c b/ustd/lowlevel.c index 47a6f77..4c179c5 100644 --- a/ustd/lowlevel.c +++ b/ustd/lowlevel.c @@ -120,6 +120,7 @@ void finish_consuming_dead_subbuffer(struct buffer_info *buf) /* If it was, we only check the data_size. This is the amount of valid data at * the beginning of the subbuffer. */ valid_length = header->data_size; + DBG("writing full subbuffer (%d) with valid_length = %ld", i_subbuf, valid_length); } else { /* If the subbuffer was not fully written, then we don't check data_size because @@ -128,6 +129,7 @@ void finish_consuming_dead_subbuffer(struct buffer_info *buf) */ valid_length = commit_seq & (buf->subbuf_size-1); + DBG("writing unfull subbuffer (%d) with valid_length = %ld", i_subbuf, valid_length); header->data_size = valid_length; header->sb_size = PAGE_ALIGN(valid_length); assert(i_subbuf == (last_subbuf % buf->n_subbufs));