Skip to main content

CrashLog

Struct CrashLog 

Source
pub struct CrashLog {
    pub regions: Vec<Region>,
    pub metadata: Metadata,
}
Expand description

Set of all the Crash Log records captured on a platform.

Fields§

§regions: Vec<Region>

Crash Log regions captured on the platform.

§metadata: Metadata

Extra information extracted alongside the Crash Log records

Implementations§

Source§

impl CrashLog

Source

pub fn from_windows_event_logs(path: Option<&Path>) -> Result<Vec<Self>, Error>

Searches for any Intel Crash Log logged in the Windows event logs.

The Windows event logs typically captures the records reported through ACPI.

Source

pub fn from_slice(s: &[u8]) -> Result<Self, Error>

Decodes a raw Crash Log binary.

Source

pub fn to_bert(&self) -> Vec<u8>

Exports the CrashLog as a BERT file.

Source

pub fn to_bytes(&self) -> Vec<u8>

Exports the CrashLog as a CPER file that wraps the Crash Log regions into Firmware Error Record sections.

Source

pub fn decode_without_cm(&self) -> Node

Returns the register tree representation of the Crash Log record headers.

Source

pub fn decode<T: CollateralTree>(&self, cm: &mut CollateralManager<T>) -> Node

Returns the register tree representation of the Crash Log record content.

Source§

impl CrashLog

Source

pub fn from_acpi_sysfs() -> Result<Self, Error>

Reads the Crash Log reported through ACPI from the linux sysfs

Source

pub fn from_pmt_sysfs() -> Result<Self, Error>

Reads the Crash Log reported through Intel PMT from the linux sysfs

Trait Implementations§

Source§

impl Default for CrashLog

Source§

fn default() -> CrashLog

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.