Struct perf_event_data::parse::ParseConfig
source · pub struct ParseConfig<E> { /* private fields */ }Expand description
All the configuration data needed to parse any perf record.
Implementations§
source§impl<E> ParseConfig<E>
impl<E> ParseConfig<E>
sourcepub fn with_endian<E2: Endian>(self, endian: E2) -> ParseConfig<E2>
pub fn with_endian<E2: Endian>(self, endian: E2) -> ParseConfig<E2>
Use this ParseConfig with a different Endian.
source§impl<E> ParseConfig<E>
impl<E> ParseConfig<E>
sourcepub fn read_format(&self) -> ReadFormat
pub fn read_format(&self) -> ReadFormat
Flags controlling what fields are returned by the kernel when reading from a counter.
sourcepub fn sample_type(&self) -> SampleFlags
pub fn sample_type(&self) -> SampleFlags
Flags indicating which fields are captured by the kernel when collecting a sample.
sourcepub fn regs_user(&self) -> u64
pub fn regs_user(&self) -> u64
Bitmask indicating which user-space registers are saved when the kernel takes a sample.
Trait Implementations§
source§impl<E: Clone> Clone for ParseConfig<E>
impl<E: Clone> Clone for ParseConfig<E>
source§fn clone(&self) -> ParseConfig<E>
fn clone(&self) -> ParseConfig<E>
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<E: Debug> Debug for ParseConfig<E>
impl<E: Debug> Debug for ParseConfig<E>
source§impl<E: Default> Default for ParseConfig<E>
impl<E: Default> Default for ParseConfig<E>
source§fn default() -> ParseConfig<E>
fn default() -> ParseConfig<E>
Returns the “default value” for a type. Read more
source§impl<E> From<perf_event_attr> for ParseConfig<E>where
E: Default,
impl<E> From<perf_event_attr> for ParseConfig<E>where E: Default,
source§fn from(value: perf_event_attr) -> Self
fn from(value: perf_event_attr) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> RefUnwindSafe for ParseConfig<E>where E: RefUnwindSafe,
impl<E> Send for ParseConfig<E>where E: Send,
impl<E> Sync for ParseConfig<E>where E: Sync,
impl<E> Unpin for ParseConfig<E>where E: Unpin,
impl<E> UnwindSafe for ParseConfig<E>where E: UnwindSafe,
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