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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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 Freeze for DataSource
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