Enum linux_perf_data::PerfFileRecord
source · pub enum PerfFileRecord<'a> {
EventRecord {
attr_index: usize,
record: RawEventRecord<'a>,
},
UserRecord(RawUserRecord<'a>),
}Expand description
A record from a perf.data file’s data stream.
This can be either a record emitted by the kernel for a perf event, or a
synthesized record that was added by a user-space tool like perf.
Variants§
EventRecord
Fields
§
attr_index: usizeAnd index into the array returned by PerfFile::event_attributes.
§
record: RawEventRecord<'a>The record.
Emitted by the kernel for a perf event.
UserRecord(RawUserRecord<'a>)
Synthesized by a user space tool, for example by perf or by simpleperf.