pub struct KernelDumpParser { /* private fields */ }Expand description
A kernel dump parser that gives access to the physical memory space stored in the dump. It also offers virtual to physical memory translation as well as a virtual read facility.
Implementations§
Source§impl KernelDumpParser
impl KernelDumpParser
Sourcepub fn with_reader(reader: impl Reader + 'static) -> Result<Self>
pub fn with_reader(reader: impl Reader + 'static) -> Result<Self>
Create an instance from a Reader & parse the file.
Sourcepub fn new(dump_path: impl AsRef<Path>) -> Result<Self>
pub fn new(dump_path: impl AsRef<Path>) -> Result<Self>
Create an instance from a file path; depending on the file size, it’ll either memory maps it or open it as a regular file.
Sourcepub fn physmem(&self) -> impl ExactSizeIterator<Item = (Gpa, u64)> + '_
pub fn physmem(&self) -> impl ExactSizeIterator<Item = (Gpa, u64)> + '_
Physical memory map that maps page aligned Gpa to offset where the
content of the page can be found. The offset is relevant with the
associated reader.
Sourcepub fn kernel_modules(
&self,
) -> impl ExactSizeIterator<Item = (&Range<Gva>, &str)> + '_
pub fn kernel_modules( &self, ) -> impl ExactSizeIterator<Item = (&Range<Gva>, &str)> + '_
Kernel modules loaded when the dump was taken.
Sourcepub fn user_modules(
&self,
) -> impl ExactSizeIterator<Item = (&Range<Gva>, &str)> + '_
pub fn user_modules( &self, ) -> impl ExactSizeIterator<Item = (&Range<Gva>, &str)> + '_
User modules loaded when the dump was taken.
Sourcepub fn exception_record(&self) -> &ExceptionRecord64
pub fn exception_record(&self) -> &ExceptionRecord64
Get the exception record.
Sourcepub fn context_record(&self) -> &Context
pub fn context_record(&self) -> &Context
Get the context record.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for KernelDumpParser
impl !RefUnwindSafe for KernelDumpParser
impl !Send for KernelDumpParser
impl !Sync for KernelDumpParser
impl Unpin for KernelDumpParser
impl !UnwindSafe for KernelDumpParser
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