apache / mynewt-mcumgr

Apache mynewt
https://mynewt.apache.org/
99 stars 76 forks source link

mynewt_smp_svr: Stack is 8 byte aligned, 564 -> 568 #61

Closed vrahane closed 4 years ago

vrahane commented 4 years ago
utzig commented 4 years ago

@vrahane This is OK, but it does not change anything in the results, OS_STACK_ALIGN does add the 4 bytes because the value is not 8-byte aligned.

vrahane commented 4 years ago

@utzig Why do you say that ?

juul-vipulrahane-mbt15:myproj vipul.rahane$ newtmgr --connstring /dev/cu.usbmodem141411 --conntype ble --connstring "peer_name=smp_svr" taskstat
      task pri tid  runtime      csw    stksz   stkuse last_checkin next_checkin
    ble_ll   0   2        3     1487       90       64        0        0
      idle 255   0     2646     1931       64       26        0        0
      main 127   1       42      397      568      510        0        0
vrahane commented 4 years ago

@utzig the problem was that the stack size, even though it corrects it, it is still not what we have specified as a syscfg which causes bit of a confusion while looking at the taskstats. Hence, the change.