#[repr(transparent)]pub struct Software(pub u64);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.
Tuple Fields§
§0: u64Implementations§
Source§impl Software
impl Software
Sourcepub const TASK_CLOCK: Self
pub const TASK_CLOCK: Self
Per-task clock count.
Sourcepub const PAGE_FAULTS: Self
pub const PAGE_FAULTS: Self
Page faults.
Sourcepub const CONTEXT_SWITCHES: Self
pub const CONTEXT_SWITCHES: Self
Context switches.
Sourcepub const CPU_MIGRATIONS: Self
pub const CPU_MIGRATIONS: Self
Process migration to another CPU.
Sourcepub const PAGE_FAULTS_MIN: Self
pub const PAGE_FAULTS_MIN: Self
Minor page faults: resolved without needing I/O.
Sourcepub const PAGE_FAULTS_MAJ: Self
pub const PAGE_FAULTS_MAJ: Self
Major page faults: I/O was required to resolve these.
Sourcepub const ALIGNMENT_FAULTS: Self
pub const ALIGNMENT_FAULTS: Self
Alignment faults that required kernel intervention.
This is only generated on some CPUs, and never on x86_64 or ARM.
Sourcepub const EMULATION_FAULTS: Self
pub const EMULATION_FAULTS: Self
Instruction emulation faults.
Sourcepub const BPF_OUTPUT: Self
pub const BPF_OUTPUT: Self
Special event type for streaming data from a eBPF program.
See the documentation of the bpf_perf_event_output method in the
bpf-helpers(7) manpage for details on how to use this event type.
Sourcepub const CGROUP_SWITCHES: Self
pub const CGROUP_SWITCHES: Self
Context switches to a task in a different cgroup.
Trait Implementations§
Source§impl Event for Software
impl Event for Software
Source§fn update_attrs(self, attr: &mut perf_event_attr)
fn update_attrs(self, attr: &mut perf_event_attr)
Update the
perf_event_attr struct so that it will record the
requested event. Read moreSource§fn update_attrs_with_data(
self,
attr: &mut perf_event_attr,
) -> Option<Arc<dyn EventData>>
fn update_attrs_with_data( self, attr: &mut perf_event_attr, ) -> Option<Arc<dyn EventData>>
Update the
perf_event_attr struct so that it will record the
requested event. Read moreimpl 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