Expand description
Tracepoint decoding
Modules§
- changelog
- Release history
- display
fmt::Display
helpers for using tracepoint_decode types with format macros likewrite!
andformat_args!
.
Structs§
- Event
Header Enumerator - 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:
- Event
Header Enumerator Context - Context for enumerating the fields of an EventHeader event. Enumerate an event as follows:
- Event
Header Event Info - Event attributes returned by the
event_info()
method ofEventHeaderEnumerator
. - Event
Header Item Info - 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 ofEventHeaderEnumerator
. - Perf
Byte Reader - Helper for working with data that may be in big-endian or little-endian byte order.
- Perf
Convert Options - Flags used when formatting a value as a string.
- Perf
Event Attr - perf_event_attr: Event’s collection parameters.
- Perf
Event Attr Options - Bits for PerfEventAttr.Options.
- Perf
Event Attr Read Format - perf_event_read_format: bits that can be set in PerfEventAttr.ReadFormat.
- Perf
Event Attr Sample Type - perf_event_sample_format: bits that can be set in PerfEventAttr.SampleType.
- Perf
Event Attr Size - Values for PerfEventAttr.Size.
- Perf
Event Attr Type - perf_type_id: uint32 value for
PerfEventAttr::attr_type
. - Perf
Event Bytes - Represents the header and raw data of a perf event.
- Perf
Event Desc - Information about the event (shared by all events with the same Id).
- Perf
Event Format - Event information parsed from a tracefs “format” file.
- Perf
Event Header - perf_event_header: Information at the start of each event.
- Perf
Event Header Misc Value for PerfEventHeader.Misc. - Perf
Event Header Misc CpuMode - Values for PerfEventHeaderMisc.CpuMode.
- Perf
Event Header Type - perf_event_type: u32 value for PerfEventHeader.Type.
- Perf
Field Format - Stores decoding information about a field, parsed from a tracefs “format” file.
- Perf
Item Metadata - 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.
- Perf
Item Value - 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.
- Perf
Meta Options - Options for the “meta” suffix generated by
EventHeaderEventInfo::json_meta_display
,crate::PerfSampleEventInfo::json_meta_display
, andcrate::PerfNonSampleEventInfo::json_meta_display
. - Perf
NonSample Event Info - Information about a non-sample event, typically returned by
reader.get_non_sample_event_info(&bytes)
. - Perf
Sample Event Info - Information about a sample event, typically returned by
reader.get_sample_event_info(&bytes)
. - Perf
Session Info - Information about a perf event collection session.
- Perf
Time Spec - Semantics equivalent to
struct timespec
fromtime.h
. Time = 1970 + seconds + nanoseconds.
Enums§
- Event
Header Enumerator Error - Values for the
last_error()
property ofEventHeaderEnumerator
. - Event
Header Enumerator State - Values for the State property of
EventHeaderEnumerator
. - Perf
Event Decoding Style - Values for the DecodingStyle property of PerfEventFormat.
- Perf
Field Array - The type of the array property of
PerfFieldFormat
. Array-ness of a field. - Perf
Text Encoding - Encoding of a string field of an event.