<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">I checked in the RTEMS patch to add some basic support for thread names. <br>
Please update your RTEMS to the current master branch.<br>
<br>
I check in some patches for the rtems-record program in your rtems-tools <br>
branch.<br>
<br>
Please run your tests with new raw input data:<br>
<br>
../../build/misc/rtems-record --input=../record/qoriq_e6500_64.bin<br></blockquote><div>Okay. Pulled the recent changes. Getting different output. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
The next tasks are:<br>
<br>
1. Detect if we switch to/from an idle thread. In this case set the <br>
corresponding state to TASK_IDLE == 1026.<br></blockquote><div>I tried to work on this task. I am not sure how to detect it without calling pthread_*.</div><div>Does this have to do something with <span style="color:rgb(153,0,0);font-weight:bold;font-family:Consolas,"Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px">rtems_task_is_suspended?</span></div><div><a href="https://docs.rtems.org/branches/master/c-user/task_manager.html#rtems-task-is-suspended">https://docs.rtems.org/branches/master/c-user/task_manager.html#rtems-task-is-suspended</a><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
2. The program should learn the thread names corresponding to a thread <br>
identifier. Build up a thread identifier to thread name map. Use the map <br>
to emit thread names in the sched_switch event.<br></blockquote><div>Mapping should be like this:</div><div>[thread_id]->[thread_name] or [thread_name]->[thread_id]?</div><div><br></div><div>the thread name can be obtained by:</div><div>rtems_record_event_text( item->event )</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
You can use C++ if this makes it easier for you.<br></blockquote><div>I will have to create separate c++ file for this.</div></div><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>