tasks

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskFdType

type TaskFdType uint32
const (
	RawTracepoint TaskFdType = iota
	Tracepoint
	Kprobe
	Kretprobe
	Uprobe
	Uretprobe
)

func (TaskFdType) String

func (i TaskFdType) String() string

type TaskInfo

type TaskInfo struct {
	PID         uint32
	FD          uint32
	ProgramID   ebpf.ProgramID
	Type        TaskFdType
	Name        string
	ProbeOffset uint64
	ProbeAddr   uint64
}

type TaskWatcher

type TaskWatcher interface {
	Run(ctx context.Context, refreshInterval time.Duration)
	GetTasks() ([]*TaskInfo, error)
}

func NewTaskWatcher

func NewTaskWatcher() TaskWatcher

Jump to

Keyboard shortcuts

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