pub fn get_record_id<T: ByteOrder>(
    record_type: RecordType,
    data: RawData<'_>,
    parse_info: &RecordIdParseInfo
) -> Option<u64>
Expand description

Get the ID from an event record, with the help of RecordIdParseInfo.

This can be used if it is not known which perf_event_attr describes this record, but only if all potential attrs have the same RecordIdParseInfo. Once the record’s ID is known, this ID can be mapped to the right attr, and then the information from the attr can be used to parse the rest of this record.