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 more