<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/DLT-daemon.git/src/examples, branch master</title>
<subtitle>github.com: GENIVI/dlt-daemon.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/DLT-daemon.git/'/>
<entry>
<title>tests: Enable macro disabling</title>
<updated>2021-10-05T02:19:26+00:00</updated>
<author>
<name>Saya Sugiura</name>
<email>ssugiura@jp.adit-jv.com</email>
</author>
<published>2021-04-01T09:16:58+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/DLT-daemon.git/commit/?id=4c0a4a267e66fb31f5ddfc44ba5e5f34b586b952'/>
<id>4c0a4a267e66fb31f5ddfc44ba5e5f34b586b952</id>
<content type='text'>
This commit introduces new cmake option "WITH_DLT_DISABLE_MACRO" to
disable macro usage in case it is not allowed. Currently this is adapted
to src/tests and src/examples only. for dlt-test-non-verbose, the build itself is
currently disabled if WITH_DLT_DISABLE_MACRO is set; this needs to be
enabled again in future by replacing or adding function usage.

Signed-off-by: Saya Sugiura &lt;ssugiura@jp.adit-jv.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit introduces new cmake option "WITH_DLT_DISABLE_MACRO" to
disable macro usage in case it is not allowed. Currently this is adapted
to src/tests and src/examples only. for dlt-test-non-verbose, the build itself is
currently disabled if WITH_DLT_DISABLE_MACRO is set; this needs to be
enabled again in future by replacing or adding function usage.

Signed-off-by: Saya Sugiura &lt;ssugiura@jp.adit-jv.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lib: Add MaxFileSize handling</title>
<updated>2021-10-05T02:19:26+00:00</updated>
<author>
<name>Narasimhaiah Suprathik (RBEI/ECF3)</name>
<email>uns7kor@bosch.com</email>
</author>
<published>2020-12-07T10:57:57+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/DLT-daemon.git/commit/?id=d2200fc25e3ae0c04e349a80b979476ee156d215'/>
<id>d2200fc25e3ae0c04e349a80b979476ee156d215</id>
<content type='text'>
Signed-Off By: Saya Sugiura &lt;ssugiura@jp.adit-jv.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-Off By: Saya Sugiura &lt;ssugiura@jp.adit-jv.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>dlt message header broken</title>
<updated>2021-06-30T01:54:59+00:00</updated>
<author>
<name>Dinh Cong Toan</name>
<email>toan.dinhcong@vn.bosch.com</email>
</author>
<published>2021-05-25T09:28:21+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/DLT-daemon.git/commit/?id=1e7d374593ae34c5f1b343a213123d5385852fe7'/>
<id>1e7d374593ae34c5f1b343a213123d5385852fe7</id>
<content type='text'>
This commit is to revert the following commits:
- de4a4234
- fb9ff078
- db9917b3
- e4467f0e
- a567e01d
Those commits are from improvement but they seem to
break the dlt message header in some cases.

Signed-off-by: Bui Nguyen Quoc Thanh &lt;thanh.buinguyenquoc@vn.bosch.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit is to revert the following commits:
- de4a4234
- fb9ff078
- db9917b3
- e4467f0e
- a567e01d
Those commits are from improvement but they seem to
break the dlt message header in some cases.

Signed-off-by: Bui Nguyen Quoc Thanh &lt;thanh.buinguyenquoc@vn.bosch.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>example: Added customization of CxtID and AppID</title>
<updated>2021-01-06T00:27:28+00:00</updated>
<author>
<name>dbiastoch</name>
<email>dbiastoch@de.adit-jv.com</email>
</author>
<published>2020-11-12T09:42:37+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/DLT-daemon.git/commit/?id=6f4d05fe7c2a90b3e89837cbea9cac95c09ad746'/>
<id>6f4d05fe7c2a90b3e89837cbea9cac95c09ad746</id>
<content type='text'>
-It's now possbile to enter a custom app and context ID by using the new
 implemented "-A" and "-C" arguments.
-Also added a markdown manual in the doc directory for dlt-example-user.

Signed-off-by: dbiastoch &lt;dbiastoch@de.adit-jv.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
-It's now possbile to enter a custom app and context ID by using the new
 implemented "-A" and "-C" arguments.
-Also added a markdown manual in the doc directory for dlt-example-user.

Signed-off-by: dbiastoch &lt;dbiastoch@de.adit-jv.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>other: fix remaining conversion warnings</title>
<updated>2021-01-06T00:27:28+00:00</updated>
<author>
<name>Dinh Cong Toan</name>
<email>toan.dinhcong@vn.bosch.com</email>
</author>
<published>2020-11-19T11:41:13+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/DLT-daemon.git/commit/?id=360ccb0463aa7cf766d3a8228558cdc6478309a1'/>
<id>360ccb0463aa7cf766d3a8228558cdc6478309a1</id>
<content type='text'>
- Converting datatype to the correct one.

- As macro do not perform type-checking before, so these functions used
  it with different datatype could create a lot of conversion warnings.
  For this reason, these warnings could be consider as normal
  information and will not be fixed.

Signed-off-by: Dinh Cong Toan &lt;toan.dinhcong@vn.bosch.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Converting datatype to the correct one.

- As macro do not perform type-checking before, so these functions used
  it with different datatype could create a lot of conversion warnings.
  For this reason, these warnings could be consider as normal
  information and will not be fixed.

Signed-off-by: Dinh Cong Toan &lt;toan.dinhcong@vn.bosch.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add support for logging with VSOCK (#255)</title>
<updated>2020-12-14T00:43:52+00:00</updated>
<author>
<name>Martin Ejdestig</name>
<email>martin.ejdestig@volvocars.com</email>
</author>
<published>2020-12-14T00:43:52+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/DLT-daemon.git/commit/?id=8f5e3dc0f3134ea2fdaffd13a16464b1a2f2ecd4'/>
<id>8f5e3dc0f3134ea2fdaffd13a16464b1a2f2ecd4</id>
<content type='text'>
For more information about VSOCK, see "man vsock"
( https://man7.org/linux/man-pages/man7/vsock.7.html ).

Makes it possible for processes in a virtual machine to log directly in
DLT running on host without setting up a network connection between
guest and host. It is also probably more efficient. Have not done any
performance measurements (not main reason for patch), but no forwarding
is required as when running DLT in a multi-node setup.

When building dlt-daemon for host, WITH_DLT_DAEMON_VSOCK_IPC should be
enabled for daemon to listen on incoming VSOCK requests. Local
communication method between applications and daemon is still determined
with DLT_IPC. When building for guest, WITH_DLT_LIB_VSOCK_IPC should be
enabled and DLT_IPC will be ignored, which will make libdlt open a VSOCK
socket to the deamon for logging messages.

VSOCK can be tested without a virtual machine. Since VMADDR_CID_HOST is
used by libdlt when connecting, see vsock man page, clients can be run
on host to test VSOCK communication.

Some modifications has been done to be able to handle logging through
FIFO pipe and socket in the same build of dlt-daemon:

- dlt_receiver_init/free_unix_socket() is renamed to
  dlt_receiver_init/free_global_buffer() and used for FIFO as well.
  Also fixes memory leak since dlt_receiver_free_unix_socket() was used
  regardless of whether DLT_USE_UNIX_SOCKET was defined or not.

- Pass type to dlt_receiver_init() instead of dlt_receiver_receive().
  And remove preprocessor conditionals for handling
  DLT_CONNECTION_APP_MSG in dlt_daemon_process_user_messages(). Also
  fixes wrong enum type being passed to dlt_receiver_receive() in
  dlt_client.c (DltClient::mode was used as a DltReceiverType enum but
  it is a DltClientMode enum).

- Add a flag to DltDaemonApplication to indicate whether file descriptor
  is "owned" by the DltDaemonApplication or not. When
  dlt_daemon_application_add() is called due to message received on a
  socket, fd is passed as an argument (app does not own fd). For FIFO,
  a per application FIFO is opened (app owns the fd). Also fixes so that
  user handle is reset for both application and all its contexts when
  resetting any. Prevents fd from being used by accident after it has
  been closed.

dlt_mkdir_recursive() is moved to src/daemon since it is only used in
the daemon. Minimizes use of DLT_USE_UNIX_SOCKET_IPC.

Other bugfixes:

- Call DLT_SEM_FREE() if setting socket to O_NONBLOCK fails in
  src/lib/dlt_user.c:dlt_initialize_socket_connection().

- Close socket if dlt_receiver_init() fails in
  src/lib/dlt_user.c:dlt_initialize_socket_connection().

Signed-off-by: Martin Ejdestig &lt;martin.ejdestig@volvocars.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For more information about VSOCK, see "man vsock"
( https://man7.org/linux/man-pages/man7/vsock.7.html ).

Makes it possible for processes in a virtual machine to log directly in
DLT running on host without setting up a network connection between
guest and host. It is also probably more efficient. Have not done any
performance measurements (not main reason for patch), but no forwarding
is required as when running DLT in a multi-node setup.

When building dlt-daemon for host, WITH_DLT_DAEMON_VSOCK_IPC should be
enabled for daemon to listen on incoming VSOCK requests. Local
communication method between applications and daemon is still determined
with DLT_IPC. When building for guest, WITH_DLT_LIB_VSOCK_IPC should be
enabled and DLT_IPC will be ignored, which will make libdlt open a VSOCK
socket to the deamon for logging messages.

VSOCK can be tested without a virtual machine. Since VMADDR_CID_HOST is
used by libdlt when connecting, see vsock man page, clients can be run
on host to test VSOCK communication.

Some modifications has been done to be able to handle logging through
FIFO pipe and socket in the same build of dlt-daemon:

- dlt_receiver_init/free_unix_socket() is renamed to
  dlt_receiver_init/free_global_buffer() and used for FIFO as well.
  Also fixes memory leak since dlt_receiver_free_unix_socket() was used
  regardless of whether DLT_USE_UNIX_SOCKET was defined or not.

- Pass type to dlt_receiver_init() instead of dlt_receiver_receive().
  And remove preprocessor conditionals for handling
  DLT_CONNECTION_APP_MSG in dlt_daemon_process_user_messages(). Also
  fixes wrong enum type being passed to dlt_receiver_receive() in
  dlt_client.c (DltClient::mode was used as a DltReceiverType enum but
  it is a DltClientMode enum).

- Add a flag to DltDaemonApplication to indicate whether file descriptor
  is "owned" by the DltDaemonApplication or not. When
  dlt_daemon_application_add() is called due to message received on a
  socket, fd is passed as an argument (app does not own fd). For FIFO,
  a per application FIFO is opened (app owns the fd). Also fixes so that
  user handle is reset for both application and all its contexts when
  resetting any. Prevents fd from being used by accident after it has
  been closed.

dlt_mkdir_recursive() is moved to src/daemon since it is only used in
the daemon. Minimizes use of DLT_USE_UNIX_SOCKET_IPC.

Other bugfixes:

- Call DLT_SEM_FREE() if setting socket to O_NONBLOCK fails in
  src/lib/dlt_user.c:dlt_initialize_socket_connection().

- Close socket if dlt_receiver_init() fails in
  src/lib/dlt_user.c:dlt_initialize_socket_connection().

Signed-off-by: Martin Ejdestig &lt;martin.ejdestig@volvocars.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Fix overflow for -d argument in dlt-example-user (#270)</title>
<updated>2020-11-17T00:21:54+00:00</updated>
<author>
<name>Martin Ejdestig</name>
<email>martin.ejdestig@volvocars.com</email>
</author>
<published>2020-11-17T00:21:54+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/DLT-daemon.git/commit/?id=16ab307eca98a49d66bf3332578b4bdd32f63732'/>
<id>16ab307eca98a49d66bf3332578b4bdd32f63732</id>
<content type='text'>
atoi(dvalue) * 1000000 overflows if given a value &gt;= 2147 when
sizeof(int) is 4. (2^31 / 10000000 ~= 2147.48)

Signed-off-by: Martin Ejdestig &lt;martin.ejdestig@volvocars.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
atoi(dvalue) * 1000000 overflows if given a value &gt;= 2147 when
sizeof(int) is 4. (2^31 / 10000000 ~= 2147.48)

Signed-off-by: Martin Ejdestig &lt;martin.ejdestig@volvocars.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Implement DLTClient for UDP multicast (#240)</title>
<updated>2020-08-30T23:56:03+00:00</updated>
<author>
<name>João Sousa</name>
<email>48479050+joaodasousa@users.noreply.github.com</email>
</author>
<published>2020-08-30T23:56:03+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/DLT-daemon.git/commit/?id=33fbad18c814e13bd7ba2053525d8959fee437d1'/>
<id>33fbad18c814e13bd7ba2053525d8959fee437d1</id>
<content type='text'>
* Add UDP multicast support on client side

UDP multicast support is already present on server side. This
patch add seemless support for UDP multicast on client side
in dlt-receive.

Signed-off-by: Joao Sousa &lt;joao.sa.sousa@ctw.bmwgroup.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add UDP multicast support on client side

UDP multicast support is already present on server side. This
patch add seemless support for UDP multicast on client side
in dlt-receive.

Signed-off-by: Joao Sousa &lt;joao.sa.sousa@ctw.bmwgroup.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>doxygen improvement</title>
<updated>2019-09-12T23:49:53+00:00</updated>
<author>
<name>Saya Sugiura</name>
<email>ssugiura@jp.adit-jv.com</email>
</author>
<published>2019-09-06T05:14:24+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/DLT-daemon.git/commit/?id=318fa6af3d8a8fb40b5804d66c18e133591fdaab'/>
<id>318fa6af3d8a8fb40b5804d66c18e133591fdaab</id>
<content type='text'>
Signed-off-by: Saya Sugiura &lt;ssugiura@jp.adit-jv.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Saya Sugiura &lt;ssugiura@jp.adit-jv.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>UDP Multicast implementation (#155)</title>
<updated>2019-08-23T04:31:08+00:00</updated>
<author>
<name>Sunil-K-S</name>
<email>54260601+Sunil-K-S@users.noreply.github.com</email>
</author>
<published>2019-08-23T04:31:08+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/DLT-daemon.git/commit/?id=976746f28e1c4c0a6ee24bf3f94ce66b890b3898'/>
<id>976746f28e1c4c0a6ee24bf3f94ce66b890b3898</id>
<content type='text'>
The feature can be enabled by setting WITH_UDP_CONNECTION to ON.

Signed-off-by: sunil.s &lt;sunil.s@lge.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The feature can be enabled by setting WITH_UDP_CONNECTION to ON.

Signed-off-by: sunil.s &lt;sunil.s@lge.com&gt;</pre>
</div>
</content>
</entry>
</feed>
