Help us shape the future of Go! Take the 2026 Go Developer Survey

bpfprograms

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StackDepth = 127 // Always needs to be sync with MAX_STACK_DEPTH in BPF program.

)

Variables

View Source
var (

	// native programs.
	CPUProgramFD              = uint64(0)
	RubyEntrypointProgramFD   = uint64(1)
	PythonEntrypointProgramFD = uint64(2)
	// rbperf programs.
	RubyUnwinderProgramFD = uint64(0)
	// python programs.
	PythonUnwinderProgramFD = uint64(0)

	ProgramName              = "profile_cpu"
	DWARFUnwinderProgramName = "walk_user_stacktrace_impl"
)

Functions

func OpenNative

func OpenNative() ([]byte, error)

func OpenPython

func OpenPython() ([]byte, error)

func OpenRuby

func OpenRuby() ([]byte, error)

Types

type CombinedStack

type CombinedStack [tripleStackDepth]uint64

Jump to

Keyboard shortcuts

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