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 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<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> Freeze for ParseConfig<E>where
E: Freeze,
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