# Packages
Package basehash provides basic types to implement hash identifiers.
Package hash provides the same hash primitives as used by the eBPF.
package pfelf implements functions for processing of ELF files and extracting data from them.
No description provided by the author
Package xsync provides thin wrappers around locking primitives in an effort towards better documenting the relationship between locks and the data they protect.
# Functions
AddJitter adds +/- jitter (jitter is [0..1]) to baseDuration.
FileIDFromBase64 converts a base64url encoded file ID into its binary representation.
FileIDFromBytes parses a byte slice into the internal data representation for a file ID.
FileIDFromExecutableFile opens an executable file and calculates the FileID for it.
FileIDFromExecutableReader hashes portions of the contents of the reader in order to generate a system-independent identifier.
FileIDFromKernelBuildID returns the FileID of a kernel image or module, which consists of a hash of its GNU BuildID in hex string form.
FileIDFromString parses a hexadecimal notation of a file ID into the internal data representation.
No description provided by the author
No description provided by the author
LookupCgroupv2 returns the cgroupv2 ID for pid.
MapKeysToSlice creates a slice from a map's keys.
MapSlice returns a new slice by mapping given function over the input slice.
MapValuesToSlice creates a slice from a map's values.
No description provided by the author
NewFrameID creates a new FrameID from the fileId and address or line.
NewFrameIDFromBytes creates a new FrameID from a byte array of length 24.
NewFrameIDFromString creates a new FrameID from its base64 string representation.
No description provided by the author
No description provided by the author
NowAsUInt32 is a convenience function to avoid code repetition.
SleepWithJitter sleeps for baseDuration +/- jitter (jitter is [0..1]).
SleepWithJitterAndContext blocks for duration +/- jitter (jitter is [0..1]) or until ctx is canceled.
SliceAllEqual checks whether all items in a slice have a given value.
SliceFrom converts a Go struct pointer or slice to []byte to read data into.
SlicesEqual checks whether two slices are element-wise equal.
SliceToSet creates a set from a slice, deduplicating it.
TraceHashFromBytes parses a byte slice of a trace hash into the internal data representation.
# Constants
AbortFrame identifies frames that report that further unwinding was aborted due to an error.
APMInt identifies the pseudo-interpreter for the APM integration.
Dotnet identifies the Dotnet interpreter.
DotnetFrame identifies the Dotnet interpreter frames.
HotSpot identifies the Java HotSpot VM.
HotSpotFrame identifies Java HotSpot VM frames.
Kernel identifies kernel code.
KernelFrame identifies kernel frames.
Native identifies native code.
NativeFrame identifies native frames.
Perl identifies the Perl interpreter.
PerlFrame identifies the Perl interpreter frames.
PHP identifies the PHP interpreter.
PHPFrame identifies PHP interpreter frames.
PHPJIT identifies PHP JIT processes.
PHPJITFrame identifies PHP JIT interpreter frames.
Python identifies the Python interpreter.
PythonFrame identifies the Python interpreter frames.
Ruby identifies the Ruby interpreter.
RubyFrame identifies the Ruby interpreter frames.
SymbolNameUnknown is the value returned by SymbolMap functions when address has no symbol info.
SymbolValueInvalid is the value returned by SymbolMap functions when symbol was not found.
UnknownInterp signifies that the interpreter is unknown.
V8 identifies the V8 interpreter.
V8Frame identifies the V8 interpreter frames.
# Variables
No description provided by the author
UnknownKernelFileID is used as 128-bit FileID when the host agent isn't able to derive a FileID for a kernel frame.
UnsymbolizedFileID is used as 128-bit FileID when symbolization fails.
# Structs
FileID is used for unique identifiers for files.
FrameID represents a frame as an address in an executable file or as a line in a source code file.
No description provided by the author
Symbol represents the name of a symbol.
SymbolMap represents collections of symbols that can be resolved or reverse mapped.
Trace represents a stack trace.
No description provided by the author
TraceHash represents the unique hash of a trace.
Void allows to use maps as sets without memory allocation for the values.
# Interfaces
SymbolFinder implements a way to find symbol data.
# Type aliases
Address represents an address, or offset within a process.
AddressOrLineno represents a line number in an interpreted file or an offset into a native file.
No description provided by the author
No description provided by the author
No description provided by the author
FrameType defines the type of frame.
InterpreterType variables can hold one of the interpreter type values defined below.
PID represent Unix Process ID (pid_t).
Set is a convenience alias for a map with a `Void` key.
SourceLineno represents a line number within a source file.
SymbolName represents the name of a symbol.
SymbolValue represents the value associated with a symbol, e.g.
UnixTime32 is another type to represent seconds since epoch.
UnixTime64 represents nanoseconds since epoch.