Struct perf_event_data::DataSource
source · pub struct DataSource(/* private fields */);Expand description
Describes where in the memory hierarchy the sampled instruction came from.
See the manpage for a full description.
Implementations§
source§impl DataSource
impl DataSource
sourcepub fn mem_snoop(&self) -> MemSnoop
pub fn mem_snoop(&self) -> MemSnoop
Snoop mode.
This is a combination of the flags from both the mem_snoop and the
mem_snoopx fields in the kernel source.
sourcepub fn mem_lvl_num(&self) -> MemLevelNum
pub fn mem_lvl_num(&self) -> MemLevelNum
Memory hierarchy level number.
This field is not documented in the manpage but is present within the kernel headers.
sourcepub fn mem_remote(&self) -> bool
pub fn mem_remote(&self) -> bool
Whether the memory access was remote.
This field is not documented in the manpage but is present within the kernel headers.
Trait Implementations§
source§impl Clone for DataSource
impl Clone for DataSource
source§fn clone(&self) -> DataSource
fn clone(&self) -> DataSource
Returns a copy of the value. Read more
1.0.0 · 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 DataSource
impl Debug for DataSource
source§impl Default for DataSource
impl Default for DataSource
source§fn default() -> DataSource
fn default() -> DataSource
Returns the “default value” for a type. Read more
source§impl<'p> Parse<'p> for DataSource
impl<'p> Parse<'p> for DataSource
impl Copy for DataSource
Auto Trait Implementations§
impl RefUnwindSafe for DataSource
impl Send for DataSource
impl Sync for DataSource
impl Unpin for DataSource
impl UnwindSafe for DataSource
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