pub struct PerfEventInfo {
pub pid: u32,
pub comm: String,
pub event_type: u32,
pub event_type_name: String,
pub config: u64,
pub sample_period: u64,
pub is_suspicious: bool,
}Expand description
Information about a single perf_event attached to a process.
Fields§
§pid: u32PID of the owning process.
comm: StringCommand name of the owning process.
event_type: u32PERF_TYPE_* constant.
event_type_name: StringHuman-readable name for event_type.
config: u64Event configuration (e.g. PERF_COUNT_HW_CACHE_MISSES).
sample_period: u64Sample period set on the event.
is_suspicious: boolTrue when this event matches cache-side-channel or PMU-based attack patterns.
Trait Implementations§
Source§impl Clone for PerfEventInfo
impl Clone for PerfEventInfo
Source§fn clone(&self) -> PerfEventInfo
fn clone(&self) -> PerfEventInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PerfEventInfo
impl Debug for PerfEventInfo
Auto Trait Implementations§
impl Freeze for PerfEventInfo
impl RefUnwindSafe for PerfEventInfo
impl Send for PerfEventInfo
impl Sync for PerfEventInfo
impl Unpin for PerfEventInfo
impl UnsafeUnpin for PerfEventInfo
impl UnwindSafe for PerfEventInfo
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