ebpfspy

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 19 Imported by: 1

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 {
	Start() error
	Stop()
	Update(SessionOptions) error
	CollectProfiles(f func(target *sd.Target, stack []string, value uint64, pid uint32)) error
	DebugInfo() interface{}
}

func NewSession

func NewSession(
	logger log.Logger,
	targetFinder sd.TargetFinder,

	sessionOptions SessionOptions,
) (Session, error)

type SessionDebugInfo

type SessionDebugInfo struct {
	ElfCache symtab.ElfCacheDebugInfo                          `river:"elf_cache,attr,optional"`
	PidCache symtab.GCacheDebugInfo[symtab.ProcTableDebugInfo] `river:"pid_cache,attr,optional"`
}

type SessionOptions

type SessionOptions struct {
	CollectUser   bool
	CollectKernel bool
	CacheOptions  symtab.CacheOptions
	SampleRate    int
}

Directories

Path Synopsis
cmd
this is a copied version of https://github.com/cilium/ebpf/blob/main/rlimit/rlimit.go with the following changes: 1.
this is a copied version of https://github.com/cilium/ebpf/blob/main/rlimit/rlimit.go with the following changes: 1.
elf

Jump to

Keyboard shortcuts

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