Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
Pid int
// contains filtered or unexported fields
}
Context is the attached usdt context for a particular pid
func NewContext ¶
NewContext returns a new usdt context for a given pid. The supplied code and cflags will be used to compile the module in CompileModule
func (*Context) AddUSDTArguments ¶
AddUSDTArguments augments the originalCode with USDT arguments needed to allow the probes to compile
func (*Context) AttachUprobes ¶
AttachUprobes attaches uprobes corresponding to enabled USDT probes The module given must be the module containing the enabled probes
func (*Context) Close ¶
func (c *Context) Close()
Close closes a Context. After this it cannot be used.
func (*Context) EnableProbe ¶
EnableProbe enables a probe
Click to show internal directories.
Click to hide internal directories.