isr-dwarf 0.5.0

DWARF parser for ISR
Documentation
/// Errors surfaced while building a profile from DWARF debug info.
#[derive(thiserror::Error, Debug)]
pub enum Error {
    /// I/O error while reading the kernel image or `System.map`.
    #[error(transparent)]
    Io(#[from] std::io::Error),

    /// Failed to parse the kernel image as an object file.
    #[error(transparent)]
    Object(#[from] object::Error),

    /// Error from the `gimli` DWARF parser.
    #[error(transparent)]
    Gimli(#[from] gimli::Error),

    /// The supplied `System.map` is not in the expected format.
    #[error("invalid system map")]
    InvalidSystemMap,

    /// Failed to serialize the generated profile.
    #[error("serialization error: {0}")]
    Serialization(Box<dyn std::error::Error + Send + Sync>),
}