DetailKind

Enum DetailKind 

Source
pub enum DetailKind {
Show 18 variants Starved, Stuck, Unfair, Isolation, Benchmark, Migration, PageLocality, CrossNodeMigration, SlowTier, Monitor, SchedulerCrashed, SchedulerExitedCleanly, SchedulerDiedUnknownReason, SchedulerEvent, Temporal, WorkerStalled, Skip, Other,
}
Expand description

Category tag for an AssertDetail. Enables structural filtering (e.g. by AssertPlan) without matching on substrings of human-readable messages, which is fragile if wording changes.

Notes previously lived as a DetailKind::Note variant on AssertDetail; they now live on AssertResult::info_notes as InfoNote values. See AssertResult::note / AssertResult::with_note for the producer-side migration and InfoNote for the rationale (structurally-separate context stream so sidecar consumers iterating details count only real failures without a “forgot to filter kind == Note” miscount class of bug).

Variants§

§

Starved

A worker made zero progress.

§

Stuck

A worker was stuck off-CPU longer than the gap threshold.

§

Unfair

Spread between best and worst worker exceeded the fairness threshold.

§

Isolation

A worker ran on a CPU outside its expected cpuset.

§

Benchmark

Throughput / benchmarking threshold failure (p99, CV, rate).

§

Migration

Migration-ratio threshold failure (migrations per iteration).

§

PageLocality

NUMA page locality threshold failure.

§

CrossNodeMigration

Cross-node migration threshold failure.

§

SlowTier

Slow-tier (memory tier) threshold failure.

§

Monitor

Monitor-subsystem anomaly (imbalance, DSQ depth, rq_clock stall). Use one of DetailKind::SchedulerCrashed / DetailKind::SchedulerExitedCleanly / DetailKind::SchedulerDiedUnknownReason for scheduler-liveness failures.

§

SchedulerCrashed

Scheduler process observed to have died (via sched_pid probe returning ESRCH or wait on the leader) AND the BPF probe observed a non-clean trace_sched_ext_exit event before the liveness check fired. The crash classification covers SCX_EXIT_ERROR, SCX_EXIT_ERROR_STALL, watchdog kick, and BPF-side error paths — every kernel exit that latches ktstr_err_exit_detected in the probe BSS.

Distinguished from DetailKind::SchedulerExitedCleanly (SCX_EXIT_NONE clean teardown) so the console-dump gate and downstream triage can tell a real crash from a benign completion. Consumers wanting to gate on “any scheduler exit” should match both variants via matches!(d.kind, SchedulerCrashed | SchedulerExitedCleanly).

§

SchedulerExitedCleanly

Scheduler process observed to have died with the probe BSS ktstr_err_exit_detected latch unset — the kernel ran the SCX_EXIT_NONE clean-teardown path (sysrq, explicit unregister) without latching an error. Surfaces alongside SchedulerCrashed because both are “scheduler exited” signals; splitting them lets the operator distinguish a benign shutdown from a real fault without re-parsing console output.

§

SchedulerDiedUnknownReason

Scheduler process observed to have died but the BPF probe has no classification yet — either the probe never armed for this run (no scheduler attached, host-only test) or the poll thread has not completed a first iteration since the prior reset. Operators triaging this variant should check whether the probe pipeline was wired before concluding “scheduler-exit classification is broken”.

§

SchedulerEvent

SCX event-counter threshold failure. An error-class SCX_EV_* counter (e.g. enq_skip_exiting, enq_skip_migration_disabled, dispatch_local_dsq_offline) crossed the configured bound. Distinct from the process-liveness variants (DetailKind::SchedulerCrashed / DetailKind::SchedulerExitedCleanly / DetailKind::SchedulerDiedUnknownReason) and DetailKind::Monitor (imbalance / DSQ-depth / rq_clock-stall): this kind flags individual event-counter regressions surfaced by assert_scx_events_clean. The counters themselves originate in the kernel’s per-task scx_event_stats (see kernel/sched/ext.cSCX_EV_* macros); ktstr reads aggregated deltas via monitor::ScxEventDeltas and presents them to the assertion as (name, count) pairs.

§

Temporal

Temporal assertion failure on a periodic-capture SampleSeries. One of the seven built-in patterns (nondecreasing / strictly_increasing, rate_within, steady_within, converges_to, always_true, ratio_within) or a per-sample scalar comparator invoked via .each(...) reported a violation. The detail message names the pattern, the offending sample tag(s), and the observed-vs-expected values; the stdout --- temporal assertions --- summary in test_support::output aggregates the same kind into per-assertion pass/fail rows.

§

WorkerStalled

Host-mode worker stall detected by crate::scenario::host_stall. The polling thread observed Δnr_switches == 0 AND Δsum_exec_runtime == 0 across the configured window for a worker pid — the task neither got picked nor preempted for at least STALL_WINDOW * poll_interval ms. Distinct from DetailKind::Stuck (worker-side report: a worker was off-CPU longer than the in-test gap threshold): this kind fires from the host-side polling thread when running host-mode (no VM boot) and is the only stall signal available in that mode.

§

Skip

Skip notification (scenario could not run under this topology/flags).

§

Other

Uncategorized — falls through when a detail has no specific kind.

Trait Implementations§

Source§

impl Clone for DetailKind

Source§

fn clone(&self) -> DetailKind

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DetailKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for DetailKind

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Hash for DetailKind

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for DetailKind

Source§

fn eq(&self, other: &DetailKind) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for DetailKind

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for DetailKind

Source§

impl Eq for DetailKind

Source§

impl StructuralPartialEq for DetailKind

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

§

impl<T> MaybeSend for T
where T: Send,

§

impl<T> MaybeSend for T
where T: Send,