<div dir="ltr"><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"><br>Just to make sure we have a common understanding of the task. Could you <br>
please explain the task with your ideas to implement it in your own works?<br></blockquote><div>Sure.</div><div>As of now, we have to deal with 10-bit event number. This is the same event recording infrastructure is using.</div></div><br clear="all"><div>We have to turn record-client into something like this:</div><div><br></div><div>target --> TCP stream with struct rtems_record_items -> client -> <br>conversion -> CTF (metadata + event stream) -> files -> babeltrace -> <br>human readable text<br></div><div><br></div><div>Here in CTF (metadata + event stream), is event stream the same Event Recording infrastructure producing or is it a new event stream we have to make target to produce?</div><div><br></div><div>I am not sure how we have to store the event stream in a file? I once used nc(1) to store in the disk but the stored file didn't seem useful for work.</div><div><br></div><div>The first objective is to create metadata and figure out how babeltrace reads an arbitrary CTF session(CTF+event stream).</div><div><br></div><div>Then next modify print_item() in misc/record/record-main.c and change client_item to:</div><div><br></div><div>typedef struct {<br>   uint64_t                     ns;<br>   uint32_t                     cpu;<br>   rtems_record_event           event;<br>   uint64_t                     data;<br>} ctf_event;<br></div><div><br></div><div>This is just one event. We have to append this item one by one in a file. This file will be called event stream file. </div><div><br></div><div>If everything goes well then the next step would be just importing the metadata and event stream in babeltrace and print its human-readable form.</div><div><br></div><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></div>