bpfprograms

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 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