Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldFormat ¶
FieldFormat describes the format for each of the tracepoint fields
func (*FieldFormat) ParseField ¶
func (tff *FieldFormat) ParseField() error
type Format ¶
type Format struct { Name string ID int Fields []FieldFormat }
Format contains the details for the tracepoint: name, id, and fields
type ParseError ¶
type ParseError struct {
// contains filtered or unexported fields
}
func (*ParseError) Error ¶
func (e *ParseError) Error() string
type Tracepoint ¶
Tracepoint represents the information of a Linux tracepoint
func GetAllTracepoints ¶
func GetAllTracepoints() ([]Tracepoint, error)
GetAllTracepoints iterates the tracepointsPath directory and returns all events found there. The Format field for this events is going to be empty. Callers can call LoadFormat() to fill it.
func (*Tracepoint) LoadFormat ¶
func (gt *Tracepoint) LoadFormat() error
LoadFormat loads the format of a tracepoint from /sys/kernel/debug
Click to show internal directories.
Click to hide internal directories.