Documentation ¶
Index ¶
Constants ¶
View Source
const ( // EventSample is equivalent to PERF_RECORD_SAMPLE EventSample = 9 // RecordLost is equivalent to PERF_RECORD_LOST RecordLost = 2 )
Below constants are based on the ones from <linux/perf_event.h>.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Meta ¶
type Meta struct { Size uint32 // contains filtered or unexported fields }
Meta is used by readers to get information about the payload.
func (*Meta) MarshalBinary ¶
MarshalBinary encodes the metadata into its binary representation.
func (*Meta) ReadBinary ¶
ReadBinary reads the metadata from its binary representation.
func (*Meta) UnmarshalBinary ¶
UnmarshalBinary decodes the metadata from its binary representation.
type Payload ¶
Payload is the structure used when copying events from the main monitor.
func (*Payload) DecodeBinary ¶
DecodeBinary reads the payload from its binary representation.
func (*Payload) EncodeBinary ¶
EncodeBinary writes the payload into its binary representation.
func (*Payload) ReadBinary ¶
ReadBinary reads the payload from its binary representation.
Click to show internal directories.
Click to hide internal directories.