Below is a sample output from taskstats on newtmgr. I have a suggested change 
(see below) for displaying stack.

Current output:
wes@~/tmp/ble_capture/scan$ newtmgr -cusbA6 taskstats
Return Code = 0
  idle (prio=255 tid=0 runtime=102525 cswcnt=4070 stksize=32 stkusage=17 
last_checkin=0 next_checkin=0)
  shell (prio=3 tid=1 runtime=0 cswcnt=9 stksize=256 stkusage=57 last_checkin=0 
next_checkin=0)
  newtmgr (prio=4 tid=2 runtime=1 cswcnt=4 stksize=448 stkusage=125 
last_checkin=0 next_checkin=0)
  bletest (prio=2 tid=3 runtime=6 cswcnt=4103 stksize=256 stkusage=125 
last_checkin=0 next_checkin=0)
  ble_hs (prio=1 tid=4 runtime=579 cswcnt=2092 stksize=256 stkusage=156 
last_checkin=0 next_checkin=0)
  ble_ll (prio=0 tid=5 runtime=26 cswcnt=264 stksize=256 stkusage=49 
last_checkin=0 next_checkin=0)


Proposed change:

wes@~/tmp/ble_capture/scan$ newtmgr -cusbA6 taskstats
Return Code = 0
  idle (prio=255 tid=0 runtime=102525 cswcnt=4070 stack: 17/32 (53%) 
last_checkin=0 next_checkin=0)


this could also possibly be this (but I prefer the first one)

wes@~/tmp/ble_capture/scan$ newtmgr -cusbA6 taskstats
Return Code = 0
  idle (prio=255 tid=0 runtime=102525 cswcnt=4070 stack (used/size): 17/32 
(53%) last_checkin=0 next_checkin=0)

Comments?

Reply via email to