<div dir="ltr"><div>Hi Sebastian,</div><div><br></div><div>Like I said that all values are correct(ns, CPU, data) except rtems_record_event. This is happening because of byte order issue. </div><div><br></div><div>This is the warning output of babeltrace </div><div><br></div><div>[warning] Unknown value 927712935936 in enum.<br>0 RTEMS_RECORDING_EVENT: { ns = 4281426372217274368, cpu = 0, events = ( <unknown> : container = 927712935936 ), data = 167837702 }<br>[warning] Unknown value 897648164864 in enum.<br>0 RTEMS_RECORDING_EVENT: { ns = 4281426372217274368, cpu = 0, events = ( <unknown> : container = 897648164864 ), data = 32440 }</div><div><br></div><div>Whatever value is passed on "ctf_item.data=item->event;" is converted into big-endian value. That's why it giving huge value e.g 897648164864. See the above output.</div><div><br></div><div>If we change the byte order of 897648164864 then it will be 215 which is in the range of 0 to 1023. This is what we want.</div><div><br></div><div>If we could pass the big-endian value on "ctf_item.data=item->event;" then it will work fine. I intentionally tried to pass 897648164864 directly to "ctf_item.data=item->event;" and it was working fine because its byte order is changed and its new value will be 215.</div><div><br></div><div>I tried a few approaches but didn't work for me. Any idea how to deal with it?</div><div><br></div><div>Thanks</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">
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_251739093166565297gmail_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>