@@ -15,6 +15,35 @@ config TRACING
15
15
16
16
if TRACING
17
17
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
+
18
47
choice
19
48
prompt "Tracing Method"
20
49
default TRACING_ASYNC
@@ -32,7 +61,7 @@ config TRACING_ASYNC
32
61
help
33
62
Enable asynchronous tracing. This will buffer all the tracing
34
63
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
36
65
thread get scheduled.
37
66
38
67
endchoice
@@ -59,8 +88,8 @@ config TRACING_BUFFER_SIZE
59
88
range 32 65536
60
89
help
61
90
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.
64
93
65
94
config TRACING_PACKET_MAX_SIZE
66
95
int "Max size of one tracing packet"
@@ -77,21 +106,20 @@ config TRACING_BACKEND_UART
77
106
depends on UART_CONSOLE
78
107
depends on TRACING_ASYNC
79
108
help
80
- When enabled backend is using UART to output tracing data.
109
+ Use UART to output tracing data.
81
110
82
111
config TRACING_BACKEND_USB
83
112
bool "Enable USB backend"
84
113
depends on TRACING_ASYNC
85
114
help
86
- When enabled backend is using USB to output tracing data.
115
+ Use USB to output tracing data.
87
116
88
117
config TRACING_BACKEND_POSIX
89
- bool "Enable POSIX backend"
118
+ bool "Enable posix architecture (native) backend"
90
119
depends on TRACING_SYNC
91
120
depends on ARCH_POSIX
92
121
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.
95
123
96
124
endchoice
97
125
@@ -112,25 +140,25 @@ config TRACING_USB_MPS
112
140
USB tracing backend max packet size(endpoint MPS).
113
141
114
142
config TRACING_HANDLE_HOST_CMD
115
- bool "Enable host cmd handle"
143
+ bool "Enable host command handle"
116
144
select UART_INTERRUPT_DRIVEN if TRACING_BACKEND_UART
117
145
help
118
146
When enabled tracing will handle cmd from host to dynamically
119
147
enable and disable tracing to have host capture tracing stream
120
148
data conveniently.
121
149
122
150
config TRACING_CMD_BUFFER_SIZE
123
- int "Size of tracing cmd buffer"
151
+ int "Size of tracing command buffer"
124
152
default 32
125
153
range 32 128
126
154
help
127
155
Size of tracing command buffer.
128
156
129
157
config TRACING_ISR
130
- bool "Enabling Tracing ISR "
158
+ bool "Enable tracing ISRs "
131
159
default y
132
160
help
133
- Enable tracing ISR . This requires the backend to be
161
+ Enable tracing ISRs . This requires the backend to be
134
162
very low-latency.
135
163
136
164
endif
@@ -160,26 +188,5 @@ config TRACING_CPU_STATS_INTERVAL
160
188
help
161
189
Time period of displaying information about CPU usage.
162
190
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
-
184
191
185
192
source "subsys/tracing/Kconfig.segger"
0 commit comments