# Functions
NewEventMonitor creates a new EventMonitor instance in the stopped state.
WithCgroup is used to add a cgroup to the set of sources to monitor.
WithCgroups is used to add a list of cgroups to the set of sources to monitor.
WithDefaultEventAttr is used to set an optional EventAttr struct to be used by default when registering events and no EventAttr is specified as part of the registration.
WithEventAttr is used to register the event with an EventAttr struct instead of using the EventMonitor's default.
WithEventDisabled is used to register the event in a disabled state.
WithEventEnabled is used to register the event in an enabled state.
WithFilter is used to set a filter for the event.
WithFlags is used to set optional flags when creating a new EventMonitor.
WithPerfEventDir is used to set an optional directory to use for monitoring cgroups.
WithPid is used to add a pid to the set of sources to monitor.
WithPids is used to add a list of pids to the set of sources to monitor.
WithRingBufferNumPages is used to set the size of the ringbuffers used to retrieve samples from the kernel.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
BranchEntry is a translation of the Linux kernel's struct perf_branch_entry into Go.
CommRecord is a translation of the structure used by the Linux kernel for PERF_RECORD_COMM samples into Go.
CounterGroup represents the read values of a group of counter events.
CounterValue resepresents the read value of a counter event.
EventAttr is a translation of the Linux kernel's struct perf_event_attr into Go.
EventMonitor is a high-level interface to the Linux kernel's perf_event infrastructure.
ExitRecord is a translation of the structure used by the Linux kernel for PERF_RECORD_EXIT samples into Go.
ForkRecord is a translation of the structure used by the Linux kernel for PERF_RECORD_FORK samples into Go.
LostRecord is a translation of the structure used by the Linux kernel for PERF_RECORD_LOST samples into Go.
Sample is the representation of a perf_event sample retrieved from the Linux kernel.
SampleID is a translation of the structure used by the Linux kernel for all samples when SampleIDAll is set in the EventAttr used for a sample.
SampleRecord is a translation of the structure used by the Linux kernel for PERF_RECORD_SAMPLE samples into Go.
TraceEvent represents the common header on all trace events.
# Type aliases
EventMonitorOption is used to implement optional arguments for NewEventMonitor.
RegisterEventOption is used to implement optional arguments for event registration methods.
SampleDispatchFn is the signature of a function called to dispatch a sample.
TraceEventDecoderFn is the signature of a function to call to decode a sample.
TraceEventSampleData is a type alias for map[string]interface{}, which is the representation of sample data parsed from a Linux kernel sample.