Versions in this module Expand all Collapse all v0 v0.8.20 Mar 14, 2023 v0.8.19 Feb 28, 2023 v0.8.18 Feb 25, 2023 v0.8.17 Feb 21, 2023 v0.8.16 Feb 21, 2023 v0.8.14 Feb 21, 2023 v0.8.13 Feb 21, 2023 v0.8.12 Feb 21, 2023 v0.8.11 Feb 21, 2023 v0.8.10 Feb 21, 2023 v0.8.9 Feb 21, 2023 v0.8.7 Feb 21, 2023 v0.8.6 Feb 20, 2023 v0.8.5 Feb 20, 2023 Changes in this version + const BPF_ANY + const BPF_BTF_GET_FD_BY_ID + const BPF_BTF_LOAD + const BPF_CGROUP_DEVICE + const BPF_CGROUP_INET4_BIND + const BPF_CGROUP_INET4_CONNECT + const BPF_CGROUP_INET4_POST_BIND + const BPF_CGROUP_INET6_BIND + const BPF_CGROUP_INET6_CONNECT + const BPF_CGROUP_INET6_POST_BIND + const BPF_CGROUP_INET_EGRESS + const BPF_CGROUP_INET_INGRESS + const BPF_CGROUP_INET_SOCK_CREATE + const BPF_CGROUP_SOCK_OPS + const BPF_CGROUP_SYSCTL + const BPF_CGROUP_UDP4_RECVMSG + const BPF_CGROUP_UDP4_SENDMSG + const BPF_CGROUP_UDP6_RECVMSG + const BPF_CGROUP_UDP6_SENDMSG + const BPF_EXIST + const BPF_FLOW_DISSECTOR + const BPF_F_NO_COMMON_LRU + const BPF_F_NO_PREALLOC + const BPF_F_NUMA_NODE + const BPF_F_QUERY_EFFECTVE + const BPF_F_RDONLY + const BPF_F_STACK_BUILD_ID + const BPF_F_WRONLY + const BPF_LIRC_MODE2 + const BPF_MAP_CREATE + const BPF_MAP_DELETE_ELEM + const BPF_MAP_GET_FD_BY_ID + const BPF_MAP_GET_NEXT_ID + const BPF_MAP_GET_NEXT_KEY + const BPF_MAP_LOOKUP_ELEM + const BPF_MAP_TYPE_ARRAY + const BPF_MAP_TYPE_ARRAY_OF_MAPS + const BPF_MAP_TYPE_CGROUP_ARRAY + const BPF_MAP_TYPE_CGROUP_STORAGE + const BPF_MAP_TYPE_CPUMAP + const BPF_MAP_TYPE_DEVMAP + const BPF_MAP_TYPE_HASH + const BPF_MAP_TYPE_HASH_OF_MAPS + const BPF_MAP_TYPE_LPM_TRIE + const BPF_MAP_TYPE_LRU_HASH + const BPF_MAP_TYPE_LRU_PERCPU_HASH + const BPF_MAP_TYPE_PERCPU_ARRAY + const BPF_MAP_TYPE_PERCPU_HASH + const BPF_MAP_TYPE_PERF_EVENT_ARRAY + const BPF_MAP_TYPE_PROG_ARRAY + const BPF_MAP_TYPE_REUSEPORT_SOCKARRAY + const BPF_MAP_TYPE_SOCKHASH + const BPF_MAP_TYPE_SOCKMAP + const BPF_MAP_TYPE_STACK_TRACE + const BPF_MAP_TYPE_UNSPEC + const BPF_MAP_TYPE_XSKMAP + const BPF_MAP_UPDATE_ELEM + const BPF_NOEXIST + const BPF_OBJ_GET + const BPF_OBJ_GET_INFO_BY_FD + const BPF_OBJ_PIN + const BPF_PROG_ATTACH + const BPF_PROG_DETACH + const BPF_PROG_GET_FD_BY_ID + const BPF_PROG_GET_NEXT_ID + const BPF_PROG_LOAD + const BPF_PROG_QUERY + const BPF_PROG_TEST_RUN + const BPF_RAW_TRACEPOINT_OPEN + const BPF_SK_MSG_VERDICT + const BPF_SK_SKB_STREAM_PARSER + const BPF_SK_SKB_STREAM_VERDICT + const BPF_TASK_FD_QUERY + const MAX_POLL_EVENTS — linux/amd64 + const PERF_COUNT_SW_BPF_OUTPUT + const PERF_SAMPLE_RAW + const PERF_TYPE_SOFTWARE + const PerfBitBuildId + const PossibleCPUSysfsPath — linux/amd64 + func AttachTCIngress(progFd int, linkName string, ingress bool) error — linux/amd64 + func CheckOrMountCgroup2() error — linux/amd64 + func CheckOrMountDebugFS() error — linux/amd64 + func CheckOrMountFS(bpfRoot string) — linux/amd64 + func ConfigureResourceLimits() error — linux/amd64 + func ConvertKeyValue(bKey []byte, bValue []byte, key MapKey, value MapValue) (MapKey, MapValue, error) — linux/amd64 + func Environment() []string — linux/amd64 + func GetFirstKey(fd int, nextKey unsafe.Pointer) error — linux/amd64 + func GetMapRoot() string — linux/amd64 + func GetNextKey(fd int, key, nextKey unsafe.Pointer) error — linux/amd64 + func GetNextKeyFromPointers(fd int, structPtr, sizeOfStruct uintptr) error — linux/amd64 + func GetNumPossibleCPUs() int — linux/amd64 + func HasBuildId() bool — linux/amd64 + func HasKprobeMulti() bool — linux/amd64 + func HasOverrideHelper() bool — linux/amd64 + func LocalMapName(name string, id uint16) string — linux/amd64 + func LocalMapPath(name string, id uint16) string — linux/amd64 + func LookupElement(fd int, key, value unsafe.Pointer) error — linux/amd64 + func LookupElementFromPointers(fd int, structPtr, sizeOfStruct uintptr) error — linux/amd64 + func MapPath(name string) string — linux/amd64 + func MapPrefixPath() string — linux/amd64 + func ObjGet(pathname string) (int, error) — linux/amd64 + func QdiscTCInsert(linkName string, ingress bool) error — linux/amd64 + func SetMapPrefix(path string) — linux/amd64 + func SetMapRoot(path string) — linux/amd64 + func UpdateElement(fd int, key, value unsafe.Pointer, flags uint64) error — linux/amd64 + func UpdateElementFromPointers(fd int, structPtr, sizeOfStruct uintptr) error — linux/amd64 + type DesiredAction int + const Delete + const Insert + const OK + type DumpCallback func(m *Map, key MapKey, value MapValue) — linux/amd64 + type EPoll struct — linux/amd64 + func (ep *EPoll) AddFD(fd int, events uint32) error + func (ep *EPoll) Close() + func (ep *EPoll) Poll(timeoutMillis int) (int, error) + type ErrorFunc func(msg *PerfEvent) — linux/amd64 + type EventMap struct — linux/amd64 + func (e *EventMap) Close() + func (e *EventMap) Update(fd int, ubaPtr, sizeOf uintptr) error + type Feature struct — linux/amd64 + type LostFunc func(msg *PerfEventLost, cpu int) — linux/amd64 + type Map struct — linux/amd64 + func OpenMap(name string) (*Map, error) + func (m *Map) Close() error + func (m *Map) Count() (int, error) + func (m *Map) DeleteKey(key MapKey) error + func (m *Map) Dump(hash map[string][]string) error + func (m *Map) DumpIfExists(hash map[string][]string) error + func (m *Map) DumpWithCallback(cb DumpCallback) error + func (m *Map) DumpWithCallbackIfExists(cb DumpCallback) error + func (m *Map) GetFd() int + func (m *Map) Lookup(key MapKey) (MapValue, error) + func (m *Map) Name() string + func (m *Map) Open() error + func (m *Map) Path() string + func (m *Map) Reopen() error + func (m *Map) Update(key MapKey, value MapValue) error + type MapInfo struct — linux/amd64 + Flags uint32 + InnerID uint32 + KeySize uint32 + MapKey MapKey + MapType MapType + MapValue MapValue + MaxEntries uint32 + ReadValueSize uint32 + ValueSize uint32 + func GetMapInfo(pid int, fd int) (*MapInfo, error) + type MapKey interface — linux/amd64 + DeepCopyMapKey func() MapKey + GetKeyPtr func() unsafe.Pointer + NewValue func() MapValue + type MapType int + const MapTypeArray + const MapTypeArrayOfMaps + const MapTypeCPUMap + const MapTypeCgroupArray + const MapTypeDevMap + const MapTypeHash + const MapTypeHashOfMaps + const MapTypeLPMTrie + const MapTypeLRUHash + const MapTypeLRUPerCPUHash + const MapTypeMaximum + const MapTypePerCPUArray + const MapTypePerCPUHash + const MapTypePerfEventArray + const MapTypeProgArray + const MapTypeSockHash + const MapTypeSockMap + const MapTypeStackTrace + const MapTypeUnspec + const MapTypeXSKMap + func (t MapType) String() string + type MapValidator func(path string) (bool, error) — linux/amd64 + type MapValue interface — linux/amd64 + DeepCopyMapValue func() MapValue + GetValuePtr func() unsafe.Pointer + type PerCpuEvents struct — linux/amd64 + Cpus int + Npages int + Pagesize int + func NewPerCpuEvents(config *PerfEventConfig, log logrus.FieldLogger) (*PerCpuEvents, error) + func (e *PerCpuEvents) CloseAll() error + func (e *PerCpuEvents) Poll(timeoutMillis int) (int, error) + func (e *PerCpuEvents) ReadAll(maxEvents int, receive ReceiveFunc, lost LostFunc, handleError ErrorFunc) error + func (e *PerCpuEvents) Stats() (uint64, uint64, uint64) + type PerfEvent struct — linux/amd64 + Fd int + func PerfEventFromMemory(page *PerfEventMmapPage, buf []byte) *PerfEvent + func PerfEventOpen(config *PerfEventConfig, pid int, cpu int, groupFD int, flags int) (*PerfEvent, error) + func (e *PerfEvent) Close() + func (e *PerfEvent) Debug() string + func (e *PerfEvent) DebugDump() string + func (e *PerfEvent) Disable() error + func (e *PerfEvent) Enable() error + func (e *PerfEvent) Mmap(pagesize int, npages int) error + func (e *PerfEvent) Munmap() error + func (e *PerfEvent) Read(maxEvents int, receive ReceiveFunc, lostFn LostFunc, err ErrorFunc) (nread int) + type PerfEventConfig struct — linux/amd64 + Config int + MapName string + NumCpus int + NumPages int + SampleType int + Type int + WakeupEvents int + func DefaultPerfEventConfig() *PerfEventConfig + type PerfEventHeader struct — linux/amd64 + Misc uint16 + TotalSize uint16 + Type uint32 + type PerfEventLost struct — linux/amd64 + Id uint64 + Lost uint64 + type PerfEventMmapPage struct — linux/amd64 + AuxHead uint64 + AuxOffset uint64 + AuxSize uint64 + AuxTail uint64 + Capabilities uint64 + CompatVersion uint32 + DataHead uint64 + DataOffset uint64 + DataSize uint64 + DataTail uint64 + Index uint32 + Lock uint32 + Offset int64 + PmcWidth uint16 + Reserved [118*8 + 4]uint8 + Size uint32 + TimeEnabled uint64 + TimeMult uint32 + TimeOffset uint64 + TimeRunning uint64 + TimeShift uint16 + TimeZero uint64 + Version uint32 + func (p *PerfEventMmapPage) Decode(reader io.ReadSeeker) error + type PerfEventSample struct — linux/amd64 + Size uint32 + func (e *PerfEventSample) DataCopy() []byte + func (e *PerfEventSample) DataDirect() []byte + type ReadState struct — linux/amd64 + Base uint64 + LastSize uint64 + RawSize uint64 + func (r *ReadState) Decode(reader io.ReadSeeker) error + type ReceiveFunc func(msg *PerfEventSample, cpu int) — linux/amd64