Skip to content

Conversation

@teburd
Copy link
Contributor

@teburd teburd commented Nov 13, 2024

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

lyakh
lyakh previously approved these changes Nov 14, 2024
Copy link
Contributor

@lyakh lyakh left a 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!

@lyakh lyakh added the bug The issue is a bug, or the PR is fixing a bug label Nov 14, 2024
pillo79
pillo79 previously approved these changes Nov 14, 2024
Copy link
Contributor

@pillo79 pillo79 left a 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.

Copy link
Contributor

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 🙂

lyakh
lyakh previously approved these changes Jan 13, 2025
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]>
@kartben kartben merged commit 5de7e41 into zephyrproject-rtos:main Jan 15, 2025
24 checks passed
@teburd teburd deleted the log_flush_llext branch January 15, 2025 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: llext Linkable Loadable Extensions area: Logging area: Testsuite Testsuite 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