You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dlt-qnx-system: prevent message loss in high load situations
* Add wait method, which waits up to 5 seconds for buffer space
to become available.
This method tries to flush the buffer via tcp every 10ms.
An error will be logged when there was not enough space.
The error shows up in dlt to simplify debugging.
* improve cmake that more qnx compilers are detected
* log missing context mapping only once, this greatly reduces
noise and the load of the system, as previously the
message was logged with every log of an unmapped application
Signed-off-by: Alexander Mohr <[email protected]>
Copy file name to clipboardExpand all lines: CMakeLists.txt
+4-2
Original file line number
Diff line number
Diff line change
@@ -82,6 +82,7 @@ option(WITH_DLT_LOG_LEVEL_APP_CONFIG "Set to ON to enable default log levels bas
82
82
83
83
set(DLT_IPC "FIFO"CACHESTRING"UNIX_SOCKET,FIFO")
84
84
set(DLT_USER "genivi"CACHESTRING"Set user for process not run as root")
85
+
set(DLT_QNX_SLOG_ADAPTER_WAIT_BUFFER_TIMEOUT_MS "100"CACHESTRING"Timeout in milliseconds to wait before messages are dropped when input buffer is full")
85
86
86
87
option(WITH_DLT_PKGCONFIG "Set to ON to generate pkgconfig .pc files"ON)
87
88
option(WITH_DLT_CXX11_EXT "Set to ON to build C++11 extensions"OFF)
Copy file name to clipboardExpand all lines: doc/dlt_build_options.md
+1
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,7 @@ WITH\_DLT\_DBUS | OFF | Set to ON to build src/dbus
59
59
Option | Value | Comment
60
60
:--- | :--- | :---
61
61
WITH\_DLT\_QNX\_SYSTEM | OFF | Set to ON to build QNX system binary dlt-qnx-system
62
+
DLT\_QNX\_SLOG\_ADAPTER\_WAIT\_BUFFER\_TIMEOUT\_MS | 100 | Maximum time in milliseconds to wait for buffer space in dlt before messages from the slog will be discarded.
0 commit comments