Crate tracepoint_decode

Source
Expand description

Tracepoint decoding

Modules§

changelog
Release history
display
fmt::Display helpers for using tracepoint_decode types with format macros like write! and format_args!.

Structs§

EventHeaderEnumerator
Helper for getting information from an EventHeader event, e.g. the event name, event attributes, and event fields (field name, type, and value). Enumerate an event as follows:
EventHeaderEnumeratorContext
Context for enumerating the fields of an EventHeader event. Enumerate an event as follows:
EventHeaderEventInfo
Event attributes returned by the event_info() method of EventHeaderEnumerator.
EventHeaderItemInfo
Provides access to the name and value of an EventHeader event item. An item is a field of the event or an element of an array field of the event. This struct is returned by the item_info() method of EventHeaderEnumerator.
PerfByteReader
Helper for working with data that may be in big-endian or little-endian byte order.
PerfConvertOptions
Flags used when formatting a value as a string.
PerfEventAttr
perf_event_attr: Event’s collection parameters.
PerfEventAttrOptions
Bits for PerfEventAttr.Options.
PerfEventAttrReadFormat
perf_event_read_format: bits that can be set in PerfEventAttr.ReadFormat.
PerfEventAttrSampleType
perf_event_sample_format: bits that can be set in PerfEventAttr.SampleType.
PerfEventAttrSize
Values for PerfEventAttr.Size.
PerfEventAttrType
perf_type_id: uint32 value for PerfEventAttr::attr_type.
PerfEventBytes
Represents the header and raw data of a perf event.
PerfEventDesc
Information about the event (shared by all events with the same Id).
PerfEventFormat
Event information parsed from a tracefs “format” file.
PerfEventHeader
perf_event_header: Information at the start of each event.
PerfEventHeaderMisc
Value for PerfEventHeader.Misc.
PerfEventHeaderMiscCpuMode
Values for PerfEventHeaderMisc.CpuMode.
PerfEventHeaderType
perf_event_type: u32 value for PerfEventHeader.Type.
PerfFieldFormat
Stores decoding information about a field, parsed from a tracefs “format” file.
PerfItemMetadata
Provides access to the metadata of a perf event item. An item is a field of the event or an element of an array field of the event.
PerfItemValue
Provides access to the metadata and content of a perf event item. An item is a field of the event or an element of an array field of the event.
PerfMetaOptions
Options for the “meta” suffix generated by EventHeaderEventInfo::json_meta_display, crate::PerfSampleEventInfo::json_meta_display, and crate::PerfNonSampleEventInfo::json_meta_display.
PerfNonSampleEventInfo
Information about a non-sample event, typically returned by reader.get_non_sample_event_info(&bytes).
PerfSampleEventInfo
Information about a sample event, typically returned by reader.get_sample_event_info(&bytes).
PerfSessionInfo
Information about a perf event collection session.
PerfTimeSpec
Semantics equivalent to struct timespec from time.h. Time = 1970 + seconds + nanoseconds.

Enums§

EventHeaderEnumeratorError
Values for the last_error() property of EventHeaderEnumerator.
EventHeaderEnumeratorState
Values for the State property of EventHeaderEnumerator.
PerfEventDecodingStyle
Values for the DecodingStyle property of PerfEventFormat.
PerfFieldArray
The type of the array property of PerfFieldFormat. Array-ness of a field.
PerfTextEncoding
Encoding of a string field of an event.