-
Notifications
You must be signed in to change notification settings - Fork 8.4k
logging: Add a log flush operation #81360
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
Conversation
lyakh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed - it fixes #81350! Huge thanks!
pillo79
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks like a proper fix for the issue! 🚀
2 minor suggestions if you wish to address those.
include/zephyr/logging/log_ctrl.h
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be possible to define log_flush as a syscall, to allow userspace to use it as well, not necessarily with LLEXT 🙂
3c4c58f to
d5c4ee8
Compare
b77f887 to
431a2f0
Compare
431a2f0 to
6b39234
Compare
6b39234 to
b78c909
Compare
Ensure all pending log messages are processed by the log processing thread when log_flush is called, blocking the caller until done. Signed-off-by: Tom Burdick <[email protected]>
b78c909 to
f42b7fb
Compare
Ensure all pending log messages are processed by the log processing thread when log_flush is called, blocking the caller until done.
#81350 might be fixed by this, need @lyakh to confirm