From 442688504260bb2bfcfb08a9865f223d2ab2d19a Mon Sep 17 00:00:00 2001 From: dbiastoch Date: Wed, 13 Jan 2021 11:27:17 +0100 Subject: dlt-receive: Enabled more filtering by using json filter files -Added '-j' flag to dlt-receive for reading a json filter file -Added more attributes to DltFilter (LogLevel, MaxPayload, MinPayload) for extended message filtering, when using old filters these values are set to default. Same behaviour, when they are not defined in json filter file. -extended dlt_common.c to support json filter files and new DltFilter attributes +add dlt_json_filter_load to parse a json filter file into a DltFilter +add dlt_json_filter_save to print a DltFilter into a json file -Two new libraries are used to parse the json filter files: json-c for Linux based systems and the QNX internal libjson for QNX systems -gtest_dlt_common was modified to test the new function 'dlt_json_filter_load' +add testfile_extended.dlt that contains a bigger varity of messages (different context/app IDs, lengths and log levels) +add testfilter.json which is a valid json filter file -New dependency on library was added to related CMakeLists and is described in README.md Signed-off-by: dbiastoch --- doc/dlt_build_options.md | 1 + 1 file changed, 1 insertion(+) (limited to 'doc/dlt_build_options.md') diff --git a/doc/dlt_build_options.md b/doc/dlt_build_options.md index 9a91193..1a7dad6 100644 --- a/doc/dlt_build_options.md +++ b/doc/dlt_build_options.md @@ -39,6 +39,7 @@ WITH\_DLT\_CONSOLE | ON | Set to ON to build src/cons WITH\_DLT\_SYSTEM | OFF | Set to ON to build src/system binaries WITH\_DLT\_LOGSTORAGE\_CTRL\_UDEV | OFF | PROTOTYPE! Set to ON to build WITH\_DLT\_KPI | OFF | Set to ON to build src/kpi binaries +WITH\_EXTENDED\_FILTERING | OFF | Set to OFF to build without extended filtering. Using json filter files is only supported for Linux based system with json-c and QNX. ## Linux OS Integration Options -- cgit v1.2.1