<div dir="ltr">Hi Sebastian,<div><br></div><div>I followed <a href="https://diamon.org/ctf/">https://diamon.org/ctf/</a> and tried to code. I forked the rtems-tools and made a commit. </div><div><a href="https://github.com/rmeena840/rtems-tools/commit/e1917f5afeba051e4e87285eed9e36b2591dc643">https://github.com/rmeena840/rtems-tools/commit/e1917f5afeba051e4e87285eed9e36b2591dc643</a><br></div><div><br></div><div>Please have a look and let me know if I am going in the right direction.</div><div><br></div><div><br></div><div>I would like to ask one thing that at 5.1 of <a href="https://diamon.org/ctf/">https://diamon.org/ctf/</a>  it is mentioned that "trace.packet.header" is required. Since, It was not there I was getting error at:</div><div><br></div><div>trace {<br>    /* ... */<br>    packet.header := struct event_packet_header;<br>};<br></div><div><br></div><div>Is there any need requirement of file or library?</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 20, 2019 at 11:23 AM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 20/05/2019 07:46, Ravindra Kumar Meena wrote:<br>
> On Thu, May 16, 2019 at 2:54 PM Sebastian Huber <br>
> <<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a> <br>
> <mailto:<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>>> wrote:<br>
><br>
>     On 16/05/2019 11:05, Ravindra Kumar Meena wrote:<br>
><br>
>     The record data format is described in<br>
>     cpukit/include/rtems/recorddata.h. If you think this documentation is<br>
>     insufficient, unclear and needs to be improved, then please do<br>
>     this as<br>
>     part of the project.<br>
><br>
><br>
> I can see there is a fixed set of 512 system reserved and 512 <br>
> user-defined events. The total size of the record i item is 32 bits <br>
> out of which 10 bits are allocated to the event and 22 bits are <br>
> allocated to timestamps. The record item is defined in two formats 32 <br>
> and 64 bits.<br>
<br>
Yes, the target depends if the data member is 32-bits or 64-bits. The <br>
reason for this is that we need enough space to store pointers.<br>
<br>
><br>
>     With the Qemu simulation you set up during the project proposal,<br>
>     you are<br>
>     able to get a TCP stream of record items from the Qemu target to your<br>
>     host. You also have an example client which sorts this stream,<br>
>     determines the timestamps and prints the items.<br>
><br>
><br>
> The stream print function is defined at <br>
> rtems-tools/misc/record/record-main.c inside function "static void <br>
> print_item( FILE *f, const client_item *item )".  This function prints <br>
> the TCP stram.<br>
<br>
Yes.<br>
<br>
><br>
>     Your job is now to convert the record item stream into a CTF stream.<br>
><br>
><br>
> In order to convert to CTF, we need to know the structure of it. I <br>
> followed this page <a href="https://diamon.org/ctf/" rel="noreferrer" target="_blank">https://diamon.org/ctf/</a>. The CTF stream packet has <br>
> three major parts header, context, concatenated events(header, <br>
> stream-specific context, event-specific context, payload).<br>
<br>
Yes.<br>
<br>
><br>
> *I would like to point out one thing that I recently pulled the <br>
> rtems-libbsd and tried to build it again. The build fails due to <br>
> recent commits made in the master branch(after the commits "Update due <br>
> to API changes").*<br>
<br>
If you update rtems-libbsd, then also update rtems and build the BSP <br>
again, then build the libbsd.<br>
<br>
> *<br>
> *<br>
> Thanks<br>
><br>
><br>
><br>
>     -- <br>
>     Sebastian Huber, embedded brains GmbH<br>
><br>
>     Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>
>     Phone   : +49 89 189 47 41-16<br>
>     Fax     : +49 89 189 47 41-09<br>
>     E-Mail  : <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>
>     <mailto:<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>><br>
>     PGP     : Public key available on request.<br>
><br>
>     Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br>
><br>
><br>
><br>
> -- <br>
> *Ravindra Kumar Meena*,<br>
> B. Tech. Computer Science and Engineering,<br>
> Indian Institute of Technology (Indian School of Mines) <br>
> <<a href="https://www.iitism.ac.in/" rel="noreferrer" target="_blank">https://www.iitism.ac.in/</a>>, Dhanbad<br>
<br>
-- <br>
Sebastian Huber, embedded brains GmbH<br>
<br>
Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>
Phone   : +49 89 189 47 41-16<br>
Fax     : +49 89 189 47 41-09<br>
E-Mail  : <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>
PGP     : Public key available on request.<br>
<br>
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><font size="4"><b>Ravindra Kumar Meena</b></font>,<div><span style="color:rgb(102,102,102)">B. Tech. Computer Science and Engineering,<br></span></div><div><span style="color:rgb(102,102,102)"><a href="https://www.iitism.ac.in/" style="color:rgb(17,85,204)" target="_blank">Indian Institute of Technology (Indian School of Mines)</a>, Dhanbad</span></div></div></div></div></div>