X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=ltt-ring-buffer-client.h;h=0177d48b6cfab82926dce3ccb0330879eea6647e;hb=05d32c64199816da32cd95929a8ff0d0d38d7f60;hp=caf949cdc414659a4f164ca5987621a3ebb9d1fd;hpb=91e0dcaa69c92501ce4e045c76486f258fd5e0e5;p=deliverable%2Flttng-modules.git diff --git a/ltt-ring-buffer-client.h b/ltt-ring-buffer-client.h index caf949cd..0177d48b 100644 --- a/ltt-ring-buffer-client.h +++ b/ltt-ring-buffer-client.h @@ -304,8 +304,8 @@ static void client_buffer_end(struct lib_ring_buffer *buf, u64 tsc, unsigned long records_lost = 0; header->ctx.timestamp_end = tsc; - header->ctx.content_size = data_size; - header->ctx.packet_size = PAGE_ALIGN(data_size); + header->ctx.content_size = data_size * CHAR_BIT; /* in bits */ + header->ctx.packet_size = PAGE_ALIGN(data_size) * CHAR_BIT; /* in bits */ records_lost += lib_ring_buffer_get_records_lost_full(&client_config, buf); records_lost += lib_ring_buffer_get_records_lost_wrap(&client_config, buf); records_lost += lib_ring_buffer_get_records_lost_big(&client_config, buf);