Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: disable network trace #477

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

alexmohr
Copy link
Contributor

Add cmake toggle to disable network trace.
Disable network trace for QNX and yocto.
Deactivate DLT_TRACE_NETWORK_SEGMENTED macro
via an empty dlt_user_trace_network_segmented
function to support someip build.

The program was tested solely for our own use cases, which might differ from yours.
Licensed under Mozilla Public License Version 2.0

Alexander Mohr, alexander.m.mohr@mercedes-benz.com, Mercedes-Benz Tech Innovation GmbH, imprint

@minminlittleshrimp
Copy link
Collaborator

minminlittleshrimp commented Jul 11, 2023

Hello @michael-methner
I have no basic knowledge in SOME/IP since I have not had chance to work with AUTOSAR or face any CAN scenarios using this protocol. To my personal point of view, this workaround is OK and I have no objection to have this implementation in our src.
What do you think?

(void)header;
(void)payload_len;
(void)payload;
return DLT_RETURN_OK;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer returning an error code here. vsomeip is anyhow not checking it and logging a warning.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed return code DLT_RETURN_LOGGING_DISABLED and added dummy implementation for dlt_user_trace_network_truncated as this is also used in newer version of vsomeip

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, thanks for the rework

Add cmake toggle to disable network trace.
Disable network trace for QNX and yocto.
Deactivate DLT_TRACE_NETWORK_SEGMENTED macro
via an empty dlt_user_trace_network_segmented
function to support someip build.

Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com>
@michael-methner michael-methner merged commit d918e95 into COVESA:master Aug 10, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants