<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, prev_state is the state of the previous thread. See my other email which mentions the swapper. In the Trace Compass code you see that a tid == 0 is used to detect an idle CPU.<br>
<br>
We have to set prev_tid to 0 if the previous thread is an idle thread, likewise for next_tid if the next thread is an idle thread.<br></blockquote><div>Okay. I have added the idle thread condition in next_tid.</div><div><a href="https://github.com/rmeena840/rtems-tools/commit/4e767dd71a7dc402edf7ac5e1ed78cdb49e09607">https://github.com/rmeena840/rtems-tools/commit/4e767dd71a7dc402edf7ac5e1ed78cdb49e09607</a></div><div><br></div><div>Have a look. </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>