<div dir="ltr"><div dir="ltr">On Thu, May 16, 2019 at 2:54 PM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 16/05/2019 11:05, Ravindra Kumar Meena wrote:<br>
<br><font color="#ff0000">
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 this as <br>
part of the project.<br></font></blockquote><div><br></div><div>I can see there is a fixed set of 512 system reserved and 512 user-defined events. The total size of the record i item is 32 bits out of which 10 bits are allocated to the event and 22 bits are allocated to timestamps. The record item is defined in two formats 32 and 64 bits.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font color="#ff0000">
<br>
With the Qemu simulation you set up during the project proposal, 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></font></blockquote><div><br></div><div>The stream print function is defined at rtems-tools/misc/record/record-main.c inside function "static void print_item( FILE *f, const client_item *item )".  This function prints the TCP stram. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font color="#ff0000">
<br>
Your job is now to convert the record item stream into a CTF stream.</font></blockquote><div><br></div><div>In order to convert to CTF, we need to know the structure of it. I followed this page <a href="https://diamon.org/ctf/">https://diamon.org/ctf/</a>. The CTF stream packet has three major parts header, context, concatenated events(header, stream-specific context, event-specific context, payload). </div><div><br></div><div><b>I would like to point out one thing that I recently pulled the rtems-libbsd and tried to build it again. The build fails due to recent commits made in the master branch(after the commits "Update due to API changes").</b></div><div><b><br></b></div><div>Thanks</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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="m_-8287054659934121893gmail_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></div>