-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
base: main
Are you sure you want to change the base?
Conversation
This PR was added as a design alternative to #4300 |
be37b19
to
ed6e075
Compare
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.
ed6e075
to
868eda6
Compare
@@ -94,6 +94,8 @@ pub(crate) struct TaskHeader { | |||
#[cfg(feature = "trace")] | |||
pub(crate) id: u32, | |||
#[cfg(feature = "trace")] | |||
pub(crate) trace_excluded: bool, |
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.
This should probably be guarded by a trace-mode-selective flag to save some space for programs not using it.
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, added the trace-mode-selective flag in the latest update
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.
@lulf (bump)
512b09b
to
fea17cf
Compare
- 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
fea17cf
to
508c33e
Compare
@lulf the ci/build job seemed to fail to error 137. Could I get a re-run for this job? |
bender run |
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.