File tree Expand file tree Collapse file tree 6 files changed +36
-24
lines changed Expand file tree Collapse file tree 6 files changed +36
-24
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ source "drivers/lora/Kconfig"
13
13
14
14
source "drivers/console/Kconfig"
15
15
16
+ source "drivers/debug/Kconfig"
17
+
16
18
source "drivers/ethernet/Kconfig"
17
19
18
20
source "drivers/net/Kconfig"
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2020 Intel Corporation
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ source "drivers/debug/Kconfig.rtt"
Original file line number Diff line number Diff line change @@ -16,23 +16,6 @@ config USE_SEGGER_RTT
16
16
17
17
if USE_SEGGER_RTT
18
18
19
- config SEGGER_SYSTEMVIEW
20
- bool "Segger SystemView support"
21
- select CONSOLE
22
- select RTT_CONSOLE
23
- select THREAD_MONITOR
24
- select THREAD_STACK_INFO
25
- select TRACING
26
-
27
- config SEGGER_SYSTEMVIEW_BOOT_ENABLE
28
- bool "Start logging SystemView events on system start"
29
- depends on SEGGER_SYSTEMVIEW
30
-
31
- config SEGGER_SYSVIEW_RTT_BUFFER_SIZE
32
- int "Buffer size for SystemView RTT"
33
- depends on SEGGER_SYSTEMVIEW
34
- default 4096
35
-
36
19
config SEGGER_RTT_MAX_NUM_UP_BUFFERS
37
20
int "Maximum number of up-buffers"
38
21
default 3
@@ -69,7 +52,7 @@ config SEGGER_RTT_MODE_BLOCK_IF_FIFO_FULL
69
52
endchoice
70
53
71
54
config SEGGER_RTT_MODE
72
- int
55
+ int
73
56
default 2 if SEGGER_RTT_MODE_BLOCK_IF_FIFO_FULL
74
57
default 1 if SEGGER_RTT_MODE_NO_BLOCK_TRIM
75
58
default 0
Original file line number Diff line number Diff line change 3
3
# Copyright (c) 2015 Wind River Systems, Inc.
4
4
# SPDX-License-Identifier: Apache-2.0
5
5
6
- DT_CHOSEN_Z_CONSOLE := zephyr,console
7
6
8
7
menu "System Monitoring Options"
9
8
@@ -282,5 +281,4 @@ config OPENOCD_SUPPORT
282
281
OpenOCD to determine the state of running threads. (This option
283
282
selects CONFIG_THREAD_MONITOR, so all of its caveats are implied.)
284
283
285
-
286
284
endmenu
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ config TRACING
9
9
bool "Enabling Tracing"
10
10
imply THREAD_NAME
11
11
imply THREAD_STACK_INFO
12
+ imply THREAD_MONITOR
12
13
help
13
14
Enable system tracing. This requires a backend such as SEGGER
14
15
Systemview to be enabled as well.
@@ -20,9 +21,20 @@ choice
20
21
prompt "Tracing Format"
21
22
default TRACING_CTF
22
23
24
+ config SEGGER_SYSTEMVIEW
25
+ bool "Segger SystemView support"
26
+ select CONSOLE
27
+ select RTT_CONSOLE
28
+ select USE_SEGGER_RTT
29
+
30
+ config TRACING_SYSTEMVIEW
31
+ bool "Tracing via SEGGER Systemview support"
32
+ help
33
+ Enable tracing using SEGGER Systemview.
34
+
23
35
config TRACING_CTF
24
36
bool "Tracing via Common Trace Format support"
25
- select THREAD_MONITOR
37
+
26
38
help
27
39
Enable tracing to a Common Trace Format stream.
28
40
@@ -165,8 +177,6 @@ endif
165
177
166
178
config TRACING_CPU_STATS
167
179
bool "Enable CPU usage tracing"
168
- select THREAD_MONITOR
169
- select THREAD_STACK_INFO
170
180
select TRACING
171
181
help
172
182
Module provides information about percent of CPU usage based on
@@ -189,4 +199,4 @@ config TRACING_CPU_STATS_INTERVAL
189
199
Time period of displaying information about CPU usage.
190
200
191
201
192
- source "subsys/tracing/Kconfig.segger "
202
+ source "subsys/tracing/sysview/ Kconfig"
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2016 Nordic Semiconductor ASA
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ if SEGGER_SYSTEMVIEW
5
+
6
+ config SEGGER_SYSTEMVIEW_BOOT_ENABLE
7
+ bool "Start logging SystemView events on system start"
8
+ depends on SEGGER_SYSTEMVIEW
9
+
10
+ config SEGGER_SYSVIEW_RTT_BUFFER_SIZE
11
+ int "Buffer size for SystemView RTT"
12
+ depends on SEGGER_SYSTEMVIEW
13
+ default 4096
14
+
15
+ endif
You can’t perform that action at this time.
0 commit comments