Enum avml::Source

source ·
pub enum Source {
    DevCrash,
    DevMem,
    ProcKcore,
    Raw(PathBuf),
}

Variants

DevCrash

Provides a read-only view of physical memory. Access to memory using this device must be paged aligned and read one page at a time.

On RHEL based distributions, this device is frequently provided by default. A loadable kernel module version is available as part of the Linux utility crash: https://github.com/crash-utility/crash/tree/master/memory_driver

DevMem

Provides a read-write view of physical memory, though AVML opens it in a read-only fashion. Access to to memory using this device can be disabled using the kernel configuration options CONFIG_STRICT_DEVMEM or CONFIG_IO_STRICT_DEVMEM.

With CONFIG_STRICT_DEVMEM, only the first 1MB of memory can be accessed.

ProcKcore

Provides a virtual ELF coredump of kernel memory. This can be used to access physical memory.

If LOCKDOWN_KCORE is set in the kernel, then /proc/kcore may exist but is either inaccessible or doesn’t allow access to all of the kernel memory.

Raw(PathBuf)

User-specified path to a raw memory file

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
All possible argument values, in display order.
The canonical argument value. Read more
Parse an argument into Self.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more