aboutsummaryrefslogtreecommitdiff
path: root/embassy-executor
diff options
context:
space:
mode:
authorKat Perez <[email protected]>2025-05-08 13:41:23 -0400
committerKat Perez <[email protected]>2025-05-08 13:46:41 -0400
commit194a3044acb5cd9691ced78596b9fd81e6884667 (patch)
tree95ce5561fec6da9a8ac2386fde0426ac623415a8 /embassy-executor
parent3b873bb6bb51b9bdac9272b5ec629a6ac54a89f7 (diff)
remove unused task_id
Diffstat (limited to 'embassy-executor')
-rw-r--r--embassy-executor/src/raw/trace.rs13
1 files changed, 1 insertions, 12 deletions
diff --git a/embassy-executor/src/raw/trace.rs b/embassy-executor/src/raw/trace.rs
index b30f23468..04e9d234f 100644
--- a/embassy-executor/src/raw/trace.rs
+++ b/embassy-executor/src/raw/trace.rs
@@ -216,9 +216,6 @@ impl TaskTracker {
216/// and names, which are useful for debugging, logging, and performance analysis. 216/// and names, which are useful for debugging, logging, and performance analysis.
217#[cfg(feature = "trace")] 217#[cfg(feature = "trace")]
218pub trait TaskRefTrace { 218pub trait TaskRefTrace {
219 /// Get the ID for a task
220 fn as_id(self) -> u32;
221
222 /// Get the name for a task 219 /// Get the name for a task
223 fn name(&self) -> Option<&'static str>; 220 fn name(&self) -> Option<&'static str>;
224 221
@@ -234,10 +231,6 @@ pub trait TaskRefTrace {
234 231
235#[cfg(feature = "trace")] 232#[cfg(feature = "trace")]
236impl TaskRefTrace for TaskRef { 233impl TaskRefTrace for TaskRef {
237 fn as_id(self) -> u32 {
238 self.ptr.as_ptr() as u32
239 }
240
241 fn name(&self) -> Option<&'static str> { 234 fn name(&self) -> Option<&'static str> {
242 self.header().name 235 self.header().name
243 } 236 }
@@ -331,8 +324,6 @@ pub(crate) fn poll_start(executor: &SyncExecutor) {
331 324
332#[inline] 325#[inline]
333pub(crate) fn task_new(executor: &SyncExecutor, task: &TaskRef) { 326pub(crate) fn task_new(executor: &SyncExecutor, task: &TaskRef) {
334 let task_id = task.as_ptr() as u32;
335
336 #[cfg(not(feature = "rtos-trace"))] 327 #[cfg(not(feature = "rtos-trace"))]
337 unsafe { 328 unsafe {
338 _embassy_trace_task_new(executor as *const _ as u32, task.as_ptr() as u32) 329 _embassy_trace_task_new(executor as *const _ as u32, task.as_ptr() as u32)
@@ -347,8 +338,6 @@ pub(crate) fn task_new(executor: &SyncExecutor, task: &TaskRef) {
347 338
348#[inline] 339#[inline]
349pub(crate) fn task_end(executor: *const SyncExecutor, task: &TaskRef) { 340pub(crate) fn task_end(executor: *const SyncExecutor, task: &TaskRef) {
350 let task_id = task.as_ptr() as u32;
351
352 #[cfg(not(feature = "rtos-trace"))] 341 #[cfg(not(feature = "rtos-trace"))]
353 unsafe { 342 unsafe {
354 _embassy_trace_task_end(executor as u32, task.as_ptr() as u32) 343 _embassy_trace_task_end(executor as u32, task.as_ptr() as u32)
@@ -451,7 +440,7 @@ impl rtos_trace::RtosTraceOSCallbacks for crate::raw::SyncExecutor {
451 stack_base: 0, 440 stack_base: 0,
452 stack_size: 0, 441 stack_size: 0,
453 }; 442 };
454 rtos_trace::trace::task_send_info(task.as_id(), info); 443 rtos_trace::trace::task_send_info(task.id(), info);
455 }); 444 });
456 } 445 }
457 fn time() -> u64 { 446 fn time() -> u64 {