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:
parent
bf52f5cdee
commit
d9be19e40e
1 changed files with 28 additions and 26 deletions
|
@ -19,7 +19,12 @@ if TRACING
|
|||
|
||||
choice
|
||||
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
|
||||
bool "Segger SystemView support"
|
||||
|
@ -34,10 +39,18 @@ config TRACING_SYSTEMVIEW
|
|||
|
||||
config TRACING_CTF
|
||||
bool "Tracing via Common Trace Format support"
|
||||
|
||||
help
|
||||
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
|
||||
bool "Tracing for test usage"
|
||||
help
|
||||
|
@ -55,6 +68,19 @@ config TRACING_CTF_TIMESTAMP
|
|||
Timestamp prefix will be added to the beginning of CTF
|
||||
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
|
||||
prompt "Tracing Method"
|
||||
|
@ -175,28 +201,4 @@ config TRACING_ISR
|
|||
|
||||
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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue