2020-02-06 22:13:51 +08:00
|
|
|
# Debug configuration options
|
|
|
|
|
|
|
|
# Copyright (c) 2015 Wind River Systems, Inc.
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
DT_CHOSEN_Z_CONSOLE := zephyr,console
|
|
|
|
|
|
|
|
config TRACING
|
2020-08-23 01:07:14 +08:00
|
|
|
bool "Tracing Support"
|
2020-02-06 23:35:03 +08:00
|
|
|
imply THREAD_NAME
|
|
|
|
imply THREAD_STACK_INFO
|
2020-02-07 01:34:04 +08:00
|
|
|
imply THREAD_MONITOR
|
2020-08-28 07:12:01 +08:00
|
|
|
select INSTRUMENT_THREAD_SWITCHING
|
2020-02-06 22:13:51 +08:00
|
|
|
help
|
|
|
|
Enable system tracing. This requires a backend such as SEGGER
|
|
|
|
Systemview to be enabled as well.
|
|
|
|
|
|
|
|
if TRACING
|
|
|
|
|
2020-02-07 03:05:40 +08:00
|
|
|
config TRACING_CORE
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Automatically selected by formats that require the core
|
|
|
|
tracing infrastructure.
|
2020-02-06 23:52:30 +08:00
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Tracing Format"
|
2020-02-07 03:00:24 +08:00
|
|
|
default TRACING_NONE
|
|
|
|
|
|
|
|
config TRACING_NONE
|
|
|
|
bool "No tracing format selected"
|
|
|
|
help
|
|
|
|
None of the available tracing formats is selected.
|
2020-02-06 23:52:30 +08:00
|
|
|
|
2021-05-07 00:31:13 +08:00
|
|
|
config PERCEPIO_TRACERECORDER
|
|
|
|
bool "Percepio Tracealyzer support"
|
|
|
|
select THREAD_NAME
|
|
|
|
select INIT_STACKS
|
|
|
|
select THREAD_MONITOR
|
|
|
|
depends on ZEPHYR_TRACERECORDER_MODULE
|
|
|
|
|
2020-02-07 01:34:04 +08:00
|
|
|
config SEGGER_SYSTEMVIEW
|
|
|
|
bool "Segger SystemView support"
|
|
|
|
select CONSOLE
|
|
|
|
select RTT_CONSOLE
|
|
|
|
select USE_SEGGER_RTT
|
2020-10-17 17:52:56 +08:00
|
|
|
select THREAD_MONITOR
|
2021-05-20 22:27:13 +08:00
|
|
|
select SEGGER_RTT_CUSTOM_LOCKING
|
2020-02-07 01:34:04 +08:00
|
|
|
|
2020-02-06 23:52:30 +08:00
|
|
|
config TRACING_CTF
|
|
|
|
bool "Tracing via Common Trace Format support"
|
2020-02-07 03:05:40 +08:00
|
|
|
select TRACING_CORE
|
2020-02-06 23:52:30 +08:00
|
|
|
help
|
|
|
|
Enable tracing to a Common Trace Format stream.
|
|
|
|
|
|
|
|
config TRACING_TEST
|
|
|
|
bool "Tracing for test usage"
|
2020-02-07 03:05:40 +08:00
|
|
|
select TRACING_CORE
|
2020-02-06 23:52:30 +08:00
|
|
|
help
|
|
|
|
Enable tracing for testing kinds of format purpose. It must
|
|
|
|
implement the tracing hooks defined in tracing_test.h
|
|
|
|
|
2020-09-01 22:12:09 +08:00
|
|
|
config TRACING_USER
|
|
|
|
bool "Tracing using user-defined functions"
|
|
|
|
help
|
|
|
|
Use user-defined functions for tracing task switching and irqs
|
|
|
|
|
2020-02-06 23:52:30 +08:00
|
|
|
endchoice
|
|
|
|
|
|
|
|
|
|
|
|
config TRACING_CTF_TIMESTAMP
|
2022-03-09 19:05:12 +08:00
|
|
|
bool "CTF internal timestamp"
|
2020-02-06 23:52:30 +08:00
|
|
|
default y
|
|
|
|
depends on TRACING_CTF
|
|
|
|
help
|
|
|
|
Timestamp prefix will be added to the beginning of CTF
|
|
|
|
event internally.
|
|
|
|
|
2020-02-06 22:13:51 +08:00
|
|
|
choice
|
|
|
|
prompt "Tracing Method"
|
|
|
|
default TRACING_ASYNC
|
|
|
|
|
|
|
|
config TRACING_SYNC
|
|
|
|
bool "Synchronous Tracing"
|
|
|
|
select RING_BUFFER
|
|
|
|
help
|
|
|
|
Enable synchronous tracing. This requires the backend to be
|
|
|
|
very low-latency.
|
|
|
|
|
|
|
|
config TRACING_ASYNC
|
|
|
|
bool "Asynchronous Tracing"
|
|
|
|
select RING_BUFFER
|
|
|
|
help
|
|
|
|
Enable asynchronous tracing. This will buffer all the tracing
|
|
|
|
packets to the ring buffer first, tracing thread will try to
|
2020-02-06 23:52:30 +08:00
|
|
|
output as much data as possible from the buffer when tracing
|
2020-02-06 22:13:51 +08:00
|
|
|
thread get scheduled.
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config TRACING_THREAD_STACK_SIZE
|
|
|
|
int "Stack size of tracing thread"
|
|
|
|
default 1024
|
|
|
|
depends on TRACING_ASYNC
|
|
|
|
help
|
|
|
|
Stack size of tracing thread.
|
|
|
|
|
|
|
|
config TRACING_THREAD_WAIT_THRESHOLD
|
|
|
|
int "Tracing thread waiting threshold"
|
|
|
|
default 100
|
|
|
|
depends on TRACING_ASYNC
|
|
|
|
help
|
|
|
|
Tracing thread waiting period given in milliseconds after
|
|
|
|
every first packet put to tracing buffer.
|
|
|
|
|
|
|
|
config TRACING_BUFFER_SIZE
|
|
|
|
int "Size of tracing buffer"
|
|
|
|
default 2048 if TRACING_ASYNC
|
|
|
|
default TRACING_PACKET_MAX_SIZE if TRACING_SYNC
|
|
|
|
range 32 65536
|
|
|
|
help
|
|
|
|
Size of tracing buffer. If TRACING_ASYNC is enabled, tracing buffer
|
2020-02-06 23:52:30 +08:00
|
|
|
is used as a ring buffer to buffer data packet and string packet. If
|
2022-03-17 05:07:43 +08:00
|
|
|
TRACING_SYNC is enabled, the buffer is used to hold the formatted data.
|
2020-02-06 22:13:51 +08:00
|
|
|
|
|
|
|
config TRACING_PACKET_MAX_SIZE
|
|
|
|
int "Max size of one tracing packet"
|
|
|
|
default 32
|
|
|
|
help
|
|
|
|
Max size of one tracing packet.
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Tracing Backend"
|
|
|
|
default TRACING_BACKEND_UART
|
|
|
|
|
|
|
|
config TRACING_BACKEND_UART
|
2022-03-09 19:05:12 +08:00
|
|
|
bool "UART backend"
|
2020-02-06 22:13:51 +08:00
|
|
|
depends on UART_CONSOLE
|
2020-08-07 06:41:04 +08:00
|
|
|
|
2020-02-06 22:13:51 +08:00
|
|
|
help
|
2020-02-06 23:52:30 +08:00
|
|
|
Use UART to output tracing data.
|
2020-02-06 22:13:51 +08:00
|
|
|
|
|
|
|
config TRACING_BACKEND_USB
|
2022-03-09 19:05:12 +08:00
|
|
|
bool "USB backend"
|
2021-06-30 00:48:30 +08:00
|
|
|
depends on USB_DEVICE_STACK
|
2020-02-06 22:13:51 +08:00
|
|
|
depends on TRACING_ASYNC
|
|
|
|
help
|
2020-02-06 23:52:30 +08:00
|
|
|
Use USB to output tracing data.
|
2020-02-06 22:13:51 +08:00
|
|
|
|
|
|
|
config TRACING_BACKEND_POSIX
|
2022-03-09 19:05:12 +08:00
|
|
|
bool "Posix architecture (native) backend"
|
2020-02-06 22:13:51 +08:00
|
|
|
depends on TRACING_SYNC
|
|
|
|
depends on ARCH_POSIX
|
|
|
|
help
|
2020-02-06 23:52:30 +08:00
|
|
|
Use posix architecture to output tracing data to file system.
|
2020-02-06 22:13:51 +08:00
|
|
|
|
2021-02-26 16:22:16 +08:00
|
|
|
config TRACING_BACKEND_RAM
|
2022-03-09 19:05:12 +08:00
|
|
|
bool "RAM backend"
|
2021-02-26 16:22:16 +08:00
|
|
|
help
|
|
|
|
Use a ram buffer to output tracing data which can
|
|
|
|
be dumped to a file at runtime with a debugger.
|
|
|
|
See gdb dump binary memory documentation for example.
|
2022-04-12 21:56:27 +08:00
|
|
|
endchoice
|
2021-02-26 16:22:16 +08:00
|
|
|
|
|
|
|
config RAM_TRACING_BUFFER_SIZE
|
|
|
|
int "Ram Tracing buffer size"
|
|
|
|
default 4096
|
|
|
|
depends on TRACING_BACKEND_RAM
|
|
|
|
help
|
|
|
|
Size of the RAM trace buffer. Trace will be discarded if the
|
|
|
|
length is exceeded.
|
|
|
|
|
2020-02-06 22:13:51 +08:00
|
|
|
config TRACING_USB_MPS
|
|
|
|
int "USB backend max packet size"
|
|
|
|
default 64
|
|
|
|
depends on TRACING_BACKEND_USB
|
|
|
|
help
|
|
|
|
USB tracing backend max packet size(endpoint MPS).
|
|
|
|
|
|
|
|
config TRACING_HANDLE_HOST_CMD
|
2022-03-09 19:05:12 +08:00
|
|
|
bool "Host command handle"
|
2020-02-06 22:13:51 +08:00
|
|
|
select UART_INTERRUPT_DRIVEN if TRACING_BACKEND_UART
|
|
|
|
help
|
|
|
|
When enabled tracing will handle cmd from host to dynamically
|
|
|
|
enable and disable tracing to have host capture tracing stream
|
|
|
|
data conveniently.
|
|
|
|
|
|
|
|
config TRACING_CMD_BUFFER_SIZE
|
2020-02-06 23:52:30 +08:00
|
|
|
int "Size of tracing command buffer"
|
2020-02-06 22:13:51 +08:00
|
|
|
default 32
|
|
|
|
range 32 128
|
|
|
|
help
|
|
|
|
Size of tracing command buffer.
|
|
|
|
|
2021-11-23 06:46:19 +08:00
|
|
|
config TRACING_OBJECT_TRACKING
|
2022-03-09 19:05:12 +08:00
|
|
|
bool "Object tracking"
|
2021-11-23 06:46:19 +08:00
|
|
|
help
|
|
|
|
Keep lists to track kernel objects.
|
|
|
|
|
2021-03-26 15:31:23 +08:00
|
|
|
menu "Tracing Configuration"
|
2021-05-20 20:14:47 +08:00
|
|
|
|
2021-10-14 01:16:39 +08:00
|
|
|
config TRACING_SYSCALL
|
2022-03-09 19:05:12 +08:00
|
|
|
bool "Tracing Syscalls"
|
2021-03-26 15:31:23 +08:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable tracing Syscalls.
|
|
|
|
|
2021-05-20 20:14:47 +08:00
|
|
|
config TRACING_THREAD
|
2022-03-09 19:05:12 +08:00
|
|
|
bool "Tracing Threads"
|
2021-03-26 15:31:23 +08:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable tracing Threads.
|
|
|
|
|
2021-05-20 20:14:47 +08:00
|
|
|
config TRACING_WORK
|
2022-03-09 19:05:12 +08:00
|
|
|
bool "Tracing Work"
|
2021-03-26 15:31:23 +08:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable tracing Work and Work queue events
|
|
|
|
|
2021-05-20 20:14:47 +08:00
|
|
|
config TRACING_ISR
|
2022-03-09 19:05:12 +08:00
|
|
|
bool "Tracing ISRs"
|
2020-02-06 23:11:29 +08:00
|
|
|
default y
|
2020-02-06 22:13:51 +08:00
|
|
|
help
|
2020-02-06 23:52:30 +08:00
|
|
|
Enable tracing ISRs. This requires the backend to be
|
2020-02-06 22:13:51 +08:00
|
|
|
very low-latency.
|
|
|
|
|
2021-05-20 20:14:47 +08:00
|
|
|
config TRACING_SEMAPHORE
|
2022-03-09 19:05:12 +08:00
|
|
|
bool "Tracing Semaphores"
|
2021-03-26 15:31:23 +08:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable tracing Semaphores.
|
|
|
|
|
2021-05-20 20:14:47 +08:00
|
|
|
config TRACING_MUTEX
|
2022-03-09 19:05:12 +08:00
|
|
|
bool "Tracing Mutexes"
|
2021-03-26 15:31:23 +08:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable tracing Mutexes.
|
|
|
|
|
2021-05-20 20:14:47 +08:00
|
|
|
config TRACING_CONDVAR
|
2022-03-09 19:05:12 +08:00
|
|
|
bool "Tracing Condition Variables"
|
2021-03-26 15:31:23 +08:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable tracing Condition Variables
|
|
|
|
|
2021-05-20 20:14:47 +08:00
|
|
|
config TRACING_QUEUE
|
2022-03-09 19:05:12 +08:00
|
|
|
bool "Tracing Queues"
|
2021-03-26 15:31:23 +08:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable tracing Queues.
|
|
|
|
|
2021-05-20 20:14:47 +08:00
|
|
|
config TRACING_FIFO
|
2022-03-09 19:05:12 +08:00
|
|
|
bool "Tracing FIFO queues"
|
2021-03-26 15:31:23 +08:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable tracing FIFO queues.
|
|
|
|
|
2021-05-20 20:14:47 +08:00
|
|
|
config TRACING_LIFO
|
2022-03-09 19:05:12 +08:00
|
|
|
bool "Tracing LIFO queues"
|
2021-03-26 15:31:23 +08:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable tracing LIFO queues.
|
|
|
|
|
2021-05-20 20:14:47 +08:00
|
|
|
config TRACING_STACK
|
2022-03-09 19:05:12 +08:00
|
|
|
bool "Tracing Memory Stacks"
|
2021-03-26 15:31:23 +08:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable tracing Memory Stacks.
|
|
|
|
|
2021-05-20 20:14:47 +08:00
|
|
|
config TRACING_MESSAGE_QUEUE
|
2022-03-09 19:05:12 +08:00
|
|
|
bool "Tracing Message Queues"
|
2021-03-26 15:31:23 +08:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable tracing Message Queues.
|
|
|
|
|
2021-05-20 20:14:47 +08:00
|
|
|
config TRACING_MAILBOX
|
2022-03-09 19:05:12 +08:00
|
|
|
bool "Tracing Mailboxes"
|
2021-03-26 15:31:23 +08:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable tracing Mailboxes.
|
|
|
|
|
2021-05-20 20:14:47 +08:00
|
|
|
config TRACING_PIPE
|
2022-03-09 19:05:12 +08:00
|
|
|
bool "Tracing Pipes"
|
2021-03-26 15:31:23 +08:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable tracing Pipes.
|
|
|
|
|
2021-05-20 20:14:47 +08:00
|
|
|
config TRACING_HEAP
|
2022-03-09 19:05:12 +08:00
|
|
|
bool "Tracing Memory Heaps"
|
2021-03-26 15:31:23 +08:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable tracing Memory Heaps.
|
|
|
|
|
2021-05-20 20:14:47 +08:00
|
|
|
config TRACING_MEMORY_SLAB
|
2022-03-09 19:05:12 +08:00
|
|
|
bool "Tracing Memory Slabs"
|
2021-03-26 15:31:23 +08:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable tracing Memory Slabs.
|
|
|
|
|
2021-05-20 20:14:47 +08:00
|
|
|
config TRACING_TIMER
|
2022-03-09 19:05:12 +08:00
|
|
|
bool "Tracing Timers"
|
2021-03-26 15:31:23 +08:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable tracing Timers.
|
2021-05-20 20:14:47 +08:00
|
|
|
|
2021-09-21 02:14:32 +08:00
|
|
|
config TRACING_EVENT
|
2022-03-09 19:05:12 +08:00
|
|
|
bool "Tracing Events"
|
2021-09-21 02:14:32 +08:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable tracing Events.
|
|
|
|
|
2021-05-20 20:14:47 +08:00
|
|
|
endmenu # Tracing Configuration
|
2021-03-26 15:31:23 +08:00
|
|
|
|
2020-02-06 22:13:51 +08:00
|
|
|
endif
|
|
|
|
|
2020-02-07 01:34:04 +08:00
|
|
|
source "subsys/tracing/sysview/Kconfig"
|