Repository navigation
Expand file tree
/
Copy pathKconfig
More file actions
97 lines (83 loc) · 2.94 KB
/
Copy pathKconfig
File metadata and controls
97 lines (83 loc) · 2.94 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
# SPDX-License-Identifier: BSD-3-Clause
# Trace configs
menu "Trace"
config TRACE
bool "Trace"
default y
help
Enabling traces. All traces (normal and error) are sent by dma.
config TRACEV
bool "Trace verbose"
depends on TRACE
default n
help
Enabling verbose traces. tr_dbg() statements depend on this at
compile-time and on run-time filtering below too.
config TRACEE
bool "Trace error"
depends on TRACE
default y
help
Sending error traces by mailbox additionally.
config TRACEM
bool "Trace mailbox"
depends on TRACE
default n
help
Sending all traces by mailbox additionally.
config TRACE_FILTERING
bool "Trace filtering"
depends on TRACE
default y
help
Filtering of trace messages based on their verbosity level and/or frequency.
config TRACE_FILTERING_VERBOSITY
bool "Filter by verbosity"
depends on TRACE_FILTERING
default y
help
Filtering by log verbosity level, where maximum verbosity allowed is specified for each
context and may be adjusted in runtime. Most basic feature found in every logger.
config TRACE_FILTERING_ADAPTIVE
bool "Adaptive rate limiting"
depends on TRACE_FILTERING
default y
help
Adaptive filtering of repeating trace messages, tracking up to
CONFIG_TRACE_RECENT_ENTRIES_COUNT and suppressing messages repeated in less than
CONFIG_TRACE_RECENT_TIME_THRESHOLD microseconds. This filtering and suppression are
turned off as soon as the user makes any runtime configuration change using the
sof-logger -F flag. Warning: log message parameters (formatted with a conversion
specifier %_) are ignored when comparing repeated messages and they are dropped by
this filtering.
config TRACE_RECENT_ENTRIES_COUNT
int "How many recent log messages are stored"
depends on TRACE_FILTERING_ADAPTIVE
default 5
help
The most recent log messages are stored to match the currently processed
message. The size of that window affects effectiveness and performance. More recent
entries allow to better filter repetitive messages out, but also slightly decrease
performance due to the increased number of comparisons necessary.
config TRACE_RECENT_TIME_THRESHOLD
int "Period of time considered recent (microseconds)"
depends on TRACE_FILTERING_ADAPTIVE
default 1500
range 1 TRACE_RECENT_MAX_TIME
help
Period of time during which entries are tracked and will be suppressed if reported again.
Entries expire after this time.
config TRACE_RECENT_MAX_TIME
int "Maximum period of time that message can be suppressed (microseconds)"
depends on TRACE_FILTERING_ADAPTIVE
default 5000000
help
Maximum amount of time message can be suppressed for, due to repeated suppression.
config TRACE_BURST_COUNT
int "Allowed amount of rapidly repeated messages, that will not be suppressed by the filter"
depends on TRACE_FILTERING_ADAPTIVE
default 4
help
Amount of messages that will pass through the filter even if sent in rapid succession.
Allowed message burst size before filter suppresses the message.
endmenu