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: i32tid: i32address: u64length: u64page_offset: u64is_executable: boolcpu_mode: CpuModepath: RawData<'a>Implementations
Trait Implementations
sourceimpl<'a> Clone for MmapRecord<'a>
impl<'a> Clone for MmapRecord<'a>
sourcefn clone(&self) -> MmapRecord<'a>
fn clone(&self) -> MmapRecord<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'a> Debug for MmapRecord<'a>
impl<'a> Debug for MmapRecord<'a>
sourceimpl<'a> PartialEq<MmapRecord<'a>> for MmapRecord<'a>
impl<'a> PartialEq<MmapRecord<'a>> for MmapRecord<'a>
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &MmapRecord<'a>) -> bool
fn ne(&self, other: &MmapRecord<'a>) -> bool
This method tests for !=.
impl<'a> Eq for MmapRecord<'a>
impl<'a> StructuralEq 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more