host

package
v0.0.0-...-dbcdc5d Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package host implements types and methods specific to interacting with eBPF maps.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileID

type FileID uint64

FileID is used for unique identifiers for files, and is required to be 64-bits due to the constraints imposed by the eBPF maps, unlike the larger FileID used outside the host agent.

func FileIDFromBytes

func FileIDFromBytes(b []byte) (FileID, error)

FileIDFromBytes parses a byte slice into the internal data representation for a file ID.

func FileIDFromLibpf

func FileIDFromLibpf(id libpf.FileID) FileID

FileIDFromLibpf truncates a libpf.FileID to be a host.FileID.

func (FileID) StringNoQuotes

func (fid FileID) StringNoQuotes() string

type Frame

type Frame struct {
	File          FileID
	Lineno        libpf.AddressOrLineno
	Type          libpf.FrameType
	ReturnAddress bool
}

type Trace

type Trace struct {
	Comm             string
	Executable       string
	Frames           []Frame
	Hash             TraceHash
	KTime            times.KTime
	PID              libpf.PID
	TID              libpf.PID
	APMTraceID       libpf.APMTraceID
	APMTransactionID libpf.APMTransactionID
	CPU              int
}

type TraceHash

type TraceHash uint64

TraceHash is used for unique identifiers for traces, and is required to be 64-bits due to the constraints imposed by the eBPF maps, unlike the larger TraceHash used outside the host agent.

Jump to

Keyboard shortcuts

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