forked from DataDog/ebpf-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherr.go
25 lines (23 loc) · 1.48 KB
/
err.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package manager
import "errors"
var (
ErrManagerNotInitialized = errors.New("the manager must be initialized first")
ErrManagerNotStarted = errors.New("the manager must be started first")
ErrManagerRunning = errors.New("the manager is already running")
ErrUnknownSection = errors.New("unknown section")
ErrUnknownSectionOrFuncName = errors.New("unknown section or eBPF function name")
ErrPinnedObjectNotFound = errors.New("pinned object not found")
ErrMapNameInUse = errors.New("the provided map name is already taken")
ErrIdentificationPairInUse = errors.New("the provided identification pair already exists")
ErrProbeNotInitialized = errors.New("the probe must be initialized first")
ErrSectionFormat = errors.New("invalid section format")
ErrSymbolNotFound = errors.New("symbol not found")
ErrKprobeIDNotExist = errors.New("kprobe id file doesn't exist")
ErrUprobeIDNotExist = errors.New("uprobe id file doesn't exist")
ErrCloneProbeRequired = errors.New("use CloneProbe to load 2 instances of the same program")
ErrInterfaceNotSet = errors.New("interface not provided: at least one of Ifindex and Ifname must be set")
ErrMapInitialized = errors.New("map already initialized")
ErrMapNotInitialized = errors.New("the map must be initialized first")
ErrMapNotRunning = errors.New("the map is not running")
ErrNotSupported = errors.New("not supported")
)