pub struct AttributeDescription {
    pub attr: PerfEventAttr,
    pub name: Option<String>,
    pub event_ids: Vec<u64>,
}
Expand description

A single event attr with name and corresponding event IDs.

Fields§

§attr: PerfEventAttr§name: Option<String>§event_ids: Vec<u64>

Implementations§

Parse the HEADER_EVENT_DESC section of a perf.data file into a Vec of AttributeDescription structs.

Parse the event_types section of a perf.data file into a Vec of AttributeDescription structs. This section was used in the past but is no longer used. Only call this function if event_types_section.size is non-zero.

Parse the attr section of a perf.data file into a Vec of AttributeDescription structs. This section is used as a last resort because it does not have any information about event IDs. If multiple events are observed, we will not be able to know which event record belongs to which attr.

The event attributes.

The event name.

The IDs for this event.

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

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.

Calls U::from(self).

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

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
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.