inject

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InjectStructField

type InjectStructField struct {
	VarName    string
	StructName string
	Field      string
}

type Injector

type Injector struct {
	// contains filtered or unexported fields
}

func New

func New(target *process.TargetDetails) (*Injector, error)

func (*Injector) Inject

func (i *Injector) Inject(loadBpf loadBpfFunc, library string, libVersion string, fields []*InjectStructField) (*ebpf.CollectionSpec, error)

type TrackedDataMember

type TrackedDataMember struct {
	Struct  string            `json:"struct"`
	Field   string            `json:"field_name"`
	Offsets []VersionedOffset `json:"offsets"`
}

type TrackedLibrary

type TrackedLibrary struct {
	Name        string              `json:"name"`
	DataMembers []TrackedDataMember `json:"data_members"`
}

type TrackedOffsets

type TrackedOffsets struct {
	Data []TrackedLibrary `json:"data"`
}

type VersionedOffset

type VersionedOffset struct {
	Offset  uint64 `json:"offset"`
	Version string `json:"version"`
}

Jump to

Keyboard shortcuts

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