Documentation
¶
Overview ¶
Package ftrace utilizes the FTRACE kernel framework in order to trace system calls and kernel events from user space.
Index ¶
Constants ¶
View Source
const Version = "1.2.0"
Version represents the version of this package.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Event ¶
type Event struct {
// process id for this event
PID int
// name of this event
Name string
// true if this is a syscall event or false of any sub event
IsSyscall bool
// argv if this is a syscall, otherwise just the event's data map
Args map[string]string
}
Event represents a single FTRACE notification.
type Probe ¶
Probe represents a FTRACE probe to a system call and optional sub events.
func NewProbe ¶
NewProbe creates a new probe with a custom name for the given syscall and optional sub events.
func (*Probe) Enable ¶
Enable enables this probe and starts its async worker routine in order to read FTRACE events.
Click to show internal directories.
Click to hide internal directories.