Skip to content

add selective tracing support to SpawnerTraceExt #4301

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kat-perez
Copy link
Contributor

Add spawn_with_trace(), spawn_no_trace() and named variants to provide fine-grained control over task tracing. Supports both default tracing (rtos-trace) and selective tracing (rtos-trace-selective) modes while maintaining backward compatibility.

@kat-perez
Copy link
Contributor Author

This PR was added as a design alternative to #4300

@kat-perez kat-perez force-pushed the feat-trace-selective-tracing branch 2 times, most recently from be37b19 to ed6e075 Compare June 11, 2025 14:47
Add spawn_with_trace(), spawn_no_trace() and named variants to provide
fine-grained control over task tracing. Supports both default tracing
(rtos-trace) and selective tracing (rtos-trace-selective) modes while
maintaining backward compatibility.
@kat-perez kat-perez force-pushed the feat-trace-selective-tracing branch from ed6e075 to 868eda6 Compare June 11, 2025 16:54
@kat-perez
Copy link
Contributor Author

@Dirbaio @lulf

@@ -94,6 +94,8 @@ pub(crate) struct TaskHeader {
#[cfg(feature = "trace")]
pub(crate) id: u32,
#[cfg(feature = "trace")]
pub(crate) trace_excluded: bool,
Copy link
Member

Choose a reason for hiding this comment

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

This should probably be guarded by a trace-mode-selective flag to save some space for programs not using it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks, added the trace-mode-selective flag in the latest update

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@lulf (bump)

@kat-perez kat-perez force-pushed the feat-trace-selective-tracing branch 3 times, most recently from 512b09b to fea17cf Compare June 12, 2025 18:19
- update rtos-trace selective to depend on trace-mode-selective
- gate trace_excluded field behind trace-mode-selective instead of trace
- reduce memory overhead when selective tracing is not needed
@kat-perez kat-perez force-pushed the feat-trace-selective-tracing branch from fea17cf to 508c33e Compare June 12, 2025 18:21
@kat-perez
Copy link
Contributor Author

@lulf the ci/build job seemed to fail to error 137. Could I get a re-run for this job?

@kat-perez kat-perez requested a review from lulf June 12, 2025 20:17
@lulf
Copy link
Member

lulf commented Jun 18, 2025

bender run

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.

2 participants