pub struct FtraceError {
pub timestamp: Option<u64>,
pub status: Option<i32>,
}
Expand description
Errors encountered during parsing of the raw ftrace data. In case of ring buffer layout errors, the parser skips the rest of the offending kernel buffer page and continues from the next page. See also FtraceStats.ftrace_parse_errors, which collates all unique errors seen within the duration of the trace (even if the affected bundles get overwritten in ring buffer mode).
Fields§
§timestamp: Option<u64>
Timestamp of the data that we’re unable to parse, in the ftrace clock domain. Currently, we use the base timestamp of the tracing page containing the bad record rather than the time of the record itself.
status: Option<i32>
Implementations§
Source§impl FtraceError
impl FtraceError
Sourcepub fn timestamp(&self) -> u64
pub fn timestamp(&self) -> u64
Returns the value of timestamp
, or the default value if timestamp
is unset.
Sourcepub fn status(&self) -> FtraceParseStatus
pub fn status(&self) -> FtraceParseStatus
Returns the enum value of status
, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_status(&mut self, value: FtraceParseStatus)
pub fn set_status(&mut self, value: FtraceParseStatus)
Sets status
to the provided enum value.
Trait Implementations§
Source§impl Clone for FtraceError
impl Clone for FtraceError
Source§fn clone(&self) -> FtraceError
fn clone(&self) -> FtraceError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for FtraceError
impl Debug for FtraceError
Source§impl Default for FtraceError
impl Default for FtraceError
Source§impl Message for FtraceError
impl Message for FtraceError
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.