CONFIG_OS_MGMT_TASKSTAT_STACK_INFO

Include stack info in taskstat responses

Type: bool

Help

Enabling this option adds stack information into "taskstat" command
responses, this is default when THREAD_STACK_INFO is selected.
Disable this option only when your client application is able to
process "taskstat" response without the "stksiz" and "stkuse" fields.
It is worth disabling this option when THREAD_STACK_INFO is disabled,
as it will prevent sending zeroed stack information just to fill
all the fields in "taskstat" responses, and it will slightly reduce code size.

Direct dependencies

THREAD_STACK_INFO && OS_MGMT_TASKSTAT && MCUMGR_CMD_OS_MGMT && MCUMGR

(Includes any dependencies from ifs and menus.)

Defaults

No defaults. Implicitly defaults to n.

Kconfig definition

At <Subsystem>/mgmt/mcumgr/Kconfig:298

Included via Kconfig:8Kconfig.zephyr:44<Subsystem>/Kconfig:35<Subsystem>/mgmt/Kconfig:9

Menu path: (Top) → Sub Systems and OS Services → Device Management → mcumgr Support → Command Handlers → Enable mcumgr handlers for OS management → Support for taskstat command

config OS_MGMT_TASKSTAT_STACK_INFO
    bool "Include stack info in taskstat responses"
    depends on THREAD_STACK_INFO && OS_MGMT_TASKSTAT && MCUMGR_CMD_OS_MGMT && MCUMGR
    help
      Enabling this option adds stack information into "taskstat" command
      responses, this is default when THREAD_STACK_INFO is selected.
      Disable this option only when your client application is able to
      process "taskstat" response without the "stksiz" and "stkuse" fields.
      It is worth disabling this option when THREAD_STACK_INFO is disabled,
      as it will prevent sending zeroed stack information just to fill
      all the fields in "taskstat" responses, and it will slightly reduce code size.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)