stream/syslog: use internal buffer to decoupling syslog with iob

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an
2023-05-23 20:14:58 +08:00
committed by Xiang Xiao
parent 1bc4b8d7b2
commit 0455167457
3 changed files with 61 additions and 27 deletions
+10 -1
View File
@@ -72,7 +72,6 @@ endif
config SYSLOG_BUFFER
bool "Use buffered output"
default n
select MM_IOB
---help---
Enables an buffering logic that will be used to serialize debug
output from concurrent tasks. This enables allocation of one buffer
@@ -82,6 +81,16 @@ config SYSLOG_BUFFER
then the output from multiple tasks that attempt to generate SYSLOG
output may be interleaved and difficult to read.
if SYSLOG_BUFFER
config SYSLOG_BUFSIZE
int "Syslog buffer size"
default 64
---help---
The size of the syslog buffer in bytes.
endif
config SYSLOG_INTBUFFER
bool "Use interrupt buffer"
default n