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

logging: Fixes in dependencies around dictionary frontend #75507

Merged
merged 4 commits into from
Jul 9, 2024

Conversation

nordic-krch
Copy link
Contributor

#67107 added support for runtime filtering in frontends but guard for that was not removed from LOG_RUNTIME_FILTERING.

UART dictionary frontend was not selecting LOG_DICTIONARY_SUPPORT (it was selecting LOG_DICTIONARY_DB instead) and because of that LOG_FMT_SECTION_STRIP could not be enabled.

Log frontend supports runtime filtering so it should be
allowed to enable it even when only frontend is used with
no backends.

Signed-off-by: Krzysztof Chruściński <[email protected]>
Logging string stripping depends on LOG_DICTIONARY_SUPPORT being
enabled and it was not set in UART dictionary frontend.

Signed-off-by: Krzysztof Chruściński <[email protected]>
@nordic-krch nordic-krch added the bug The issue is a bug, or the PR is fixing a bug label Jul 5, 2024
@nordic-krch nordic-krch added this to the v3.7.0 milestone Jul 5, 2024
pdgendt
pdgendt previously approved these changes Jul 5, 2024
When userspace is used and frontend was used for logging then runtime
filtering was failing because in user context filtering data was
accessed and filtering data is in the kernel space. Fixing that and
adding runtime filtering to the pre frontend function which is
already executed in the kernel space and filter data can be
accessed.

Signed-off-by: Krzysztof Chruściński <[email protected]>
When NO_BACKENDS was not defined then log backends were
initialized (even though not used). During the initialization
filters for that backends were configured and because of that
messages were not filtered out as expected.

Signed-off-by: Krzysztof Chruściński <[email protected]>
@aescolar aescolar merged commit 4a53c69 into zephyrproject-rtos:main Jul 9, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Logging bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants