2012-08-02 19:09:25 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 16:08:57 +02:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2012-08-02 19:09:25 +02:00
|
|
|
#
|
|
|
|
|
2016-06-21 17:59:09 +02:00
|
|
|
menu "System Logging"
|
2012-08-02 19:09:25 +02:00
|
|
|
|
2016-06-19 17:52:34 +02:00
|
|
|
# Selected if the architecture has its own, built-in SYSLOGging enabled
|
2016-06-18 22:54:25 +02:00
|
|
|
|
2016-06-19 19:16:12 +02:00
|
|
|
config ARCH_SYSLOG
|
2016-06-19 17:21:52 +02:00
|
|
|
bool
|
|
|
|
default n
|
2016-06-18 22:54:25 +02:00
|
|
|
|
2017-05-10 22:42:43 +02:00
|
|
|
# Selected if the SYSLOG device supports multi-byte write operations
|
|
|
|
|
|
|
|
config SYSLOG_WRITE
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
2012-08-02 19:09:25 +02:00
|
|
|
config RAMLOG
|
|
|
|
bool "RAM log device support"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
This is a driver that was intended to support debugging output,
|
|
|
|
aka syslogging, when the normal serial output is not available.
|
|
|
|
For example, if you are using a telnet or USB serial console,
|
|
|
|
the debug output will get lost. However, the RAMLOG device should
|
|
|
|
be usable even if system logging is disabled.
|
|
|
|
|
|
|
|
This driver is similar to a pipe in that it saves the debugging
|
|
|
|
output in a FIFO in RAM. It differs from a pipe in numerous
|
|
|
|
details as needed to support logging.
|
|
|
|
|
|
|
|
if RAMLOG
|
|
|
|
config RAMLOG_CONSOLE
|
|
|
|
bool "Use RAMLOG for /dev/console"
|
|
|
|
default n
|
|
|
|
depends on DEV_CONSOLE
|
|
|
|
---help---
|
|
|
|
Use the RAM logging device as a system console. If this feature is enabled (along
|
|
|
|
with DEV_CONSOLE), then all console output will be re-directed to a circular
|
|
|
|
buffer in RAM. This is useful, for example, if the only console is a Telnet
|
|
|
|
console. Then in that case, console output from non-Telnet threads will go to
|
|
|
|
the circular buffer and can be viewed using the NSH 'dmesg' command.
|
|
|
|
|
2014-07-01 20:00:40 +02:00
|
|
|
config RAMLOG_BUFSIZE
|
2012-08-02 19:09:25 +02:00
|
|
|
int "RAMLOG buffer size"
|
|
|
|
default 1024
|
|
|
|
depends on RAMLOG_SYSLOG || RAMLOG_CONSOLE
|
|
|
|
---help---
|
|
|
|
Size of the console RAM log. Default: 1024
|
|
|
|
|
|
|
|
config RAMLOG_CRLF
|
|
|
|
bool "RAMLOG CR/LF"
|
|
|
|
default n
|
|
|
|
---help---
|
2016-06-22 18:08:20 +02:00
|
|
|
Pre-pend a carriage return before every linefeed that goes into the
|
|
|
|
RAM log.
|
2012-08-02 19:09:25 +02:00
|
|
|
|
|
|
|
config RAMLOG_NONBLOCKING
|
|
|
|
bool "RAMLOG non-block reads"
|
|
|
|
default y
|
|
|
|
---help---
|
|
|
|
Reading from the RAMLOG will never block if the RAMLOG is empty. If the RAMLOG
|
|
|
|
is empty, then zero is returned (usually interpreted as end-of-file).
|
|
|
|
|
|
|
|
config RAMLOG_NPOLLWAITERS
|
|
|
|
int "RAMLOG number of poll waiters"
|
|
|
|
default 4
|
|
|
|
---help---
|
|
|
|
The maximum number of threads that may be waiting on the poll method.
|
|
|
|
|
|
|
|
endif
|
2015-02-08 13:53:24 +01:00
|
|
|
|
2016-06-19 17:21:52 +02:00
|
|
|
config DRIVER_NOTE
|
|
|
|
bool "Scheduler instrumentation driver"
|
|
|
|
default n
|
2016-11-29 01:36:26 +01:00
|
|
|
depends on SCHED_INSTRUMENTATION_BUFFER && SCHED_NOTE_GET
|
2016-06-19 17:21:52 +02:00
|
|
|
---help---
|
2016-06-19 17:52:34 +02:00
|
|
|
Enable building a serial driver that can be used by an application
|
2016-11-28 00:14:57 +01:00
|
|
|
to read data from the in-memory, scheduler instrumentation "note"
|
2016-06-19 17:52:34 +02:00
|
|
|
buffer.
|
2016-06-19 16:46:46 +02:00
|
|
|
|
2017-05-10 22:42:43 +02:00
|
|
|
config SYSLOG_BUFFER
|
|
|
|
bool "Use buffered output"
|
|
|
|
default n
|
|
|
|
depends on SYSLOG_WRITE
|
2017-05-11 01:36:08 +02:00
|
|
|
select MM_IOB
|
2017-05-10 22:42:43 +02:00
|
|
|
---help---
|
|
|
|
Enables an buffering logic that will be used to serialize debug
|
|
|
|
output from concurrent tasks. This enables allocation of one buffer
|
2017-05-11 01:36:08 +02:00
|
|
|
per thread, each of size CONFIG_IOB_BUFSIZE.
|
2017-05-10 22:42:43 +02:00
|
|
|
|
|
|
|
The use of SYSLOG buffering is optional. If not enabled, however,
|
|
|
|
then the output from multiple tasks that attempt to generate SYSLOG
|
|
|
|
output may be interleaved and difficult to read.
|
|
|
|
|
2016-06-19 17:47:13 +02:00
|
|
|
config SYSLOG_INTBUFFER
|
|
|
|
bool "Use interrupt buffer"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enables an interrupt buffer that will be used to serialize debug
|
|
|
|
output from interrupt handlers.
|
|
|
|
|
|
|
|
config SYSLOG_INTBUFSIZE
|
|
|
|
int "Interrupt buffer size"
|
|
|
|
default 512
|
|
|
|
depends on SYSLOG_INTBUFFER
|
|
|
|
---help---
|
|
|
|
The size of the interrupt buffer in bytes.
|
2016-06-19 16:46:46 +02:00
|
|
|
|
|
|
|
config SYSLOG_TIMESTAMP
|
|
|
|
bool "Prepend timestamp to syslog message"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Prepend timestamp to syslog message.
|
|
|
|
|
2017-08-04 16:02:52 +02:00
|
|
|
config SYSLOG_TIMESTAMP_REALTIME
|
|
|
|
bool "Use wall-clock for syslog timestamp"
|
|
|
|
default n
|
|
|
|
depends on SYSLOG_TIMESTAMP
|
|
|
|
---help---
|
|
|
|
Use wall-clock (CLOCK_REALTIME) for timestamp. By default,
|
|
|
|
CLOCK_MONOTONIC, if enabled, will be used or the system timer
|
|
|
|
is not.
|
|
|
|
|
2018-08-26 14:49:35 +02:00
|
|
|
config SYSLOG_PREFIX
|
|
|
|
bool "Prepend prefix to syslog message"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Prepend prefix to syslog message.
|
|
|
|
|
|
|
|
config SYSLOG_PREFIX_STRING
|
|
|
|
string "Prefix string"
|
|
|
|
depends on SYSLOG_PREFIX
|
|
|
|
default ""
|
|
|
|
---help---
|
|
|
|
The prefix string to be prepend.
|
|
|
|
|
2016-06-21 17:59:09 +02:00
|
|
|
config SYSLOG_SERIAL_CONSOLE
|
|
|
|
bool
|
|
|
|
default n
|
2016-06-19 16:46:46 +02:00
|
|
|
|
2016-06-21 17:59:09 +02:00
|
|
|
choice
|
|
|
|
prompt "System log device"
|
|
|
|
default SYSLOG_CONSOLE if DEV_CONSOLE
|
|
|
|
default SYSLOG_NONE if !DEV_CONSOLE
|
2016-06-19 19:16:12 +02:00
|
|
|
depends on !ARCH_SYSLOG
|
2016-06-21 17:59:09 +02:00
|
|
|
|
|
|
|
config SYSLOG_CHAR
|
|
|
|
bool "Log to a character device"
|
2017-05-10 22:42:43 +02:00
|
|
|
select SYSLOG_WRITE
|
2016-06-19 16:46:46 +02:00
|
|
|
---help---
|
|
|
|
Enable the generic character device for the SYSLOG. The full path to the
|
|
|
|
SYSLOG device is provided by SYSLOG_DEVPATH. A valid character device (or
|
|
|
|
file) must exist at this path. It will by opened by syslog_initialize.
|
|
|
|
|
2016-06-21 17:59:09 +02:00
|
|
|
config RAMLOG_SYSLOG
|
|
|
|
bool "Use RAMLOG for SYSLOG"
|
|
|
|
depends on RAMLOG && !ARCH_SYSLOG
|
|
|
|
---help---
|
|
|
|
Use the RAM logging device for the syslogging interface. If this
|
|
|
|
feature is enabled (along with SYSLOG), then all debug output (only)
|
|
|
|
will be re-directed to the circular buffer in RAM. This RAM log can
|
|
|
|
be viewed from NSH using the 'dmesg'command.
|
|
|
|
|
|
|
|
config SYSLOG_CONSOLE
|
|
|
|
bool "Log to /dev/console"
|
|
|
|
depends on DEV_CONSOLE
|
|
|
|
select SYSLOG_SERIAL_CONSOLE if SERIAL_CONSOLE
|
2017-05-10 22:42:43 +02:00
|
|
|
select SYSLOG_WRITE
|
2016-06-21 17:59:09 +02:00
|
|
|
---help---
|
|
|
|
Use the system console as a SYSLOG output device.
|
|
|
|
|
|
|
|
config SYSLOG_NONE
|
|
|
|
bool "No SYSLOG device"
|
|
|
|
---help---
|
|
|
|
syslog() interfaces will be present, but all output will go to the
|
|
|
|
bit-bucket.
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2016-06-21 20:25:15 +02:00
|
|
|
config SYSLOG_FILE
|
2018-07-09 02:24:45 +02:00
|
|
|
bool "Syslog file output"
|
2016-06-21 20:25:15 +02:00
|
|
|
default n
|
2017-05-10 22:42:43 +02:00
|
|
|
select SYSLOG_WRITE
|
2016-06-21 20:25:15 +02:00
|
|
|
---help---
|
2018-07-09 02:24:45 +02:00
|
|
|
Build in support to use a file to collect SYSLOG output. File SYSLOG
|
2016-06-21 20:25:15 +02:00
|
|
|
channels differ from other SYSLOG channels in that they cannot be
|
|
|
|
established until after fully booting and mounting the target file
|
|
|
|
system. The function syslog_file_channel() would need to be called
|
|
|
|
from board-specific bring-up logic AFTER mounting the file system
|
|
|
|
containing 'devpath'.
|
|
|
|
|
|
|
|
NOTE interrupt level SYSLOG output will be lost in this case unless
|
|
|
|
the interrupt buffer is used.
|
|
|
|
|
2016-06-21 17:59:09 +02:00
|
|
|
config CONSOLE_SYSLOG
|
|
|
|
bool "Use SYSLOG for /dev/console"
|
|
|
|
default n
|
|
|
|
depends on DEV_CONSOLE && !SYSLOG_CONSOLE
|
|
|
|
---help---
|
|
|
|
Use the syslog logging device as a system console. If this feature is
|
|
|
|
enabled (along with DEV_CONSOLE), then all console output will be
|
|
|
|
re-directed to syslog output (syslog_putc). This is useful, for
|
|
|
|
example, if the only console is a Telnet console. Then in that case,
|
|
|
|
console output from non-Telnet threads will go to the syslog output.
|
2016-06-19 16:46:46 +02:00
|
|
|
|
2016-06-22 18:08:20 +02:00
|
|
|
config SYSLOG_CHAR_CRLF
|
|
|
|
bool "SYSLOG device CR/LF"
|
|
|
|
default y
|
|
|
|
depends on SYSLOG_CHAR
|
|
|
|
---help---
|
|
|
|
Pre-pend a carriage return before every linefeed that goes to the
|
|
|
|
character device.
|
|
|
|
|
2016-06-19 16:46:46 +02:00
|
|
|
config SYSLOG_DEVPATH
|
|
|
|
string "System log device"
|
2016-07-05 20:58:18 +02:00
|
|
|
default "/dev/ttyS1"
|
2016-06-19 16:46:46 +02:00
|
|
|
depends on SYSLOG_CHAR
|
|
|
|
---help---
|
|
|
|
The full path to the system logging device. For the RAMLOG SYSLOG device,
|
|
|
|
this is normally "/dev/ramlog". For character SYSLOG devices, it should be
|
|
|
|
some other existing character device (or file) supported by the configuration
|
|
|
|
(such as "/dev/ttyS1")/
|
|
|
|
|
2016-07-05 20:58:18 +02:00
|
|
|
config SYSLOG_CHARDEV
|
|
|
|
bool "SYSLOG character device"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enables support for a simple character driver at /dev/syslog whose
|
|
|
|
write() method will transfer data to the SYSLOG device. This can be
|
|
|
|
useful if, for example, you want to redirect the output of a program
|
|
|
|
to the SYSLOG.
|
|
|
|
|
|
|
|
NOTE that unlike other syslog output, this data is unformatted raw
|
|
|
|
byte output with no time-stamping or any other SYSLOG features
|
|
|
|
supported.
|
|
|
|
|
2016-06-21 17:59:09 +02:00
|
|
|
endmenu # System logging
|