<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">> The bit field is documented in the manual. I would simplify this to:<br>
> <br>
> cctx->switch_out_int[ item->cpu ].prev_state = ( ( ( item->data >> 24 ) <br>
> & 0x7 ) == 1 ) ? TASK_IDLE : TASK_RUNNING;<br>
<br>
Did you check how the Trace Compass behaviour changed with this?<br></blockquote><div>Yes. I imported the trace on Trace Compass. The CPU 5 Threads and CPU 5 States lines are straight in the beginning because there is no change in the cpu_id. At the end of the trace, there is a lot of change in cpu_id due to which Trace Compass shows other CPU thread and state lines.</div><div><br></div><div>I have attached the screenshot of trace compass. Have a look.</div><div><br></div><div>I have simplified the prev_state:</div><div><a href="https://github.com/rmeena840/rtems-tools/commit/672a8c17a0c1316b2e5b5c1963603e02817692f2">https://github.com/rmeena840/rtems-tools/commit/672a8c17a0c1316b2e5b5c1963603e02817692f2</a><br></div><div><br></div><div>Removed the enum from metadata:</div><div><a href="https://github.com/rmeena840/rtems-tools/commit/128b65866a653413523efdc2f4efd75a68b78d9d">https://github.com/rmeena840/rtems-tools/commit/128b65866a653413523efdc2f4efd75a68b78d9d</a><br></div><div><br></div><div><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>