pub struct TimelineCapture<'a> {
pub records: &'a [u8],
pub drops: u64,
}Expand description
Capture handle for the freeze coordinator’s drain of the
timeline_events BPF ringbuf.
At dump time the coordinator constructs this with the drained
raw bytes (concatenated 40-byte records, in ringbuf order) plus
the BSS-side drop count. The dump consumer parses the buffer
into TimelineEvent values. This capture is not yet consumed
by the dump pipeline; the BSS-side drop count is surfaced today
via super::dump::ProbeBssCounters::timeline_drops (reached
through super::dump::FailureDumpReport::probe_counters).
Fields§
§records: &'a [u8]Raw concatenated record bytes drained from the
timeline_events ringbuf. Length must be a multiple of
size_of::<TimelineEventRaw>() (40); trailing partial
records are silently dropped at parse time.
drops: u64KTSTR_PCPU_TIMELINE_DROPS per-CPU slot (summed across
CPUs) at drain time. Non-zero indicates the BPF producer
hit a full ringbuf and dropped the newest event(s) on
submit.
Trait Implementations§
Source§impl<'a> Clone for TimelineCapture<'a>
impl<'a> Clone for TimelineCapture<'a>
Source§fn clone(&self) -> TimelineCapture<'a>
fn clone(&self) -> TimelineCapture<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'a> Debug for TimelineCapture<'a>
impl<'a> Debug for TimelineCapture<'a>
Source§impl<'a> Default for TimelineCapture<'a>
impl<'a> Default for TimelineCapture<'a>
Source§fn default() -> TimelineCapture<'a>
fn default() -> TimelineCapture<'a>
Auto Trait Implementations§
impl<'a> Freeze for TimelineCapture<'a>
impl<'a> RefUnwindSafe for TimelineCapture<'a>
impl<'a> Send for TimelineCapture<'a>
impl<'a> Sync for TimelineCapture<'a>
impl<'a> Unpin for TimelineCapture<'a>
impl<'a> UnwindSafe for TimelineCapture<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more