Documentation
¶
Overview ¶
support maps the definitions from headers in the C world into a nice go way
Index ¶
- Constants
- func DecodeBiasAndUnwindProgram(biasAndUnwindProgram uint64) (bias uint64, unwindProgram uint8)
- func EncodeBiasAndUnwindProgram(bias uint64, unwindProgram uint8) (uint64, error)
- func LoadCollectionSpec() (*cebpf.CollectionSpec, error)
- type ApmIntProcInfo
- type DotnetProcInfo
- type PHPProcInfo
- type RubyProcInfo
Constants ¶
View Source
const ( FrameMarkerUnknown = 0x0 FrameMarkerErrorBit = 0x80 FrameMarkerPython = 0x1 FrameMarkerNative = 0x3 FrameMarkerPHP = 0x2 FrameMarkerPHPJIT = 0x9 FrameMarkerKernel = 0x4 FrameMarkerHotSpot = 0x5 FrameMarkerRuby = 0x6 FrameMarkerPerl = 0x7 FrameMarkerV8 = 0x8 FrameMarkerDotnet = 0xa FrameMarkerGo = 0xb FrameMarkerAbort = 0xff )
View Source
const ( ProgUnwindStop = 0x0 ProgUnwindNative = 0x1 ProgUnwindHotspot = 0x2 ProgUnwindPython = 0x4 ProgUnwindPHP = 0x5 ProgUnwindRuby = 0x6 ProgUnwindPerl = 0x3 ProgUnwindV8 = 0x7 ProgUnwindDotnet = 0x8 ProgGoLabels = 0x9 )
View Source
const ( DeltaCommandFlag = 0x8000 MergeOpcodeNegative = 0x80 )
View Source
const ( BitWidthPID = 0x20 BitWidthPage = 0x40 )
View Source
const ( StackDeltaBucketSmallest = 0x8 StackDeltaBucketLargest = 0x17 StackDeltaPageBits = 0x10 StackDeltaPageMask = 0xffff )
View Source
const ( HSTSIDIsStubBit = 0x3f HSTSIDHasFrameBit = 0x3e HSTSIDStackDeltaBit = 0x38 HSTSIDStackDeltaMask = 0x3f HSTSIDStackDeltaScale = 0x8 HSTSIDSegMapBit = 0x0 HSTSIDSegMapMask = 0xffffffffffffff )
View Source
const ( TraceOriginUnknown = 0x0 TraceOriginSampling = 0x1 TraceOriginOffCPU = 0x2 )
View Source
const ( UnwindOpcodeCommand uint8 = 0x0 UnwindOpcodeBaseCFA uint8 = 0x1 UnwindOpcodeBaseSP uint8 = 0x2 UnwindOpcodeBaseFP uint8 = 0x3 UnwindOpcodeBaseLR uint8 = 0x4 UnwindOpcodeBaseReg uint8 = 0x5 UnwindOpcodeFlagDeref uint8 = 0x80 UnwindCommandInvalid int32 = 0x0 UnwindCommandStop int32 = 0x1 UnwindCommandPLT int32 = 0x2 UnwindCommandSignal int32 = 0x3 UnwindCommandFramePointer int32 = 0x4 UnwindDerefMask int32 = 0x7 UnwindDerefMultiplier int32 = 0x8 )
View Source
const (
EventTypeGenericPID = 0x1
)
View Source
const MaxFrameUnwinds = 0x80
View Source
const (
MetricIDBeginCumulative = 0x62
)
View Source
const (
PerfMaxStackDepth = 0x7f
)
Variables ¶
This section is empty.
Functions ¶
func DecodeBiasAndUnwindProgram ¶
DecodeBiasAndUnwindProgram decodes the contents of the `bias_and_unwind_program` field in C.PIDPageMappingInfo and returns the corresponding bias and unwind program.
func EncodeBiasAndUnwindProgram ¶
EncodeBiasAndUnwindProgram encodes a bias_and_unwind_program value (for C.PIDPageMappingInfo) from a bias and unwind program values. This currently assumes a non-negative bias: this encoding may have to be changed if bias can be negative.
func LoadCollectionSpec ¶
func LoadCollectionSpec() (*cebpf.CollectionSpec, error)
LoadCollectionSpec is a wrapper around ebpf.LoadCollectionSpecFromReader and loads the eBPF Spec from the embedded file. We expect tracerData to hold all possible eBPF maps and programs.
Types ¶
type ApmIntProcInfo ¶
type ApmIntProcInfo struct {
Offset uint64
}
type DotnetProcInfo ¶
type DotnetProcInfo struct {
Version uint32
}
type PHPProcInfo ¶
type RubyProcInfo ¶
Click to show internal directories.
Click to hide internal directories.