Skip to content

Commit 6684dce

Browse files
committed
tracing: Kconfig cleanup and reorg
Cleanup tracing Kconfig and add a format choice. Signed-off-by: Anas Nashif <[email protected]>
1 parent e8be579 commit 6684dce

File tree

1 file changed

+40
-33
lines changed

1 file changed

+40
-33
lines changed

subsys/tracing/Kconfig

Lines changed: 40 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,35 @@ config TRACING
1515

1616
if TRACING
1717

18+
19+
choice
20+
prompt "Tracing Format"
21+
default TRACING_CTF
22+
23+
config TRACING_CTF
24+
bool "Tracing via Common Trace Format support"
25+
select THREAD_MONITOR
26+
help
27+
Enable tracing to a Common Trace Format stream.
28+
29+
config TRACING_TEST
30+
bool "Tracing for test usage"
31+
help
32+
Enable tracing for testing kinds of format purpose. It must
33+
implement the tracing hooks defined in tracing_test.h
34+
35+
endchoice
36+
37+
38+
config TRACING_CTF_TIMESTAMP
39+
bool "Enable CTF internal timestamp"
40+
default y
41+
depends on TRACING_CTF
42+
help
43+
Timestamp prefix will be added to the beginning of CTF
44+
event internally.
45+
46+
1847
choice
1948
prompt "Tracing Method"
2049
default TRACING_ASYNC
@@ -32,7 +61,7 @@ config TRACING_ASYNC
3261
help
3362
Enable asynchronous tracing. This will buffer all the tracing
3463
packets to the ring buffer first, tracing thread will try to
35-
output as much data in ring buffer as possible when tracing
64+
output as much data as possible from the buffer when tracing
3665
thread get scheduled.
3766

3867
endchoice
@@ -59,8 +88,8 @@ config TRACING_BUFFER_SIZE
5988
range 32 65536
6089
help
6190
Size of tracing buffer. If TRACING_ASYNC is enabled, tracing buffer
62-
is used as ring_buffer to buffer data packet and string packet. If
63-
TRACING_SYNC is enabled, it's used to hold the formated data.
91+
is used as a ring buffer to buffer data packet and string packet. If
92+
TRACING_SYNC is enabled, the buffer is used to hold the formated data.
6493

6594
config TRACING_PACKET_MAX_SIZE
6695
int "Max size of one tracing packet"
@@ -77,21 +106,20 @@ config TRACING_BACKEND_UART
77106
depends on UART_CONSOLE
78107
depends on TRACING_ASYNC
79108
help
80-
When enabled backend is using UART to output tracing data.
109+
Use UART to output tracing data.
81110

82111
config TRACING_BACKEND_USB
83112
bool "Enable USB backend"
84113
depends on TRACING_ASYNC
85114
help
86-
When enabled backend is using USB to output tracing data.
115+
Use USB to output tracing data.
87116

88117
config TRACING_BACKEND_POSIX
89-
bool "Enable POSIX backend"
118+
bool "Enable posix architecture (native) backend"
90119
depends on TRACING_SYNC
91120
depends on ARCH_POSIX
92121
help
93-
When enabled backend is using posix API to output tracing
94-
data to file system.
122+
Use posix architecture to output tracing data to file system.
95123

96124
endchoice
97125

@@ -112,25 +140,25 @@ config TRACING_USB_MPS
112140
USB tracing backend max packet size(endpoint MPS).
113141

114142
config TRACING_HANDLE_HOST_CMD
115-
bool "Enable host cmd handle"
143+
bool "Enable host command handle"
116144
select UART_INTERRUPT_DRIVEN if TRACING_BACKEND_UART
117145
help
118146
When enabled tracing will handle cmd from host to dynamically
119147
enable and disable tracing to have host capture tracing stream
120148
data conveniently.
121149

122150
config TRACING_CMD_BUFFER_SIZE
123-
int "Size of tracing cmd buffer"
151+
int "Size of tracing command buffer"
124152
default 32
125153
range 32 128
126154
help
127155
Size of tracing command buffer.
128156

129157
config TRACING_ISR
130-
bool "Enabling Tracing ISR"
158+
bool "Enable tracing ISRs"
131159
default y
132160
help
133-
Enable tracing ISR. This requires the backend to be
161+
Enable tracing ISRs. This requires the backend to be
134162
very low-latency.
135163

136164
endif
@@ -160,26 +188,5 @@ config TRACING_CPU_STATS_INTERVAL
160188
help
161189
Time period of displaying information about CPU usage.
162190

163-
config TRACING_CTF
164-
bool "Tracing via Common Trace Format support"
165-
select THREAD_MONITOR
166-
select TRACING
167-
help
168-
Enable tracing to a Common Trace Format stream.
169-
170-
config TRACING_CTF_TIMESTAMP
171-
bool "Enable CTF internal timestamp"
172-
default y
173-
help
174-
Timestamp prefix will be added to the beginning of CTF
175-
event internally.
176-
177-
config TRACING_TEST
178-
bool "Tracing for test usage"
179-
depends on TRACING
180-
help
181-
Enable tracing for testing kinds of format purpose. It must
182-
implement the tracing hooks defined in tracing_test.h
183-
184191

185192
source "subsys/tracing/Kconfig.segger"

0 commit comments

Comments
 (0)