Repository navigation
Expand file tree
/
Copy pathKconfig
More file actions
127 lines (113 loc) · 4.83 KB
/
Copy pathKconfig
File metadata and controls
127 lines (113 loc) · 4.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# SPDX-License-Identifier: BSD-3-Clause
config SOF_TELEMETRY
bool "enable telemetry"
default n
help
Enables telemetry. Enables performance measurements and debug utilities
that use memory window 2 (debug window) as interface. Measurements include
systick_info measurement which measures scheduler task performance and may
slightly affect overall performance.
config SOF_TELEMETRY_PERFORMANCE_MEASUREMENTS
bool "enable performance measurements"
default n
# component measurements are updated from the LL user thread
depends on !SOF_USERSPACE_LL
help
Enables performance measurements. Requires ADSP_MW interface. Each created component
can have its performance checked by measuring execution time of copy function.
Performance records are stored in the limited number of slots in Memory Window 3,
so only a certain number (PERFORMANCE_DATA_ENTRIES_COUNT) of components can be measured.
config SOF_TELEMETRY_IO_PERFORMANCE_MEASUREMENTS
bool "enable I/O performance measurements"
# I/O counters are updated from the LL and IPC user threads
depends on !SOF_USERSPACE_LL
help
Enables IO performance measurements. Each data interface will have its data throughput
measured (IPC/IDC and GPIO will measure number of messages/state changes).
Disabled by default and enabled with IPC. Measurements can be extracted also by IPC.
Interfaces measured: IPC, IDC, DMIC, I2S, SNDW, HDA, USB, GPIO, I2c, I3C, UART, SPI, CSI_2, DTF.
if SOF_TELEMETRY
config SOF_TELEMETRY_EXTENDED_WINDOW
bool "Extended telemetry directory in Memory Window 2 Slot 1"
default y
help
Places a 64-byte-aligned self-describing TEL2 directory header and
cache-line-concentrated hot counter zone after system_tick_info in
the telemetry debug window slot to expose internal SOF resources.
config SOF_TELEMETRY_HOT_CACHE_STAGING
bool "Stage LL hot-path telemetry updates in L1 D-cache lines"
depends on SOF_TELEMETRY_EXTENDED_WINDOW
default y
help
Accumulates LL hot-path counter increments in 64-byte-aligned L1 D$
lines and flushes dirty cache lines to the uncached memory window
once at the end of the LL tick.
config SOF_TELEMETRY_MEMORY
bool "Memory, k_heap, virtual heap, and SRAM page telemetry"
depends on SOF_TELEMETRY_EXTENDED_WINDOW
select SYS_HEAP_RUNTIME_STATS
select SYS_MEM_BLOCKS_RUNTIME_STATS if SYS_MEM_BLOCKS
default y
help
Exports live usage, free bytes, high-water marks, and allocation
failure counters for sof_heap, shared_buffer_heap, ll_user_heap,
l3_heap, virtual_buffers_heap (vmh), and fast_get in MW2 Slot 1.
config SOF_TELEMETRY_VREGION
bool "Virtual page (vpage) and virtual region (vregion) telemetry"
depends on SOF_TELEMETRY_EXTENDED_WINDOW && SOF_VREGIONS
default y
help
Tracks vpage_ctx page usage/fragmentation and per-vregion lifetime
linear allocator and interim k_heap usage in MW2 Slot 1.
config SOF_TELEMETRY_PIPELINES
bool "Pipeline and LL/DP scheduler telemetry"
depends on SOF_TELEMETRY_EXTENDED_WINDOW
# updated from the LL and IPC user threads, and walks user-writable
# pipeline lists
depends on !SOF_USERSPACE_LL
default y
help
Exports active pipeline states, periods, priorities, XRUN counts,
and per-core LL/DP task counts and deadline misses in MW2 Slot 1.
config SOF_TELEMETRY_DAIS
bool "DAI and Host DMA gateway telemetry"
depends on SOF_TELEMETRY_EXTENDED_WINDOW
# updated from the LL and IPC user threads
depends on !SOF_USERSPACE_LL
default y
help
Exports active DAI and Host DMA gateway state, DMA channel, buffer
fill levels, XRUN/skip counts, and total bytes processed in MW2 Slot 1.
config SOF_TELEMETRY_THREADS
bool "Compact Zephyr thread CPU and stack telemetry in MW2 Slot 1"
depends on SOF_TELEMETRY_EXTENDED_WINDOW
select THREAD_MONITOR
select THREAD_NAME
select THREAD_STACK_INFO
select INIT_STACKS
select THREAD_RUNTIME_STATS
default y
help
Periodically snapshots per-thread CPU load (%) and stack high-water
mark (%) into MW2 Slot 1 without requiring an extra 4 KB debug_stream slot.
The stack high-water mark of user-mode threads is sampled only with
XTENSA_MMU_FLUSH_AUTOREFILL_DTLBS_ON_SWAP enabled, otherwise it is
reported as 0.
config SOF_TELEMETRY_MODULE_RESOURCES
bool "Per-module heap usage, CPC violation, and I/O telemetry in MW3"
depends on SOF_TELEMETRY_PERFORMANCE_MEASUREMENTS
default y
help
Partitions Memory Window 3 to include per-component module_resources
(heap_usage, heap_high_water_mark), peak CPC vs budget, and relocating
io_perf_data_items from .bss into MW3.
config SOF_TELEMETRY_MAX_COMP_ENTRIES
int "Maximum component entries in Memory Window 3"
depends on SOF_TELEMETRY_PERFORMANCE_MEASUREMENTS
range 1 88 if SOF_TELEMETRY_MODULE_RESOURCES
range 1 170
default 88 if SOF_TELEMETRY_MODULE_RESOURCES
default 170
help
Maximum number of component performance entries in Memory Window 3.
endif # SOF_TELEMETRY