v0.0.0-...-e72091e Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 6 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


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

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."

func New

func New() (*TracePipe, error)

func (*TracePipe) Channel

func (t *TracePipe) Channel() (<-chan *TraceEvent, <-chan error)

func (*TracePipe) Close

func (t *TracePipe) Close() error

func (*TracePipe) ReadLine

func (t *TracePipe) ReadLine() (*TraceEvent, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL