<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">This is not a proper argument. You should use the packet context to indicate the CPU of the events.<br></blockquote><div><br></div><div>I have added the ctf_header in rtems_main.c</div><div><a href="https://github.com/rmeena840/rtems-tools/commit/5a1c7b6e3c0c5246a8afc538f9f01576a5ac7983">https://github.com/rmeena840/rtems-tools/commit/5a1c7b6e3c0c5246a8afc538f9f01576a5ac7983</a> </div><div><br></div><div>Tested on AWS. No warning from my end.</div><div><br></div><div>Now, each binary stream file has format:</div><div><stream_id=0> <cpu_id> <ns> <event> <data> <ns> <event> <data> ........</div><div><br></div><div>I have stream_id = 0 because in metadata there is one stream with id=0 so it has to be there.</div><div>Both stream_id and cpu_id is playing the role of header.</div><div><br></div><div>Here the modified metadata:</div><div><br></div><div><a href="https://github.com/rmeena840/rtems-tools/commit/afc73eb33c4366d81d63330f35e03af5df1410f5">https://github.com/rmeena840/rtems-tools/commit/afc73eb33c4366d81d63330f35e03af5df1410f5</a><br></div><div><br></div><div>The metadata has the same format as described above.</div><div><br></div><div>Babeltrace is able to read values. Here is the output:</div><div><br></div><div>0 RTEMS_RECORDING_EVENT: { cpu_id = 4 }, { ns = 954631069457, events = ( "RTEMS_RECORD_THREAD_STACK_CURRENT" : container = 209 ), data = 134621454958589 }<br>0 RTEMS_RECORDING_EVENT: { cpu_id = 18 }, { ns = 955492534605, events = ( "RTEMS_RECORD_THREAD_SWITCH_OUT" : container = 216 ), data = 720857707413798909 }<br>0 RTEMS_RECORDING_EVENT: { cpu_id = 19 }, { ns = 955499514125, events = ( "RTEMS_RECORD_THREAD_SWITCH_IN" : container = 215 ), data = 648799898627506173 }<br></div><div><br></div><div>As you can see. It now includes cpu_id also.</div></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></div>