<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">You received RTEMS_RECORD_THREAD_SWITCH_OUT two record events before the <br>
RTEMS_RECORD_THREAD_SWITCH_IN with the same timestamp. See my comment <br>
above. In these two record events all you need for the sched_switch <br>
event is contained.<br></blockquote><div><br></div><div>Have made changes:</div><div><br></div><div><a href="https://github.com/rmeena840/rtems-tools/commit/880eb38c41f66e5ca08429f9ed52a209feed123e">https://github.com/rmeena840/rtems-tools/commit/880eb38c41f66e5ca08429f9ed52a209feed123e</a></div><div><br></div><div>Have a look.</div><div><br></div><div>Babeltrace output:</div><div><br></div><div>babeltrace . | head</div><div><br></div><div>[19:16:31.180116542] (+?.?????????) Record_Item sched_switch: { cpu_id = 17 }, { prev_comm = "0a01002b", prev_tid = 167837739, prev_prio = 0, prev_state = 0, next_comm = "000016e0", next_tid = 5856, next_prio = 0 }<br>[19:16:31.180116542] (+0.000000000) Record_Item sched_switch: { cpu_id = 17 }, { prev_comm = "000016e0", prev_tid = 5856, prev_prio = 0, prev_state = 0, next_comm = "09010014", next_tid = 151060500, next_prio = 0 }<br>[19:16:31.180116542] (+0.000000000) Record_Item sched_switch: { cpu_id = 17 }, { prev_comm = "09010014", prev_tid = 151060500, prev_prio = 0, prev_state = 0, next_comm = "0a01002b", next_tid = 167837739, next_prio = 0 }<br>[19:16:31.180154588] (+0.000038046) Record_Item sched_switch: { cpu_id = 17 }, { prev_comm = "09010014", prev_tid = 151060500, prev_prio = 0, prev_state = 0, next_comm = "00001ce0", next_tid = 7392, next_prio = 0 }<br>[19:16:31.180154588] (+0.000000000) Record_Item sched_switch: { cpu_id = 17 }, { prev_comm = "00001ce0", prev_tid = 7392, prev_prio = 0, prev_state = 0, next_comm = "0a01002b", next_tid = 167837739, next_prio = 0 }<br>[19:16:31.180154588] (+0.000000000) Record_Item sched_switch: { cpu_id = 17 }, { prev_comm = "0a01002b", prev_tid = 167837739, prev_prio = 0, prev_state = 0, next_comm = "09010014", next_tid = 151060500, next_prio = 0 }<br>[19:16:31.180174232] (+0.000019644) Record_Item sched_switch: { cpu_id = 17 }, { prev_comm = "0a01002b", prev_tid = 167837739, prev_prio = 0, prev_state = 0, next_comm = "000016e0", next_tid = 5856, next_prio = 0 }<br>[19:16:31.180174232] (+0.000000000) Record_Item sched_switch: { cpu_id = 17 }, { prev_comm = "000016e0", prev_tid = 5856, prev_prio = 0, prev_state = 0, next_comm = "09010014", next_tid = 151060500, next_prio = 0 }<br>[19:16:31.180174232] (+0.000000000) Record_Item sched_switch: { cpu_id = 17 }, { prev_comm = "09010014", prev_tid = 151060500, prev_prio = 0, prev_state = 0, next_comm = "0a01002b", next_tid = 167837739, next_prio = 0 }<br>[19:16:31.180223920] (+0.000049688) Record_Item sched_switch: { cpu_id = 5 }, { prev_comm = "09010015", prev_tid = 151060501, prev_prio = 0, prev_state = 0, next_comm = "00001ce0", next_tid = 7392, next_prio = 0 }<br></div><div><br></div><div>Now the prev_* and next_* values are not equal. </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>