@@ -19,7 +19,12 @@ if TRACING
1919
2020choice
2121 prompt "Tracing Format"
22- default TRACING_CTF
22+ default TRACING_NONE
23+
24+ config TRACING_NONE
25+ bool "No tracing format selected"
26+ help
27+ None of the available tracing formats is selected.
2328
2429config SEGGER_SYSTEMVIEW
2530 bool "Segger SystemView support"
@@ -34,10 +39,18 @@ config TRACING_SYSTEMVIEW
3439
3540config TRACING_CTF
3641 bool "Tracing via Common Trace Format support"
37-
3842 help
3943 Enable tracing to a Common Trace Format stream.
4044
45+ config TRACING_CPU_STATS
46+ bool "Enable CPU usage tracing"
47+ help
48+ Module provides information about percent of CPU usage based on
49+ tracing hooks for threads switching in and out, interrupts enters
50+ and exits (only distinguishes between idle thread, non idle thread
51+ and scheduler). Use provided API or enable automatic logging to
52+ get values.
53+
4154config TRACING_TEST
4255 bool "Tracing for test usage"
4356 help
@@ -55,6 +68,19 @@ config TRACING_CTF_TIMESTAMP
5568 Timestamp prefix will be added to the beginning of CTF
5669 event internally.
5770
71+ config TRACING_CPU_STATS_LOG
72+ bool "Enable current CPU usage logging"
73+ depends on TRACING_CPU_STATS
74+ help
75+ Periodically displays information about CPU usage.
76+
77+ config TRACING_CPU_STATS_INTERVAL
78+ int "Logging interval for CPU measurements [ms]"
79+ default 2000
80+ depends on TRACING_CPU_STATS_LOG
81+ help
82+ Time period of displaying information about CPU usage.
83+
5884
5985choice
6086 prompt "Tracing Method"
@@ -175,28 +201,4 @@ config TRACING_ISR
175201
176202endif
177203
178- config TRACING_CPU_STATS
179- bool "Enable CPU usage tracing"
180- select TRACING
181- help
182- Module provides information about percent of CPU usage based on
183- tracing hooks for threads switching in and out, interrupts enters
184- and exits (only distinguishes between idle thread, non idle thread
185- and scheduler). Use provided API or enable automatic logging to
186- get values.
187-
188- config TRACING_CPU_STATS_LOG
189- bool "Enable current CPU usage logging"
190- depends on TRACING_CPU_STATS
191- help
192- Periodically displays information about CPU usage.
193-
194- config TRACING_CPU_STATS_INTERVAL
195- int "Logging interval for CPU measurements [ms]"
196- default 2000
197- depends on TRACING_CPU_STATS_LOG
198- help
199- Time period of displaying information about CPU usage.
200-
201-
202204source "subsys/tracing/sysview/Kconfig"
0 commit comments