#[non_exhaustive]pub enum XacctState {
On,
Off,
Unknown,
}Expand description
Build state of extended task accounting (CONFIG_TASK_XACCT),
probed from /proc/config.gz. Gates the taskstats memory
watermark fields (hiwater_rss_bytes, hiwater_vm_bytes), which
xacct_add_tsk (kernel/tsacct.c) fills whenever CONFIG_TASK_XACCT
is built in — there is NO runtime toggle, unlike delay accounting.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
On
/proc/config.gz shows CONFIG_TASK_XACCT=y — watermarks
populate (for tasks with an address space; a kernel thread
reads zero).
Off
/proc/config.gz shows # CONFIG_TASK_XACCT is not set — not
built in, watermarks read zero.
Unknown
/proc/config.gz is unreadable (no CONFIG_IKCONFIG_PROC, or the
gz read/parse failed) or the symbol line is absent. Treated as
measured (like Self::On) for gating so a host that does not
expose its config never produces a false “absent” verdict.
Trait Implementations§
Source§impl Clone for XacctState
impl Clone for XacctState
Source§fn clone(&self) -> XacctState
fn clone(&self) -> XacctState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for XacctState
impl Debug for XacctState
Source§impl<'de> Deserialize<'de> for XacctState
impl<'de> Deserialize<'de> for XacctState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for XacctState
impl Display for XacctState
Source§impl PartialEq for XacctState
impl PartialEq for XacctState
Source§impl Serialize for XacctState
impl Serialize for XacctState
impl Copy for XacctState
impl Eq for XacctState
impl StructuralPartialEq for XacctState
Auto Trait Implementations§
impl Freeze for XacctState
impl RefUnwindSafe for XacctState
impl Send for XacctState
impl Sync for XacctState
impl Unpin for XacctState
impl UnwindSafe for XacctState
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§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