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 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 MmapRecord<'_>
impl Debug for MmapRecord<'_>
Source§impl<'a> PartialEq for MmapRecord<'a>
impl<'a> PartialEq for MmapRecord<'a>
impl<'a> Eq for MmapRecord<'a>
impl<'a> StructuralPartialEq for MmapRecord<'a>
Auto Trait Implementations§
impl<'a> Freeze for MmapRecord<'a>
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