tracing: cleanup and split segger/rtt configuration options
Move rtt configuration options to drivers/debug and split the systemview configuration. drivers/debug will service for this class of drivers that are enabled in debug mode only and provide a hardware interface to the system. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
86adcd02af
commit
fad8701748
6 changed files with 36 additions and 24 deletions
|
@ -13,6 +13,8 @@ source "drivers/lora/Kconfig"
|
||||||
|
|
||||||
source "drivers/console/Kconfig"
|
source "drivers/console/Kconfig"
|
||||||
|
|
||||||
|
source "drivers/debug/Kconfig"
|
||||||
|
|
||||||
source "drivers/ethernet/Kconfig"
|
source "drivers/ethernet/Kconfig"
|
||||||
|
|
||||||
source "drivers/net/Kconfig"
|
source "drivers/net/Kconfig"
|
||||||
|
|
4
drivers/debug/Kconfig
Normal file
4
drivers/debug/Kconfig
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# Copyright (c) 2020 Intel Corporation
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
source "drivers/debug/Kconfig.rtt"
|
|
@ -16,23 +16,6 @@ config USE_SEGGER_RTT
|
||||||
|
|
||||||
if USE_SEGGER_RTT
|
if USE_SEGGER_RTT
|
||||||
|
|
||||||
config SEGGER_SYSTEMVIEW
|
|
||||||
bool "Segger SystemView support"
|
|
||||||
select CONSOLE
|
|
||||||
select RTT_CONSOLE
|
|
||||||
select THREAD_MONITOR
|
|
||||||
select THREAD_STACK_INFO
|
|
||||||
select TRACING
|
|
||||||
|
|
||||||
config SEGGER_SYSTEMVIEW_BOOT_ENABLE
|
|
||||||
bool "Start logging SystemView events on system start"
|
|
||||||
depends on SEGGER_SYSTEMVIEW
|
|
||||||
|
|
||||||
config SEGGER_SYSVIEW_RTT_BUFFER_SIZE
|
|
||||||
int "Buffer size for SystemView RTT"
|
|
||||||
depends on SEGGER_SYSTEMVIEW
|
|
||||||
default 4096
|
|
||||||
|
|
||||||
config SEGGER_RTT_MAX_NUM_UP_BUFFERS
|
config SEGGER_RTT_MAX_NUM_UP_BUFFERS
|
||||||
int "Maximum number of up-buffers"
|
int "Maximum number of up-buffers"
|
||||||
default 3
|
default 3
|
|
@ -3,7 +3,6 @@
|
||||||
# Copyright (c) 2015 Wind River Systems, Inc.
|
# Copyright (c) 2015 Wind River Systems, Inc.
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
DT_CHOSEN_Z_CONSOLE := zephyr,console
|
|
||||||
|
|
||||||
menu "System Monitoring Options"
|
menu "System Monitoring Options"
|
||||||
|
|
||||||
|
@ -282,5 +281,4 @@ config OPENOCD_SUPPORT
|
||||||
OpenOCD to determine the state of running threads. (This option
|
OpenOCD to determine the state of running threads. (This option
|
||||||
selects CONFIG_THREAD_MONITOR, so all of its caveats are implied.)
|
selects CONFIG_THREAD_MONITOR, so all of its caveats are implied.)
|
||||||
|
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
|
@ -9,6 +9,7 @@ config TRACING
|
||||||
bool "Enabling Tracing"
|
bool "Enabling Tracing"
|
||||||
imply THREAD_NAME
|
imply THREAD_NAME
|
||||||
imply THREAD_STACK_INFO
|
imply THREAD_STACK_INFO
|
||||||
|
imply THREAD_MONITOR
|
||||||
help
|
help
|
||||||
Enable system tracing. This requires a backend such as SEGGER
|
Enable system tracing. This requires a backend such as SEGGER
|
||||||
Systemview to be enabled as well.
|
Systemview to be enabled as well.
|
||||||
|
@ -20,9 +21,20 @@ choice
|
||||||
prompt "Tracing Format"
|
prompt "Tracing Format"
|
||||||
default TRACING_CTF
|
default TRACING_CTF
|
||||||
|
|
||||||
|
config SEGGER_SYSTEMVIEW
|
||||||
|
bool "Segger SystemView support"
|
||||||
|
select CONSOLE
|
||||||
|
select RTT_CONSOLE
|
||||||
|
select USE_SEGGER_RTT
|
||||||
|
|
||||||
|
config TRACING_SYSTEMVIEW
|
||||||
|
bool "Tracing via SEGGER Systemview support"
|
||||||
|
help
|
||||||
|
Enable tracing using SEGGER Systemview.
|
||||||
|
|
||||||
config TRACING_CTF
|
config TRACING_CTF
|
||||||
bool "Tracing via Common Trace Format support"
|
bool "Tracing via Common Trace Format support"
|
||||||
select THREAD_MONITOR
|
|
||||||
help
|
help
|
||||||
Enable tracing to a Common Trace Format stream.
|
Enable tracing to a Common Trace Format stream.
|
||||||
|
|
||||||
|
@ -165,8 +177,6 @@ endif
|
||||||
|
|
||||||
config TRACING_CPU_STATS
|
config TRACING_CPU_STATS
|
||||||
bool "Enable CPU usage tracing"
|
bool "Enable CPU usage tracing"
|
||||||
select THREAD_MONITOR
|
|
||||||
select THREAD_STACK_INFO
|
|
||||||
select TRACING
|
select TRACING
|
||||||
help
|
help
|
||||||
Module provides information about percent of CPU usage based on
|
Module provides information about percent of CPU usage based on
|
||||||
|
@ -189,4 +199,4 @@ config TRACING_CPU_STATS_INTERVAL
|
||||||
Time period of displaying information about CPU usage.
|
Time period of displaying information about CPU usage.
|
||||||
|
|
||||||
|
|
||||||
source "subsys/tracing/Kconfig.segger"
|
source "subsys/tracing/sysview/Kconfig"
|
||||||
|
|
15
subsys/tracing/sysview/Kconfig
Normal file
15
subsys/tracing/sysview/Kconfig
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# Copyright (c) 2016 Nordic Semiconductor ASA
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
if SEGGER_SYSTEMVIEW
|
||||||
|
|
||||||
|
config SEGGER_SYSTEMVIEW_BOOT_ENABLE
|
||||||
|
bool "Start logging SystemView events on system start"
|
||||||
|
depends on SEGGER_SYSTEMVIEW
|
||||||
|
|
||||||
|
config SEGGER_SYSVIEW_RTT_BUFFER_SIZE
|
||||||
|
int "Buffer size for SystemView RTT"
|
||||||
|
depends on SEGGER_SYSTEMVIEW
|
||||||
|
default 4096
|
||||||
|
|
||||||
|
endif
|
Loading…
Add table
Add a link
Reference in a new issue