-
Notifications
You must be signed in to change notification settings - Fork 7k
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: Add support to new cbprintf packaging features #43520
Merged
nashif
merged 2 commits into
zephyrproject-rtos:main
from
nordic-krch:logging_static_packaging
Mar 30, 2022
Merged
Logging: Add support to new cbprintf packaging features #43520
nashif
merged 2 commits into
zephyrproject-rtos:main
from
nordic-krch:logging_static_packaging
Mar 30, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d0f14ec
to
078e023
Compare
dcpleung
previously approved these changes
Mar 14, 2022
4d2310e
to
dd65b13
Compare
dd65b13
to
dec6aa3
Compare
dec6aa3
to
8192c99
Compare
dcpleung
previously approved these changes
Mar 28, 2022
teburd
previously approved these changes
Mar 30, 2022
8192c99
to
f008b8f
Compare
I think this needs to be rebased again. |
Adapt logging to always use static packaging. Runtime packaging is used only when configuration requires that. Static packaging significantly speeds up logging when there are string arguments. Update log_stack test to new stack usage. Signed-off-by: Krzysztof Chruscinski <[email protected]>
Size of wrong string was used. It was not seen since length was later on aligned but may lead to failures in the future. Signed-off-by: Krzysztof Chruscinski <[email protected]>
f008b8f
to
6ec78cf
Compare
rebased. |
dcpleung
approved these changes
Mar 30, 2022
teburd
approved these changes
Mar 30, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area: API
Changes to public APIs
area: ARC
ARC Architecture
area: ARM
ARM (32-bit) Architecture
area: ARM64
ARM (64-bit) Architecture
area: Documentation
area: Logging
area: Tests
Issues related to a particular existing or missing test
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Aligned logging to use static packaging whenever possible. It uses new cbprintf feature which allows to use static packaging when log message contains
%s
arguments. This has two main advantages:log_bechmark
test shows 50% improvement for logging with single%s
argument in the message.PR is based on #43150 with one additional commit.DNM
because it is based on #44100.