33
44DT_COMPAT_NORDIC_NRF_TBM := nordic,nrf-tbm
55
6- config NRF_ETR
6+ config DEBUG_NRF_ETR
77 bool "Coresight ETR handler (with Nordic TBM)"
88 depends on $(dt_compat_enabled,$(DT_COMPAT_NORDIC_NRF_TBM))
99 select NRFX_TBM
@@ -14,9 +14,9 @@ config NRF_ETR
1414 data). Busyness is tracked using TBM (Trace Buffer Monitor) peripheral
1515 which is specific to Nordic Semiconductor SoCs.
1616
17- if NRF_ETR
17+ if DEBUG_NRF_ETR
1818
19- config NRF_ETR_DECODE
19+ config DEBUG_NRF_ETR_DECODE
2020 bool "Decode ETR content"
2121 default y if LOG_FRONTEND_STMESP_FSC
2222 select MIPI_STP_DECODER
@@ -29,70 +29,70 @@ config NRF_ETR_DECODE
2929 In this mode, log messages stored by Coresight STM logging frontends are
3030 decoded and printed in the human readable form.
3131
32- config NRF_ETR_DECODE_DROP_PERIOD
32+ config DEBUG_NRF_ETR_DECODE_DROP_PERIOD
3333 int "Period of dropped messages notification"
3434 default 5000
3535 help
3636 Period (in milliseconds) how often it is checked if any dropped messages
3737 have occurred.
3838
39- config NRF_ETR_DEBUG
39+ config DEBUG_NRF_ETR_DEBUG
4040 bool "Debug mode"
4141 depends on !LOG_PRINTK
4242 select MIPI_STP_DECODER
4343 select CS_TRACE_DEFMT
4444 help
4545 In debug mode STPv2 decoded data is printed.
4646
47- config NRF_ETR_STACK_SIZE
47+ config DEBUG_NRF_ETR_STACK_SIZE
4848 int "ETR thread stack size"
49- default 2048 if NRF_ETR_DECODE || NRF_ETR_DEBUG
49+ default 2048 if DEBUG_NRF_ETR_DECODE || DEBUG_NRF_ETR_DEBUG
5050 default 1024
5151
52- config NRF_ETR_BACKOFF
52+ config DEBUG_NRF_ETR_BACKOFF
5353 int "Thread backoff time (ms)"
5454 default 10
5555 help
5656 Determines how often attempt to dump the data is performed.
5757
58- config NRF_ETR_FLUSH_TIMEOUT
58+ config DEBUG_NRF_ETR_FLUSH_TIMEOUT
5959 int "Backoff time during flushing (ms)"
6060 default 100
6161 help
6262 When thread triggers flushing of ETR data, it periodically checks if
6363 there is still a pending ETR data. This option specifies how often
6464 thread is waking up to check. Given in milliseconds.
6565
66- config NRF_ETR_SYNC_PERIOD
66+ config DEBUG_NRF_ETR_SYNC_PERIOD
6767 int "Period of custom synchronization frame"
68- default 0 if NRF_ETR_DECODE
69- default 0 if NRF_ETR_DEBUG
68+ default 0 if DEBUG_NRF_ETR_DECODE
69+ default 0 if DEBUG_NRF_ETR_DEBUG
7070 default 16
7171 help
7272 To help find the synchronization when decoding the ETR content
7373 by a host tool a synchronization pattern (16 bytes of 0xFF) can be
7474 sent on regular intervals. This frame is sent between Coresight formatter
7575 frames. Use 0 to disable.
7676
77- config NRF_ETR_SHELL
77+ config DEBUG_NRF_ETR_SHELL
7878 bool "Use shell"
7979 select UART_ASYNC_API
8080 select UART_ASYNC_RX_HELPER
8181 select SHELL_LOG_BACKEND_CUSTOM
82- depends on NRF_ETR_DECODE
82+ depends on DEBUG_NRF_ETR_DECODE
8383 default y if SHELL
8484 help
8585 Enable shell with Coresight STM logging support.
8686
87- if NRF_ETR_SHELL
87+ if DEBUG_NRF_ETR_SHELL
8888
89- config NRF_ETR_SHELL_PROMPT
89+ config DEBUG_NRF_ETR_SHELL_PROMPT
9090 string "Displayed prompt name"
9191 default "uart:~$ "
9292 help
9393 Displayed prompt name for UART shell with Coresight STM logging.
9494
95- config NRF_ETR_SHELL_ASYNC_RX_BUFFER_SIZE
95+ config DEBUG_NRF_ETR_SHELL_ASYNC_RX_BUFFER_SIZE
9696 int "Size of the RX buffer"
9797 default 16
9898 help
@@ -101,13 +101,13 @@ config NRF_ETR_SHELL_ASYNC_RX_BUFFER_SIZE
101101 slow and may need to be increased if long messages are pasted directly
102102 to the shell prompt.
103103
104- config NRF_ETR_SHELL_ASYNC_RX_BUFFER_COUNT
104+ config DEBUG_NRF_ETR_SHELL_ASYNC_RX_BUFFER_COUNT
105105 int "Number of RX buffers"
106106 default 4
107107 range 2 64
108108 help
109109 Number of RX buffers.
110110
111- endif # NRF_ETR_SHELL
111+ endif # DEBUG_NRF_ETR_SHELL
112112
113- endif # NRF_ETR
113+ endif # DEBUG_NRF_ETR
0 commit comments