Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TraceEvent ¶
type TraceEvent struct { Raw string Task string PID string CPU string Flags string Timestamp string Function string Message string }
TraceEvent contains the raw event as well as the contents of every field as string, as defined under "Output format" in https://www.kernel.org/doc/Documentation/trace/ftrace.txt
type TracePipe ¶
type TracePipe struct {
// contains filtered or unexported fields
}
TracePipe to read from /sys/kernel/debug/tracing/trace_pipe Note that data can be read only once, i.e. if you have more than one tracer / channel, only one will receive an event: "Once data is read from this file, it is consumed, and will not be read again with a sequential read." https://www.kernel.org/doc/Documentation/trace/ftrace.txt
func NewTracePipe ¶
NewTracePipe instantiates a new trace pipe
func (*TracePipe) Channel ¶
func (t *TracePipe) Channel() (<-chan *TraceEvent, <-chan error)
Channel returns a channel of events and an other for errors
func (*TracePipe) ReadLine ¶
func (t *TracePipe) ReadLine() (*TraceEvent, error)
ReadLine reads a line