tracing: move cpu stats to tracing formatting choice in Kconfig

This is another tracing format we support and belongs in the same
choice.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2020-02-06 14:00:24 -05:00
commit d9be19e40e

View file

@ -19,7 +19,12 @@ if TRACING
choice choice
prompt "Tracing Format" prompt "Tracing Format"
default TRACING_CTF default TRACING_NONE
config TRACING_NONE
bool "No tracing format selected"
help
None of the available tracing formats is selected.
config SEGGER_SYSTEMVIEW config SEGGER_SYSTEMVIEW
bool "Segger SystemView support" bool "Segger SystemView support"
@ -34,10 +39,18 @@ config TRACING_SYSTEMVIEW
config TRACING_CTF config TRACING_CTF
bool "Tracing via Common Trace Format support" bool "Tracing via Common Trace Format support"
help help
Enable tracing to a Common Trace Format stream. Enable tracing to a Common Trace Format stream.
config TRACING_CPU_STATS
bool "Enable CPU usage tracing"
help
Module provides information about percent of CPU usage based on
tracing hooks for threads switching in and out, interrupts enters
and exits (only distinguishes between idle thread, non idle thread
and scheduler). Use provided API or enable automatic logging to
get values.
config TRACING_TEST config TRACING_TEST
bool "Tracing for test usage" bool "Tracing for test usage"
help help
@ -55,6 +68,19 @@ config TRACING_CTF_TIMESTAMP
Timestamp prefix will be added to the beginning of CTF Timestamp prefix will be added to the beginning of CTF
event internally. event internally.
config TRACING_CPU_STATS_LOG
bool "Enable current CPU usage logging"
depends on TRACING_CPU_STATS
help
Periodically displays information about CPU usage.
config TRACING_CPU_STATS_INTERVAL
int "Logging interval for CPU measurements [ms]"
default 2000
depends on TRACING_CPU_STATS_LOG
help
Time period of displaying information about CPU usage.
choice choice
prompt "Tracing Method" prompt "Tracing Method"
@ -175,28 +201,4 @@ config TRACING_ISR
endif endif
config TRACING_CPU_STATS
bool "Enable CPU usage tracing"
select TRACING
help
Module provides information about percent of CPU usage based on
tracing hooks for threads switching in and out, interrupts enters
and exits (only distinguishes between idle thread, non idle thread
and scheduler). Use provided API or enable automatic logging to
get values.
config TRACING_CPU_STATS_LOG
bool "Enable current CPU usage logging"
depends on TRACING_CPU_STATS
help
Periodically displays information about CPU usage.
config TRACING_CPU_STATS_INTERVAL
int "Logging interval for CPU measurements [ms]"
default 2000
depends on TRACING_CPU_STATS_LOG
help
Time period of displaying information about CPU usage.
source "subsys/tracing/sysview/Kconfig" source "subsys/tracing/sysview/Kconfig"