4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-19 23:03:32 +08:00
Shell 6ca327d8ce
[smart] add CPU/thread usage tracing config (#8947)
* [smart] add CPU usage tracing config

This patch introduces following features:

- Added CPU usage tracing functionality, enabled by default, for
  applications like 'top'
- update time as smart independent

Signed-off-by: Shell <smokewood@qq.com>

* fixup: add ump idle thread

---------

Signed-off-by: Shell <smokewood@qq.com>
2024-06-04 00:06:41 +08:00

80 lines
1.9 KiB
Plaintext

menuconfig RT_USING_LWP
bool "light-weight process"
depends on RT_USING_SMART
default y
help
The lwP is a light weight process running in user mode.
if RT_USING_LWP
menuconfig LWP_DEBUG
bool "Enable debugging features of LwP"
default y
if LWP_DEBUG
config LWP_DEBUG_INIT
select RT_USING_HOOKLIST
bool "Enable debug mode of init process"
default n
endif
config RT_LWP_MAX_NR
int "The max number of light-weight process"
default 30
config LWP_TASK_STACK_SIZE
int "The lwp thread kernel stack size"
default 16384
config RT_CH_MSG_MAX_NR
int "The maximum number of channel messages"
default 1024
config LWP_CONSOLE_INPUT_BUFFER_SIZE
int "The input buffer size of lwp console device"
default 1024
config LWP_TID_MAX_NR
int "The maximum number of lwp thread id"
default 64
config LWP_ENABLE_ASID
bool "The switch of ASID feature"
depends on ARCH_ARM_CORTEX_A
default y
if ARCH_MM_MMU
config RT_LWP_SHM_MAX_NR
int "The maximum number of shared memory"
default 64
endif
if ARCH_MM_MPU
config RT_LWP_MPU_MAX_NR
int "The maximum number of mpu region"
default 2
config RT_LWP_USING_SHM
bool "Enable shared memory"
default y
endif
menuconfig RT_USING_LDSO
bool "LDSO: dynamic load shared objects"
depends on RT_USING_DFS_V2
select RT_USING_PAGECACHE
default y
if RT_USING_LDSO
config ELF_DEBUG_ENABLE
bool "Enable ldso debug"
default n
config ELF_LOAD_RANDOMIZE
bool "Enable random load address"
default n
endif
source "$RTT_DIR/components/lwp/terminal/Kconfig"
endif