<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">Yes, the values are there, but babeltrace cannot deduce the clock <br>
source. In the LTTNG it displays it like this:<br>
<br>
[17:50:44.093076317] (+0.000002071)<br></blockquote><div>Okay. The timestamp_begin and timestamp_end member in packet.context are for the whole recording process. </div><div><br></div><div>The timestamp_begin means first record item recorded in the whole process per CPU.</div><div>The timestamp_end means the last record item recorded in the whole process per CPU.</div><div><br></div><div>So I moved the timestamp value of individual record item in event.header</div><div><br></div><div><a href="https://github.com/rmeena840/rtems-tools/commit/0542b83c5f28ad2d005e8c0d86c0f4a13d43fee9">https://github.com/rmeena840/rtems-tools/commit/0542b83c5f28ad2d005e8c0d86c0f4a13d43fee9</a><br></div><div><br></div><div>Now, babeltrace is able to print timestamp value now.</div><div><br></div><div>It looks like this:</div><div><br></div><div>babeltrace . | head<br></div><div><br></div><div>[19:16:31.180116542] (+0.000000000) Record_Item RTEMS_RECORDING_EVENT: { cpu_id = 17 }, { events = ( "RTEMS_RECORD_THREAD_STACK_CURRENT" : container = 209 ), data = 5856 }<br>[19:16:31.180116542] (+0.000000000) Record_Item RTEMS_RECORDING_EVENT: { cpu_id = 17 }, { events = ( "RTEMS_RECORD_THREAD_SWITCH_IN" : container = 215 ), data = 151060500 }<br>[19:16:31.180154588] (+0.000038046) Record_Item RTEMS_RECORDING_EVENT: { cpu_id = 17 }, { events = ( "RTEMS_RECORD_THREAD_SWITCH_OUT" : container = 216 ), data = 151060500 }<br>[19:16:31.180154588] (+0.000000000) Record_Item RTEMS_RECORDING_EVENT: { cpu_id = 17 }, { events = ( "RTEMS_RECORD_THREAD_STACK_CURRENT" : container = 209 ), data = 7392 }<br>[19:16:31.180154588] (+0.000000000) Record_Item RTEMS_RECORDING_EVENT: { cpu_id = 17 }, { events = ( "RTEMS_RECORD_THREAD_SWITCH_IN" : container = 215 ), data = 167837739 }<br>[19:16:31.180174232] (+0.000019644) Record_Item RTEMS_RECORDING_EVENT: { cpu_id = 17 }, { events = ( "RTEMS_RECORD_THREAD_SWITCH_OUT" : container = 216 ), data = 167837739 }<br>[19:16:31.180174232] (+0.000000000) Record_Item RTEMS_RECORDING_EVENT: { cpu_id = 17 }, { events = ( "RTEMS_RECORD_THREAD_STACK_CURRENT" : container = 209 ), data = 5856 }<br></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>