summaryrefslogtreecommitdiff
path: root/src/system/dlt-system.h
Commit message (Collapse)AuthorAgeFilesLines
* dlt-system: fix invalid free by removing unused TempDir (#350)Andrei Rusu2021-11-121-1/+0
| | | Signed-off-by: Andrei-Mircea Rusu <andrei-mircea.rusu@continental-corporation.com>
* dlt-system: Fix memory leak in dlt-system configdbiastoch2021-10-051-6/+7
| | | | | | | | | | | | In read_configuration_file() inside dlt-system-options.c memory is allocated for saving the parsed options into config struct. This memory is not freed again. There are two major changes for resolving this issue: 1) Add a cleanup function inside dlt-system-options.c to free allocated memory 2) Replace all AppID and ContextID char pointer through a char array with the lenght of DLT_ID_SIZE. Signed-off-by: dbiastoch <dbiastoch@de.adit-jv.com>
* system: use signalfd for dlt-systemBiastoch, Darian (ADITG/ESM)2021-10-051-28/+45
| | | | | | | | | | | | 1: Move the call of pthread_sigmask in dlt-qnx-systems main before DLT_REGISTER_APP, because this already spawns a thread, what was done without applying pthread_sigmask before. 2: Replaced all threads in dlt-system, that are spawned for each feature, through one poll. This poll waits for a file descriptor event, that triggers the feature routine, that was executed before in the thread. Done this for following processes: * reading syslog and journal * frequently reading logfile and logprocess * triggering filetransfer, if a file was added/changed in watched directory * checking watchdog timer of systemd service file with defined intervall Signed-off-by: dbiastoch <dbiastoch@de.adit-jv.com>
* Proper setup and error checking of pthread_createSebastian Kloska2019-09-131-7/+9
| | | | | | | | | | * Replace all start_XXX functions with one start_thread * Don't make pthread_t static * Don't use pthread_attr_t. Simply pass NULL * Bail out when pthread_create() fails * Check if MAX_THREADS gets exceeded Signed-off-by: Sebastian Kloska <sebastian.kloska@daimler.com>
* Add user custom timestamp interfaceSebastian Unger2019-09-131-0/+1
| | | | | | | | | | | | | Two new macros are introduced so that users can use their customized timestamps for DLT messages: - DLT_LOG_TS(CONTEXT, LOGLEVEL, TS, ARGS ...) - DLT_LOG_ID_TS(CONTEXT, LOGLEVEL, MSGID, TS, ARGS ...) Detailed explanations can be found in dlt_for_developers.md. Also a new option is added to dlt-system to use events' timestamps from journald adapter. Signed-off-by: Sebastian Unger <sunger@de.adit-jv.com>
* doxygen: Remove licenceSaya Sugiura2019-07-191-2/+0
| | | | Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com>
* Code beautification using uncrustifyChristoph Lipka2018-12-211-64/+64
| | | | Signed-off-by: Christoph Lipka <clipka@de.adit-jv.com>
* Fixed license headers and copyright doxygen commentsLutz Helwing2015-06-171-2/+2
| | | | Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Updated license headers to latest GENIVI license policy. Fixed further LRT ↵Lutz Helwing2015-06-171-12/+16
| | | | | | Scan findings. Renamed and cleanup further files. Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Remove absolute installation paths so that DLT can be installed at any ↵Jacques GUILLOU2015-04-021-1/+1
| | | | | | location (not only "/usr"). Signed-off-by: Jacques GUILLOU <jacques.guillou@pelagicore.com>
* Fixed: Security Issue by Command Injection in DLT System.Alexander Wenzel2013-07-261-0/+6
| | | | Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Added options for journal logging.Alexander Wenzel2013-07-251-0/+3
| | | | Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* First version of journal support.Alexander Wenzel2013-07-251-1/+12
| | | | Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* [GDLT-90] Implemented systemd watchdog concept in dlt-systemChristian Muck2012-06-131-0/+3
| | | | Signed-off-by: Christian Muck <christian.muck@bmw.de>
* dlt-system: Logging of error conditions. Assert memory allocations.Lassi Marttala2012-06-131-0/+5
| | | | | | | dlt-system: logfile module would sometimes deadlock in the end of a file because of feof() reset in the end of the file. Signed-off-by: Christian Muck <christian.muck@bmw.de>
* [GDLT-67] dlt-system v2.0, check full commit message for rebase detailsLassi Marttala2012-06-131-69/+109
| | | | | | | | | | | | | | | [GDLT-67] Prepare build system. [GDLT-67] Config parsing, structure for thread handling [GDLT-67] Finalize configuration reading. [GDLT-67] Reimplementation of syslog, logfile, logprocess, shell. [GDLT-67] First complete version of the new dlt-system. [GDLT-67] Fixed header comments. authors, file names. [GDLT-67] Final touches. [GDLT-67] Fixed a problem with thread creation in optimized release binary. [GDLT-67] New configuration file. [GDLT-67] Added dlt debug output Signed-off-by: Christian Muck <christian.muck@bmw.de>
* GDLT-2, Allow for enabling/disabling compression for the separateLassi Marttala2012-04-041-1/+2
| | | | | | directories. Signed-off-by: Christian Muck <christian.muck@bmw.de>
* GDLT-2 zlib based compression.Lassi Marttala2012-04-041-0/+2
| | | | Signed-off-by: Christian Muck <christian.muck@bmw.de>
* Corrected email of Alexander WenzelChristian Muck2012-03-271-1/+1
| | | | Signed-off-by: Christian Muck <christian.muck@bmw.de>
* GDLT-38, Update <FILE> fields in licenses.Lassi Marttala2012-03-261-1/+1
|
* GDLT-38, Update license in internal headers.Lassi Marttala2012-03-261-31/+17
|
* [GENDLT-16] Create variable in dlt-system.conf to configure the timeout of ↵Christian Muck2012-02-081-11/+23
| | | | the filetransfer fixed.
* dlt-system filetransfer now recovers when file is deleted during filetransfer.Alexander Wenzel2011-11-221-0/+1
| | | | | Added check of file size when starting and deleting files during filetransfer. Added check of shm buffer availability when push to shm.
* Added daemonise and signal handlers to dlt-system.Alexander Wenzel2011-11-041-0/+1
|
* Improved file logging and added variable to enable each kind of system logging.Alexander Wenzel2011-10-141-1/+80
|
* Enhanced process information logging.Alexander Wenzel2011-10-131-1/+7
|
* All kind of text files can now be logged, e.g. /proc/version.Alexander Wenzel2011-10-061-2/+8
|
* First implementation of filetransfer manager.Alexander Wenzel2011-10-061-0/+13
|
* Functionality log of processes from /proc added.Alexander Wenzel2011-10-051-2/+4
|
* First version of DLT system mamager.Alexander Wenzel2011-10-041-0/+17