> > 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. > > 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. > Okay. I have added the idle thread condition in next_tid. https://github.com/rmeena840/rtems-tools/commit/4e767dd71a7dc402edf7ac5e1ed78cdb49e09607
Have a look. -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines) <https://www.iitism.ac.in/>, Dhanbad
_______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel