net: Set names for threads used by the network subsys/libs
Previously, these either used generic names like "workqueue" (so, it wasn't possible to distiguish tx and rx workqueues) or didn't set for net management thread. Here's an example of thread dump in a typical system (using stack_analyze() call): rx_workq (real size 4092): unused 3696 usage 396 / 4092 (9 %) tx_workq (real size 4092): unused 3692 usage 400 / 4092 (9 %) net_mgmt (real size 4092): unused 3772 usage 320 / 4092 (7 %) sysworkq (real size 4092): unused 3512 usage 580 / 4092 (14 %) idle (real size 252): unused 64 usage 188 / 252 (74 %) main (real size 4732): unused 3672 usage 1060 / 4732 (22 %) Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
This commit is contained in:
parent
d91c11f5bf
commit
cdeddee7c6
6 changed files with 8 additions and 0 deletions
|
@ -4043,6 +4043,8 @@ static int lwm2m_engine_init(struct device *dev)
|
|||
/* Lowest priority cooperative thread */
|
||||
K_PRIO_COOP(CONFIG_NUM_COOP_PRIORITIES - 1),
|
||||
0, K_NO_WAIT);
|
||||
k_thread_name_set(&engine_thread_data, "lwm2m");
|
||||
|
||||
LOG_DBG("LWM2M engine thread started");
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue