Skip to content

Commit

Permalink
events: document the task event
Browse files Browse the repository at this point in the history
Suggested-by: Adrian Moreno <[email protected]>
Signed-off-by: Antoine Tenart <[email protected]>
  • Loading branch information
atenart committed Sep 25, 2024
1 parent d117ac5 commit 9afba77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions retis-events/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ impl EventFmt for StartupEvent {
}
}

/// Information about a given task.
#[event_type]
#[derive(Default)]
pub struct TaskEvent {
Expand All @@ -38,6 +39,7 @@ pub struct CommonEvent {
pub timestamp: u64,
/// SMP processor id.
pub smp_id: Option<u32>,
/// Information about the task linked to the event.
pub task: Option<TaskEvent>,
}

Expand Down

0 comments on commit 9afba77

Please sign in to comment.