<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/DLT-daemon.git/src/shared, branch master</title>
<subtitle>github.com: GENIVI/dlt-daemon.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/DLT-daemon.git/'/>
<entry>
<title>dlt_user_shared: Add timeout to writev (#385)</title>
<updated>2023-05-17T06:43:33+00:00</updated>
<author>
<name>Alexander Mohr</name>
<email>alexander.m.mohr@mercedes-benz.com</email>
</author>
<published>2023-05-17T06:43:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/DLT-daemon.git/commit/?id=6005b92b34b3e3ffe43c59be544acd4688a3354c'/>
<id>6005b92b34b3e3ffe43c59be544acd4688a3354c</id>
<content type='text'>
This timeout is necessary to prevent
blocking writev indefinitely.
Without the timeout dlt-daemon, may block
indefinitely when an app id is re-used
very frequently.
In that case dlt-daemon won't accept anymore
new connections and further communication
in any way is not possible anymore.

Signed-off-by: Alexander Mohr &lt;alexander.m.mohr@mercedes-benz.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This timeout is necessary to prevent
blocking writev indefinitely.
Without the timeout dlt-daemon, may block
indefinitely when an app id is re-used
very frequently.
In that case dlt-daemon won't accept anymore
new connections and further communication
in any way is not possible anymore.

Signed-off-by: Alexander Mohr &lt;alexander.m.mohr@mercedes-benz.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>dlt_multiple_files: remove superfluous mode bits and add header file to header list (#462)</title>
<updated>2023-04-12T09:19:34+00:00</updated>
<author>
<name>Minh Quang Luu</name>
<email>50074497+minminlittleshrimp@users.noreply.github.com</email>
</author>
<published>2023-04-12T09:19:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/DLT-daemon.git/commit/?id=fae02b466dfaee17dd0ac0368c7911d9654755d5'/>
<id>fae02b466dfaee17dd0ac0368c7911d9654755d5</id>
<content type='text'>
Signed-off-by: LUU QUANG MINH &lt;Minh.LuuQuang@vn.bosch.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: LUU QUANG MINH &lt;Minh.LuuQuang@vn.bosch.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>logfile: exhance internal dlt logging by introducing size limits (#369)</title>
<updated>2023-03-10T14:31:48+00:00</updated>
<author>
<name>Daniel Weber</name>
<email>37300320+danielweber2018@users.noreply.github.com</email>
</author>
<published>2023-03-10T14:31:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/DLT-daemon.git/commit/?id=363d433a5dac141020cef4f698f60644fe4a202c'/>
<id>363d433a5dac141020cef4f698f60644fe4a202c</id>
<content type='text'>
Enhance dlt logging such that multiple files are used as it is done
for the offline traces. Add limit-specific config values for logging.
For this purpose the pattern of index-based file names is used only.
This approach of logging to multiple files and rotating in order
to keep the limits ensures that dlt logs take care of available
space on the underlying file system and do not grow infinitely.

Signed-off-by: Daniel Weber &lt;daniel.w.weber@daimler.com&gt;
Co-authored-by: Oleg Tropmann &lt;oleg.tropmann@daimler.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Enhance dlt logging such that multiple files are used as it is done
for the offline traces. Add limit-specific config values for logging.
For this purpose the pattern of index-based file names is used only.
This approach of logging to multiple files and rotating in order
to keep the limits ensures that dlt logs take care of available
space on the underlying file system and do not grow infinitely.

Signed-off-by: Daniel Weber &lt;daniel.w.weber@daimler.com&gt;
Co-authored-by: Oleg Tropmann &lt;oleg.tropmann@daimler.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Check for negative index in dlt_file_message</title>
<updated>2023-01-27T09:51:07+00:00</updated>
<author>
<name>Michael Methner</name>
<email>mmethner@de.adit-jv.com</email>
</author>
<published>2023-01-27T09:51:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/DLT-daemon.git/commit/?id=8ac9a080bee25e67e49bd138d81c992ce7b6d899'/>
<id>8ac9a080bee25e67e49bd138d81c992ce7b6d899</id>
<content type='text'>
Fixes #436

Signed-off-by: Michael Methner &lt;mmethner@de.adit-jv.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #436

Signed-off-by: Michael Methner &lt;mmethner@de.adit-jv.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>client: Fix Get Log Info response conversion method (#422)</title>
<updated>2022-11-30T09:38:44+00:00</updated>
<author>
<name>Andrei Rusu</name>
<email>andrew_x_2005@yahoo.com</email>
</author>
<published>2022-11-30T09:38:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/DLT-daemon.git/commit/?id=ed8354ff0255061222e35b81a9cc156ec3b056ae'/>
<id>ed8354ff0255061222e35b81a9cc156ec3b056ae</id>
<content type='text'>
Signed-off-by: Andrei-Mircea Rusu &lt;andrei-mircea.rusu@continental-corporation.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Andrei-Mircea Rusu &lt;andrei-mircea.rusu@continental-corporation.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix for Resource and Memory Leak (#418)</title>
<updated>2022-10-26T08:11:24+00:00</updated>
<author>
<name>lti9hc</name>
<email>114125133+lti9hc@users.noreply.github.com</email>
</author>
<published>2022-10-26T08:11:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/DLT-daemon.git/commit/?id=948ed9928d933bbbfbb704ab0cc2296cb4333055'/>
<id>948ed9928d933bbbfbb704ab0cc2296cb4333055</id>
<content type='text'>
dlt_daemon_client.c Adding NULL check for tok
dlt_daemon_offline_logstorage.c : Adding NULL check for application
dlt_user.c : Fix for Memory Leak
dlt-daemon.c : Fix for Resource Leak
dlt_config_file_parser.c : Add termination character at the end of string
dlt_offline_trace.c : Fix for Resource Leak

Signed-off-by: Mvaradaraj2 manoj.varadaraj2@harman.com
Co-authored-by: Le Tin &lt;tin.le@vn.bosch.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
dlt_daemon_client.c Adding NULL check for tok
dlt_daemon_offline_logstorage.c : Adding NULL check for application
dlt_user.c : Fix for Memory Leak
dlt-daemon.c : Fix for Resource Leak
dlt_config_file_parser.c : Add termination character at the end of string
dlt_offline_trace.c : Fix for Resource Leak

Signed-off-by: Mvaradaraj2 manoj.varadaraj2@harman.com
Co-authored-by: Le Tin &lt;tin.le@vn.bosch.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Avoid memory corruption behind buffer wp in function dlt_getloginfo_conv_ascii_to_id (#411)</title>
<updated>2022-10-11T02:53:12+00:00</updated>
<author>
<name>michael-methner</name>
<email>mmethner@de.adit-jv.com</email>
</author>
<published>2022-10-11T02:53:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/DLT-daemon.git/commit/?id=154d225b934de70387533f3dfaf5d449a580c28b'/>
<id>154d225b934de70387533f3dfaf5d449a580c28b</id>
<content type='text'>
* Avoid memory corruption behind buffer wp in function dlt_getloginfo_conv_ascii_to_id

- Introduced new function dlt_getloginfo_conv_ascii_to_string for '\0' terminated strings
- Avoid printing garbage characters in dlt-control after APID and CTID (which are not null terminated anymore)
- Added unit test for dlt_client_parse_get_log_info_resp_text and dlt_getloginfo_conv_ascii_to_string
- Use dlt_getloginfo_conv_ascii_to_string to get '\0' terminated for app_description and context_description

Signed-off-by: Michael Methner &lt;mmethner@de.adit-jv.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Avoid memory corruption behind buffer wp in function dlt_getloginfo_conv_ascii_to_id

- Introduced new function dlt_getloginfo_conv_ascii_to_string for '\0' terminated strings
- Avoid printing garbage characters in dlt-control after APID and CTID (which are not null terminated anymore)
- Added unit test for dlt_client_parse_get_log_info_resp_text and dlt_getloginfo_conv_ascii_to_string
- Use dlt_getloginfo_conv_ascii_to_string to get '\0' terminated for app_description and context_description

Signed-off-by: Michael Methner &lt;mmethner@de.adit-jv.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>dlt_common: change output of message for log initialization (#412)</title>
<updated>2022-10-06T08:57:14+00:00</updated>
<author>
<name>lti9hc</name>
<email>114125133+lti9hc@users.noreply.github.com</email>
</author>
<published>2022-10-06T08:57:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/DLT-daemon.git/commit/?id=e961a8f7c0f655a4379c8c6bcf745f89604c453f'/>
<id>e961a8f7c0f655a4379c8c6bcf745f89604c453f</id>
<content type='text'>
Switch dlt_vlog() to dlt_user_printf(), the message could be
observed in case the log can not be written in file

Signed-off-by: Le Tin &lt;tin.le@vn.bosch.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Switch dlt_vlog() to dlt_user_printf(), the message could be
observed in case the log can not be written in file

Signed-off-by: Le Tin &lt;tin.le@vn.bosch.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>internal-logging: Fix issues with file logging (#378)</title>
<updated>2022-10-05T08:32:15+00:00</updated>
<author>
<name>Alexander Mohr</name>
<email>alexander.m.mohr@mercedes-benz.com</email>
</author>
<published>2022-10-05T08:32:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/DLT-daemon.git/commit/?id=5b80a4c92c9aa9ef45ce1da599b401ba631a86ed'/>
<id>5b80a4c92c9aa9ef45ce1da599b401ba631a86ed</id>
<content type='text'>
This commit fixes the following issues if access
to the internal log file is not possible (logging_mode = DLT_LOG_TO_FILE)
* dlt_log_free tried to call fclose on a nullptr
  Added a nullcheck for this
* Access to log file might be denied but access to logs is still wanted
  Add a new CMake option WITH_DLT_FILE_LOGGING_SYSLOG_FALLBACK
  If this is set to ON and the logging moe is set to file,
  the dlt-daemon will fall back to syslog if opening the internal log
  file failed

Signed-off-by: Alexander Mohr &lt;alexander.m.mohr@mercedes-benz.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit fixes the following issues if access
to the internal log file is not possible (logging_mode = DLT_LOG_TO_FILE)
* dlt_log_free tried to call fclose on a nullptr
  Added a nullcheck for this
* Access to log file might be denied but access to logs is still wanted
  Add a new CMake option WITH_DLT_FILE_LOGGING_SYSLOG_FALLBACK
  If this is set to ON and the logging moe is set to file,
  the dlt-daemon will fall back to syslog if opening the internal log
  file failed

Signed-off-by: Alexander Mohr &lt;alexander.m.mohr@mercedes-benz.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>dlt_common.c: Change default logging_mode (#406)</title>
<updated>2022-09-21T08:09:54+00:00</updated>
<author>
<name>wusto</name>
<email>45093377+wusto@users.noreply.github.com</email>
</author>
<published>2022-09-21T08:09:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/DLT-daemon.git/commit/?id=995ba51c3d0ee88b191e0153b1cc1fc3149f87df'/>
<id>995ba51c3d0ee88b191e0153b1cc1fc3149f87df</id>
<content type='text'>
Up to now the default for logging is stdout (DLT_LOG_TO_CONSOLE).

Scenario:
program_a arg1 | dd of=/my-beauty-case

If program_a wants to log to dlt, but it fails to connect to the socket:
socket /run/dlt-files/dlt cannot be opened, error:Resource temporarily
unavailable. Retrying later...

The error will be logged by default to stdout leading in the best case
to an error and in the worst to damaged partitions.

To solve this log to STDERR (DLT_LOG_TO_STDERR) by default.

Co-authored-by: Tobias Kaufmann &lt;Tobias.KA.Kaufmann@bmw.de&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Up to now the default for logging is stdout (DLT_LOG_TO_CONSOLE).

Scenario:
program_a arg1 | dd of=/my-beauty-case

If program_a wants to log to dlt, but it fails to connect to the socket:
socket /run/dlt-files/dlt cannot be opened, error:Resource temporarily
unavailable. Retrying later...

The error will be logged by default to stdout leading in the best case
to an error and in the worst to damaged partitions.

To solve this log to STDERR (DLT_LOG_TO_STDERR) by default.

Co-authored-by: Tobias Kaufmann &lt;Tobias.KA.Kaufmann@bmw.de&gt;</pre>
</div>
</content>
</entry>
</feed>
