Fix metadata header
[lttng-modules.git] / ltt-ring-buffer-client.h
index caf949cdc414659a4f164ca5987621a3ebb9d1fd..0177d48b6cfab82926dce3ccb0330879eea6647e 100644 (file)
@@ -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);
This page took 0.024289 seconds and 4 git commands to generate.