<div dir="auto"><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
>> This is very good news. Writing the event stream is the easy part. Just<br>
>> fwrite() the events in the modified print_item(). Your TSDL in the metadata<br>
>> file must describe this event stream.<br>
>><br>
> Yes. That's what I am trying today. You suggested that I have to convert<br>
> client_item(see below)<br>
> typedef struct client_item {<br>
> union {<br>
> SLIST_ENTRY( client_item ) free_node;<br>
> RB_ENTRY( client_item ) active_node;<br>
> };<br>
> uint64_t ns;<br>
> uint32_t cpu;<br>
> rtems_record_event event;<br>
> uint64_t data;<br>
> uint64_t counter;<br>
> } client_item;<br>
> <br>
> to<br>
> <br>
> typedef struct ctf_event {<br>
> uint64_t ns;<br>
> uint32_t cpu;<br>
> rtems_record_event event;<br>
> uint64_t data;<br>
> uint64_t counter;<br>
<br>
Please remove the counter. It is only used internally in the client.<br>
<br>
<br>
> } ctf_event;<br>
> <br>
> I did that but rtems-tools build is failing because I think some part of<br>
> the codebase is dependent on<br>
> union {<br>
> SLIST_ENTRY( client_item ) free_node;<br>
> RB_ENTRY( client_item ) active_node;<br>
> };<br>
> <br>
> How should I deal with it?<br>
<br>
Why do you want to change struct client_item? You should create a struct ctf_event variable in print_item() on the stack, initialize it with the values handed over in the client item and fwrite() it to the event stream.<br></blockquote></div><div dir="auto"> Okay. I have sent the patch. Although it's not working. I tried very much but it was appending the events.</div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div>