#[repr(u32)]pub enum Software {
CPU_CLOCK = 0,
TASK_CLOCK = 1,
PAGE_FAULTS = 2,
CONTEXT_SWITCHES = 3,
CPU_MIGRATIONS = 4,
PAGE_FAULTS_MIN = 5,
PAGE_FAULTS_MAJ = 6,
ALIGNMENT_FAULTS = 7,
EMULATION_FAULTS = 8,
DUMMY = 9,
}Expand description
Software counters, implemented by the kernel.
Each variant of this enum corresponds to a particular PERF_COUNT_SW_…
value supported by the perf_event_open system call.
Variants§
CPU_CLOCK = 0
High-resolution per-CPU timer.
TASK_CLOCK = 1
Per-task clock count.
PAGE_FAULTS = 2
Page faults.
CONTEXT_SWITCHES = 3
Context switches.
CPU_MIGRATIONS = 4
Process migration to another CPU.
PAGE_FAULTS_MIN = 5
Minor page faults: resolved without needing I/O.
PAGE_FAULTS_MAJ = 6
Major page faults: I/O was required to resolve these.
ALIGNMENT_FAULTS = 7
Alignment faults that required kernel intervention.
This is only generated on some CPUs, and never on x86_64 or ARM.
EMULATION_FAULTS = 8
Instruction emulation faults.
DUMMY = 9
Placeholder, for collecting informational sample records.
Trait Implementations§
impl Copy for Software
impl Eq for Software
impl StructuralPartialEq for Software
Auto Trait Implementations§
impl Freeze for Software
impl RefUnwindSafe for Software
impl Send for Software
impl Sync for Software
impl Unpin for Software
impl UnwindSafe for Software
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
Mutably borrows from an owned value. Read more