Event Recording/CTF: Get closer to LTTNG output

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Jul 11 09:29:57 UTC 2019


On 11/07/2019 11:24, Ravindra Kumar Meena wrote:
>     the basic structure is now similar to the LTTNG output. The next
>     step is
>     to produce a packet header identical to LTTNG:
> 
>     trace {
>              major = 1;
>              minor = 8;
>              uuid = "6a7715d0-b502-4c65-8678-6777ac7f755a";
>              byte_order = le;
>              packet.header := struct {
>                      uint32_t magic;
>                      uint8_t  uuid[16];

Why don't you simply use the above in your C code as well?

>                      uint32_t stream_id;
>                      uint64_t stream_instance_id;
>              };
>     };
> 
> I have added the ctf magic(0xC1FC1FC1) in header. I am facing difficulty 
> in adding uuid in header. uuid is 128 a bit number which has 5 octets of 
> 8-4-4-4-12 bytes.
[...]

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list