driver/syslog: support syslog rpmsg character buffer

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
Jiuzhu Dong
2022-06-27 11:30:02 +08:00
committed by Xiang Xiao
parent 5c33db4220
commit 664fcb2698
2 changed files with 79 additions and 13 deletions
+13 -13
View File
@@ -186,6 +186,15 @@ config SYSLOG_COLOR_OUTPUT
comment "SYSLOG channels"
config SYSLOG_DEVPATH
string "System log device"
default "/dev/ttyS1"
---help---
The full path to the system logging device. For the RAMLOG SYSLOG device,
this is normally "/dev/kmsg". For character SYSLOG devices, it should be
some other existing character device (or file) supported by the configuration
(such as "/dev/ttyS1")/
if !ARCH_SYSLOG
config SYSLOG_CHAR
bool "Log to a character device"
@@ -236,19 +245,6 @@ config SYSLOG_DEFAULT
endif
if SYSLOG_CHAR
config SYSLOG_DEVPATH
string "System log device"
default "/dev/ttyS1"
---help---
The full path to the system logging device. For the RAMLOG SYSLOG device,
this is normally "/dev/kmsg". For character SYSLOG devices, it should be
some other existing character device (or file) supported by the configuration
(such as "/dev/ttyS1")/
endif # SYSLOG_CHAR
if RAMLOG_SYSLOG
config RAMLOG_BUFFER_SECTION
@@ -286,6 +282,10 @@ config SYSLOG_RPMSG_OVERWRITE
Allow syslog rpmsg overwrite, may cause syslog to lose some logs.
Set 'n' if you don't want lost logs, but may harm performance.
config SYSLOG_RPMSG_CHARDEV
bool "SYSLOG rpmsg character device"
default !SYSLOG_RPMSG_WORK_DELAY
endif # SYSLOG_RPMSG
config SYSLOG_RPMSG_SERVER