CTF example

Gedare Bloom gedare at rtems.org
Fri Jun 21 16:19:04 UTC 2019


On Fri, Jun 21, 2019 at 10:10 AM Ravindra Kumar Meena
<rmeena840 at gmail.com> wrote:
>
> Hi,
>
> Thanks for sharing the example.
>
> I managed to store the RTEMs event stream in a file. I have also written the metada for the same but babeltrace is not able to read CTF because metadata is not compatible with it.
>
> Do you have any example or approach to make metadata compatible with events?
>
> This is CTF event I am storing in event stream file.
>
> typedef struct ctf_event {
>   uint64_t                     ns;
>  uint32_t                     cpu;
>   rtems_record_event           event;
>  uint64_t                     data;
> } ctf_event;

Can you expand the rtems_record_event to its constituent primitive
types? This should make it easier to write the metadata I suspect.
Even you can try writing a yaml that encodes this structure and use
barectf to generate the metadata?



More information about the devel mailing list