You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Zephyr 3.7.0 changed the 2 threads being tracked:
- `BT RX` thread was renamed to `BT RX WQ`:
zephyrproject-rtos/zephyr@5591d23
- `BT TX` thread was removed, TX ops now run on sysworkq
Update the `ncs_bt_rx_unused_stack` metric to track the `BT RX WQ`
thread.
Remove the `ncs_bt_tx_unused_stack` metric.
Add a new metric, `ncs_bt_lw_wq_unused_stack`, to track the `BT LW WQ`
thread stack usage.
To test:
Build a sample like so:
❯ west build --board nrf54l15dk/nrf54l15/cpuapp \
--pristine=always zephyr/samples/bluetooth/peripheral_hr \
-- \
-DCONFIG_SHELL=y \
-DCONFIG_MEMFAULT=y \
-DCONFIG_MEMFAULT_DEVICE_INFO_CUSTOM=y \
-DCONFIG_HWINFO=y \
-DCONFIG_BT_SHELL=y \
-DCONFIG_MEMFAULT_NCS_FW_TYPE=\"app\" \
-DCONFIG_MEMFAULT_NCS_DEVICE_ID=\"testserial\" \
-DCONFIG_MEMFAULT_NCS_BT_METRICS=y \
-DCONFIG_MEMFAULT_NCS_STACK_METRICS=y
Trigger a heartbeat using shell commands, and do the usual
upload-symbol-file-and-upload-chunks dance to push the data into
Memfault, and confirm it decodes correctly:
uart:~$ mflt test heartbeat
Triggering Heartbeat
uart:~$ mflt export
<chunks follow>
Decoded heartbeat metrics:
"ncs_bt_rx_unused_stack": 2952,
"ncs_bt_lw_wq_unused_stack": 848,
Signed-off-by: Noah Pendleton <[email protected]>
Copy file name to clipboardExpand all lines: doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -760,6 +760,12 @@ Memfault integration
760
760
* The ``CONFIG_MEMFAULT_DEVICE_INFO_CUSTOM`` Kconfig option has been renamed to :kconfig:option:`CONFIG_MEMFAULT_NCS_DEVICE_INFO_CUSTOM`.
761
761
* The ``CONFIG_MEMFAULT_DEVICE_INFO_BUILTIN`` Kconfig option has been renamed to :kconfig:option:`CONFIG_MEMFAULT_NCS_DEVICE_INFO_BUILTIN`.
762
762
763
+
* Added a metric tracking the unused stack space of the Bluetooth Long workqueue thread, when the :kconfig:option:`CONFIG_MEMFAULT_NCS_BT_METRICS` Kconfig option is enabled.
764
+
The new metric is named ``ncs_bt_lw_wq_unused_stack``.
765
+
766
+
* Removed a metric for the tracking Bluetooth TX thread unused stack ``ncs_bt_tx_unused_stack``.
767
+
The thread in question was removed in Zephyr v3.7.0.
0 commit comments