Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* lib: Introduce WITH_LIB_NO_VERSION cmake option Signed-off By: Saya Sugiura <[email protected]> * logstorage: optional index and stop mode adds options to imitate libdlt file logging with offlinelogstorage: - optional index when NOFiles == 1 e.g.: APID.dlt - disable ringbuffer for specific filters: OverwriteBehavior=DISCARD_NEW this stops the automatic removal of the oldest messages. Also contains: - some fixes for memcheck findings about usage of uninitialized memory. - cmake coverage target and option can be used to generate a html report about the code coverage by the ctest tests. Signed-off-by: Felix Herrmann <[email protected]> * logstorage: Open file on correct cache size In case of ON_SPECIFIC_SIZE sync strategy, the file was not opened on correct cache size, so the file size was smaller than defined even next log messages can fit there. Signed-off-by: Saya Sugiura <[email protected]> * logstorage: Test all sync strategies All sync strategies are verified in logstorage component test. To make it work, following adaptions are also done: - dlt-logstorage-control: Add option to specify dlt.conf path Signed-off-by: Saya Sugiura <[email protected]> * Offline-Logstorage - Skip the file when prepare fails This change allows to append directory path in File option in dlt_logstorage.conf (e.g. File=path/Filename). If path does not exist and file preparation fails, it will try up to DLT_OFFLINE_LOGSTORAGE_MAX_ERRORS times (=5 times) If it reaches the maximum, that file will be skipped from next trial so that the daemon does not try to prepare file under non-existing directory every time the log message is received. Signed-off By: Saya Sugiura <[email protected]> * logstorage: Add internal function to store config Signed-off-by: Saya Sugiura <[email protected]> * cfg: make multiple config mechanism avaiable in logstorage Signed-off-by: Felix Herrmann <[email protected]> * logstorage: Add max cache size test case Signed-off By: Matthias Dangers <[email protected]> * logstorage: Add debug and details log messages Signed-off By: Saya Sugiura <[email protected]> * logstorage: Add option to disable network routing in DLT Daemon, when only file is configured If the option is enabled in dlt_logstorage,conf, routing to network will be disabled if the corresponding key (APID:CTID:ECUID) is available in logstorage. For ecucfg, if network is not set to log mode, routing to network will be disabled. Signed-off-by: Saya Sugiura [email protected] * Resolve compile warnings Signed-off-by: Saya Sugiura <[email protected]> * logstorage: Correctly calculate logstorage cache Signed-off-by: Saya Sugiura <[email protected]> * logstorage:update remain file size In CACHE_BASED strategy, the current write offset file should be updated only if the it is less than configured size Signed-off-by: Bui Nguyen Quoc Thanh <[email protected]> * LogStorage: Call fsync() before fclose() for ON_MSG sync strategy To sync buffer to file, fsync() is called before fclose() on ON_MSG. Signed-off-by: Saya Sugiura <[email protected]> * logstorage: Change path of MessageFilterConfigFile in dlt.conf Set value of configured file_size for checking logstorage file synchronization Clean the created DLT files on every test cases Dlt-daemon cannot run when testing with CTest under source folder due to path of MessageFilterConfigFile is incorrect Change relative path of MessageFilterConfigFile to absolute path in dlt.conf.in Signed-off-by: Le Tin <[email protected]> * logstorage:incorrect type of index The variable type of index should not be unsigned if it is possible to be negative. Otherwise, the validation will be wrong Signed-off-by: Bui Nguyen Quoc Thanh <[email protected]> --------- Signed-off-by: Felix Herrmann <[email protected]> Signed-off-by: Saya Sugiura <[email protected]> Signed-off-by: Saya Sugiura [email protected] Signed-off-by: Bui Nguyen Quoc Thanh <[email protected]> Signed-off-by: Le Tin <[email protected]> Co-authored-by: Saya Sugiura <[email protected]> Co-authored-by: Felix Herrmann <[email protected]> Co-authored-by: Matthias Dangers <[email protected]> Co-authored-by: Bui Nguyen Quoc Thanh <[email protected]> Co-authored-by: Le Tin <[email protected]>
- Loading branch information