no1wudi opened a new pull request #5828:
URL: https://github.com/apache/incubator-nuttx/pull/5828


   ## Summary
   Show assigned cpu in dump task, before this PR:
   ```
   [CPU0] riscv_showtasks:    PID    PRI      USED     STACK   FILLED    COMMAND
   [CPU0] riscv_showtasks:   ----   ----         0      2048     0.0%    irq
   [CPU0] riscv_dump_task:      0      0        1056      2000    52.8%    CPU0 
IDLE
   [CPU0] riscv_dump_task:      1      0          560      2000    28.0%    
CPU1 IDLE
   [CPU0] riscv_dump_task:      2      0          560      2000    28.0%    
CPU2 IDLE
   [CPU0] riscv_dump_task:      3      0          560      2000    28.0%    
CPU3 IDLE
   [CPU0] riscv_dump_task:      4      0            32      2000     1.6%    
CPU4 IDLE
   [CPU0] riscv_dump_task:      5      0            32      2000     1.6%    
CPU5 IDLE
   [CPU0] riscv_dump_task:      6      0            32      2000     1.6%    
CPU6 IDLE
   [CPU0] riscv_dump_task:      7      0             32      2000     1.6%    
CPU7 IDLE
   ```
   after
   ```
   [CPU0] riscv_showtasks:    PID    PRI   CPU      USED     STACK   FILLED    
COMMAND
   [CPU0] riscv_showtasks:   ----   ----  ----         0      2048     0.0%    
irq
   [CPU0] riscv_dump_task:      0      0     0      1056      2000    52.8%    
CPU0 IDLE
   [CPU0] riscv_dump_task:      1      0     1       560      2000    28.0%    
CPU1 IDLE
   [CPU0] riscv_dump_task:      2      0     2       560      2000    28.0%    
CPU2 IDLE
   [CPU0] riscv_dump_task:      3      0     3       560      2000    28.0%    
CPU3 IDLE
   [CPU0] riscv_dump_task:      4      0     4        32      2000     1.6%    
CPU4 IDLE
   [CPU0] riscv_dump_task:      5      0     5        32      2000     1.6%    
CPU5 IDLE
   [CPU0] riscv_dump_task:      6      0     6        32      2000     1.6%    
CPU6 IDLE
   [CPU0] riscv_dump_task:      7      0     7        32      2000     1.6%    
CPU7 IDLE
   ```
   ## Impact
   dumptask for risc-v only
   ## Testing
   rv-virt with qemu 6.2
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to