<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, I tried that also. I can't see the 8 char for multiple <br>
> RTEMS_RECORD_THREAD_NAME in print_item(). Still, I tried to follow the <br>
> previously mentioned algorithm.<br>
> <br>
> <a href="https://github.com/rmeena840/rtems-tools/commit/33c217642e36b91926dfd823e5b3b59974790084" rel="noreferrer" target="_blank">https://github.com/rmeena840/rtems-tools/commit/33c217642e36b91926dfd823e5b3b59974790084</a><br>
<br>
The code is more complicated than necessary, but it looks mostly all right.<br></blockquote><div>All variables are defined inside if()..else() scope. It can be made easy if we use global variables. You asked once not to use global variables. So I did in this way. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Setting<br>
<br>
+        cctx->thread_id_name[ item->cpu ].name_index = 0;<br>
<br>
if the name_index was 1, is wrong. You have to increment it.<br></blockquote><div>Done</div><div><a href="https://github.com/rmeena840/rtems-tools/commit/8ceb3ccb97422044fb30b3c562fc736cf0686d48">https://github.com/rmeena840/rtems-tools/commit/8ceb3ccb97422044fb30b3c562fc736cf0686d48</a> </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>