krie

package
v0.0.0-...-d7a781d Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BTFHubURL is the URL to BTFHub github repository
	BTFHubURL = "https://github.com/aquasecurity/btfhub-archive/raw/main/%s/%s/x86_64/%s.btf.tar.xz"
)

Variables

This section is empty.

Functions

func Getpid

func Getpid() int32

Getpid returns the current process ID in the host namespace

func NumCPU

func NumCPU() (int, error)

NumCPU returns the count of CPUs in the CPU affinity mask of the pid 1 process

Types

type KRIE

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

KRIE is the main KRIE structure

func NewKRIE

func NewKRIE(options *Options) (*KRIE, error)

NewKRIE creates a new KRIE instance

func (*KRIE) Start

func (e *KRIE) Start() error

Start hooks on the requested symbols and begins tracing

func (*KRIE) Stop

func (e *KRIE) Stop() error

Stop shuts down KRIE

type KernelParameter

type KernelParameter struct {
	Address       uint64
	ExpectedValue uint64
	LastSent      uint64
	Size          uint64
}

type LogLevel

type LogLevel logrus.Level

LogLevel is a wrapper around logrus.Level to unmarshal a log level from yaml

func (*LogLevel) UnmarshalYAML

func (kll *LogLevel) UnmarshalYAML(value *yaml.Node) error

UnmarshalYAML parses a string representation of a logrus log level

type Options

type Options struct {
	LogLevel LogLevel `yaml:"log_level"`
	Output   string   `yaml:"output"`
	VMLinux  string   `yaml:"vmlinux"`

	EventHandler func(data []byte) error `yaml:"-"`

	Events *events.Options `yaml:"events"`
}

Options contains the parameters of KRIE

func NewOptions

func NewOptions() *Options

NewOptions returns a default set of options

func (Options) IsValid

func (o Options) IsValid() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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