Closed neel-samsung closed 1 week ago
Hi @neel-samsung. For reference, could you please share the information printed for SMP when input "ps" to tash,
Hi @neel-samsung. For reference, could you please share the information printed for SMP when input "ps" to tash,
I have added the ps
command output to commit description. Please check.
Hi @neel-samsung. For reference, could you please share the information printed for SMP when input "ps" to tash,
I have added the
ps
command output to commit description. Please check.
Sorry I have one question. As I checked your commit, the CPU0 Idle shows running, but CPU1 Idle shows inactive. I assume when you capture "ps" command, both cores should be in their own idle thread. Also, I think in SMP case, there should always be 2 tasks showing RUNNING state, because we have 2 cores running concurrently. Could you please enlighten me on the above question?
Hi @neel-samsung. For reference, could you please share the information printed for SMP when input "ps" to tash,
I have added the
ps
command output to commit description. Please check.Sorry I have one question. As I checked your commit, the CPU0 Idle shows running, but CPU1 Idle shows inactive. I assume when you capture "ps" command, both cores should be in their own idle thread. Also, I think in SMP case, there should always be 2 tasks showing RUNNING state, because we have 2 cores running concurrently. Could you please enlighten me on the above question?
Thank you for addressing this. So, there was task state which was missed due to which some of task state were not printed correctly. We also need to take care of Assign (Ready) state in case of SMP.
I have updated the code and ps
command output. Now, in this case, tash and CPU1 idle are RUNNING
.
ps
command was not working properly with smp configs enabled. Idle task stack are not stored in heap region, instead they are stored in .bss region. For retrieving idle task stack, we should not search in heap region And this case was not handled properly for all cpu's idle task. So, we handle the case for every cpu's idle task.