summaryrefslogtreecommitdiff
path: root/include/dlt/dlt_user.h
Commit message (Collapse)AuthorAgeFilesLines
* doxygen: Align variable for apid and ctidSaya Sugiura2019-07-191-2/+2
| | | | | | | The variables used for application id and context id are aligned with "apid" and "ctid". Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com>
* doxygen: Remove licenceSaya Sugiura2019-07-191-2/+0
| | | | Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com>
* doxygen: Get rid of warningsSaya Sugiura2019-07-191-3/+8
| | | | Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com>
* Remove dlt_forward_msgSaya Sugiura2019-06-181-8/+0
| | | | | | Since dlt_forward_msg() is not used anywhere, we will remove it. Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com>
* unix socket: IPC code isolationChristoph Lipka2019-05-061-0/+2
| | | | | Signed-off-by: Christoph Lipka <clipka@jp.adit-jv.com> Signed-off-by: Vo Trung Chi <Chi.VoTrung@vn.bosch.com>
* lib: daemon: Fix sem lock potential issueSaya Sugiura2019-04-241-2/+5
| | | | | | | | sem_wait may return an error if a signal is received while waiting for the lock,and therefore not take the lock before returning. Changed to have a while loop. Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com>
* Code beautification using uncrustifyChristoph Lipka2018-12-211-82/+110
| | | | Signed-off-by: Christoph Lipka <clipka@de.adit-jv.com>
* UnitTest: UpdatesManikandanC2018-12-211-1/+30
| | | | | | | | | | | | Gateway Logstorage Event Handler Signed-off-by: Christoph Lipka <clipka@de.adit-jv.com> Signed-off-by: S. Hameed <shameed@jp.adit-jv.com> Signed-off-by: Aditya Paluri <venkataaditya.paluri@in.bosch.com> Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com> Signed-off-by: ManikandanC <Manikandan.Chockalingam@in.bosch.com>
* Injection: New callback with private data Added new injection callback with ↵ManikandanC2018-12-211-0/+2
| | | | | | private data as argument Signed-off-by: ManikandanC <Manikandan.Chockalingam@in.bosch.com>
* Dynamic allocation of msg bufferManikandanC2018-12-101-2/+8
| | | | | | | | | | | | | It is possible to change the default buffer size for log message creation via environment variable: export DLT_LOG_MSG_BUF_LEN=<value> Instead of using a static buffer with size of 1390 bytes, the buffer is allocated dynamically with the specified value.The max size is restricted to approx 65k. Signed-off-by: Christoph Lipka <clipka@de.adit-jv.com> Signed-off-by: ManikandanC <Manikandan.Chockalingam@in.bosch.com>
* Use poll in the dlt-daemon for POSIX complianceManikandanC2018-11-301-0/+7
| | | | | | | | | | | The poll system call is now used in the daemon to enable DLT use in POSIX compliant systems. Also added introduced new unregister_app macro to avoid missing of logs in startup buffer. Signed-off-by: Frederic Berat <fberat@de.adit-jv.com> Signed-off-by: ManikandanC <Manikandan.Chockalingam@in.bosch.com> Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com> Signed-off-by: S. Hameed <shameed@jp.adit-jv.com>
* IPC: Unix socket added (#43)ManikandanChockalingam2018-05-181-0/+1
| | | | | | | | | * IPC: Unix socket added The user can select either FIFO or UNIX socket as IPC between user library and daemon through CMakelist option. Socket path configurable for both FIFO and Unix Socket now configurable in CMake Signed-off-by: Christoph Lipka <clipka@de.adit-jv.com> Signed-off-by: ManikandanC <Manikandan.Chockalingam@in.bosch.com>
* Update dlt_user.h (#22)Jens Lorenz2017-08-071-2/+2
| | | | | | | The dlt_user_log_write_start* function description mention the verbose/non-verbose option. According to my understanding verbose means that the code contains the verbose version of message (message as full string). The non-verbose version uses identifiers in order to reduce the message content and the interpretation of ids will be done by the viewer. Therefore the comments should be modified to capture this correctly.
* DLT_PTR macro: Improve implementation and function API addedChristoph Lipka2016-10-241-0/+10
| | | | | | | | The original implementation result in a compile error when DLT_PTR is used with other macros like DLT_STRING. This patch overcomes that problem. Signed-off-by: Christoph Lipka <clipka@jp.adit-jv.com>
* Remove C99 style comments in include directoryS. Hameed2016-10-241-4/+2
| | | | Signed-off-by: Christoph Lipka <clipka@jp.adit-jv.com>
* Add dlt_user_is_logLevel_enabled APIChristoph Lipka2016-09-231-0/+23
| | | | | | | | | | This function allows an application developer to check if the DLT LogLevel is enabled before starting any log string creation. It can be used in application specific logging wrapper functions. Signed-off-by: Christoph Lipka <clipka@jp.adit-jv.com> Change-Id: I4c269b12bfdeae29a4e795385cdbc54a579ba621
* Set DLT_USER_BUF_MAX_SIZE to 1390 to prepare UDP message transportLutz Helwing2015-10-281-2/+2
| | | | | | | | | | dlt-test-client and dlt-test-filetransfer have global failed test counter so they can return 1 on failure Using DLT_USER_BUF_MAX_SIZE in dlt-test-client.c truncated check Set path to /usr/local/share/ in dlt-test-filetransfer.c Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* DLT daemon improvement - dlt_init()-checkLutz Helwing2015-10-071-186/+112
| | | | | | | | | | DLT daemon improvement - parameter value range check Adapt unit tests to check for enum return values Changed C version to gnu99 and C++ version to gnu++0c Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Make timeout on exit configurableStefan Vacek2015-10-071-5/+13
| | | | | | | | | - make timeout in at_exit handler configurable (was hardcoded to 10s), new api: int dlt_set_resend_timeout_atexit(uint32_t timeout_in_milliseconds); - add option -t to dlt-adaptor-stdin to set timeout in at_exit_handler - add option -t to dlt-example-user to set timeout in at_exit_handler Signed-off-by: Stefan Vacek <stefan.vacek@intel.com>
* Fixed whitespace and formatting of new code Fixed licence headersLutz Helwing2015-10-071-6/+6
| | | | Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Add env-var to set initial log-levelsStefan Vacek2015-10-071-8/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | name of environment variable: DLT_INITIAL_LOG_LEVEL Syntax: <apid1>:<ctid1>:<loglevel1>;<apid2>:<ctid2>:<loglevel2>;... apid: application id (up to 4 chars), if empty all applications will match ctid: context id (up to 4 chars), if empty all contexts will match loglevel: either -1..6 or a symbolic name (default, off, fatal, error, warning, info, debug, verbose) Examples: DLT_INITIAL_LOG_LEVEL=TEST:LOG:0 -> turn off logging for appid TEST and contextid LOG DLT_INITIAL_LOG_LEVEL=:LOG:warn -> for contexts with name "LOG" set log-level to warning (3) DLT_INITIAL_LOG_LEVEL=::VERBOSE -> set log-level of all contexts to VERBOSE DLT_INITIAL_LOG_LEVEL=::VERBOSE;TEST:LOG:3 -> set log-level of all contexts to VERBOSE except TEST:LOG, set this to WARNING dlt-example-user: add option -l to specify log-level to be used when sending messages Signed-off-by: Stefan Vacek <stefan.vacek@intel.com>
* Removed all trailing whitespacesLutz Helwing2015-07-211-3/+3
| | | | Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Replaced all tabs with spaces in all files in include folderLutz Helwing2015-07-211-88/+92
| | | | Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* 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/+15
| | | | | | Scan findings. Renamed and cleanup further files. Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* adding support for new macros to the daemon. new macros: DLT_HEX8(VAR) 8bits ↵Jens Bocklage2015-03-121-1/+16
| | | | | | | | variable displayed in hexadecimal with "0x" prefix DLT_HEX16(VAR) 16bits displayed in hexadecimal with "0x" prefix DLT_HEX32(VAR) 32bits displayed in hexadecimal with "0x" prefix DLT_HEX64(VAR) 64bits displayed in hexadecimal with "0x" prefix DLT_BIN8(VAR) 8bits variable displayed in binary with "0b" prefix DLT_BIN16(VAR) 16bits variable displayed in binary with "0b" prefix plus typo fix Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Fix dlt_user_log_write_start_id return valueAlexander Wenzel2014-10-301-2/+6
| | | | Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Added new API to send marker message from application.Alexander Wenzel2014-09-111-0/+5
| | | | Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* New macros for Format of Hex and Binary.Alexander Wenzel2014-09-091-0/+26
| | | | Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* New Callback function in DLT library, called when log level of context is ↵Alexander Wenzel2014-08-121-0/+21
| | | | | | changed Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* DLT_CSTRING implementation non verbose mode.Alexander Wenzel2014-05-191-1/+12
| | | | Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Send ECU Id if enabled and added library API to change.Alexander Wenzel2014-05-161-0/+9
| | | | Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Send timestamp can be disabled by new API.Alexander Wenzel2014-05-161-0/+9
| | | | Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Send session/process id by default and add configuration API.Alexander Wenzel2014-05-161-0/+9
| | | | Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Send extended header in non verbose mode by default and add new API to ↵Alexander Wenzel2014-05-161-1/+10
| | | | | | change setting. Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Reduce usage of SEM_LOCK in application library and reset pointers.Alexander Wenzel2014-01-101-0/+4
| | | | Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Bug 44 - Don't print "Buffer full" message from DLT daemon for each trace.Alexander Wenzel2013-08-071-0/+1
| | | | Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Bug 84 - Adding utf8 support to dlt-daemon, dlt-viewer. Modified patch, ↵Alexander Wenzel2013-07-251-0/+10
| | | | | | originally provided by Stefan Vacek. Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Reduce used stack size needed by making resend buffer static.Alexander Wenzel2012-12-041-0/+5
| | | | Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* [GDLT-120]: Segmented Network Trace: Prepare for rewrite.Lassi Marttala2012-11-261-3/+6
| | | | | | | | | | | | | This is a combination of 2 commits. Original descriptions below. [GDLT-120]: Remove dlt_queue. Only usage replace with POSIX queue. [GDLT-120]: Improve documentation. Add a note about context having to be pesistent thorough application lifetime. [GDLT-120]: Add macro interface. Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* [GDLT-120]: Improved Network trace. Rewrite to POSIX queue.Lassi Marttala2012-11-261-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | This is a squash of multiple commits. The original commit messages follow. [GDLT-120]: Segmented network trace: Correct error condition checks. [GDLT-120]: Add documentation for extended network trace [GDLT-120]: Add dlt_queue. Linked list based dynamic queue. [GDLT-120]: Recode to using queue for segmented messages [GDLT-120]: Improved thread start handling. Add error handling. Remove libm from linkage. [GDLT-120]: Avoid sending an extraneous empty segment, when size is aligned [GDLT-120]: More expansive return values from dlt_user_log_send_log [GDLT-120]: Change default behaviour of dlt_user_trace_network to truncated, instead of discard. [GDLT-120]: Convert to POSIX queue. Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* [GDLT-120] Segmentation of larger messages, raw blocks which fit not in a ↵Lassi Marttala2012-11-261-0/+31
| | | | | | single DLT message Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* GENDLT-21, Move mcnt from DltContextData to DltContextLassi Marttala2012-04-041-1/+1
| | | | 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 licenses in includeLassi Marttala2012-03-261-31/+16
|
* Modified library for new test cases to corrupt data - related to the bug fix ↵Christian Muck2012-03-221-0/+10
| | | | | | for testing signed and unsigned integer Signed-off-by: Christian Muck <christian.muck@bmw.de>
* [GENDLT-21] Fixed bug: Message Counter (MCNT) should be increased but is ↵Christian Muck2012-03-211-2/+2
| | | | | | always 0 Signed-off-by: Christian Muck <christian.muck@bmw.de>
* [GSW-138] API Extension to resend the log messages in the user buffer fixed.Christian Muck2012-01-131-0/+8
|
* Disabled completely SHM if not enabled.Alexander Wenzel2011-11-251-0/+2
|