ebpfspy

package
v1.38.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0, Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package ebpfspy provides integration with Linux eBPF. It is a rough copy of profile.py from BCC tools:

https://github.com/iovisor/bcc/blob/master/tools/profile.py

Package ebpfspy provides integration with Linux eBPF. It is a rough copy of profile.py from BCC tools:

https://github.com/iovisor/bcc/blob/master/tools/profile.py

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session interface {
	pprof.SamplesCollector
	Start() error
	Stop()
	UpdateTargets()
	SymbolCache() *symtab.SymbolCache
}

func NewSession

func NewSession(targetFinder TargetFinder, sessionOptions SessionOptions) (Session, error)

type SessionOptions

type SessionOptions struct {
	UnknownSymbolModuleOffset bool // use libfoo.so+0xef instead of libfoo.so for unknown symbols
	UnknownSymbolAddress      bool // use 0xcafebabe instead of [unknown]
	PythonEnabled             bool
	IOProfiling               bool
	CacheOptions              symtab.CacheOptions
	SymbolOptions             symtab.SymbolOptions
	SampleRate                int
}

type StackResolveStats

type StackResolveStats struct {
	// contains filtered or unexported fields
}

type Target

type Target struct {
	ServiceName string
	ContainerID string
	Python      bool
}

type TargetFinder

type TargetFinder interface {
	FindTarget(pid uint32) *Target
	RemoveDeadPID(pid uint32)
	Reset(pid uint32)
	Update()
}

Jump to

Keyboard shortcuts

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