Struct linux_perf_event_reader::MmapRecord 
source · pub struct MmapRecord<'a> {
    pub pid: i32,
    pub tid: i32,
    pub address: u64,
    pub length: u64,
    pub page_offset: u64,
    pub is_executable: bool,
    pub cpu_mode: CpuMode,
    pub path: RawData<'a>,
}Expand description
These aren’t emitted by the kernel any more - the kernel uses MMAP2 events
these days.
However, perf record still emits synthetic MMAP events (not MMAP2!) for
the kernel image. So if you want to symbolicate kernel addresses you still
need to process these.
The kernel image MMAP events have pid -1.
Fields§
§pid: i32§tid: i32§address: u64§length: u64§page_offset: u64§is_executable: bool§cpu_mode: CpuMode§path: RawData<'a>Implementations§
Trait Implementations§
source§impl<'a> Clone for MmapRecord<'a>
 
impl<'a> Clone for MmapRecord<'a>
source§fn clone(&self) -> MmapRecord<'a>
 
fn clone(&self) -> MmapRecord<'a>
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<'a> Debug for MmapRecord<'a>
 
impl<'a> Debug for MmapRecord<'a>
source§impl<'a> PartialEq for MmapRecord<'a>
 
impl<'a> PartialEq for MmapRecord<'a>
source§fn eq(&self, other: &MmapRecord<'a>) -> bool
 
fn eq(&self, other: &MmapRecord<'a>) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.impl<'a> Eq for MmapRecord<'a>
impl<'a> StructuralPartialEq for MmapRecord<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for MmapRecord<'a>
impl<'a> Send for MmapRecord<'a>
impl<'a> Sync for MmapRecord<'a>
impl<'a> Unpin for MmapRecord<'a>
impl<'a> UnwindSafe for MmapRecord<'a>
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