host

package
v0.0.0-...-8bdc0f2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 21 Imported by: 85

Documentation

Index

Constants

View Source
const (
	FeatureCoverage = iota
	FeatureComparisons
	FeatureExtraCoverage
	FeatureDelayKcovMmap
	FeatureSandboxSetuid
	FeatureSandboxNamespace
	FeatureSandboxAndroid
	FeatureFault
	FeatureLeak
	FeatureNetInjection
	FeatureNetDevices
	FeatureKCSAN
	FeatureDevlinkPCI
	FeatureNicVF
	FeatureUSBEmulation
	FeatureVhciInjection
	FeatureWifiEmulation
	Feature802154Emulation
	FeatureSwap
)

Variables

This section is empty.

Functions

func DetectSupportedSyscalls

func DetectSupportedSyscalls(target *prog.Target, sandbox string, enabled map[*prog.Syscall]bool) (
	map[*prog.Syscall]bool, map[*prog.Syscall]string, error)

DetectSupportedSyscalls returns list on supported and unsupported syscalls on the host. For unsupported syscalls it also returns reason as to why it is unsupported.

func Setup

func Setup(target *prog.Target, features *Features, featureFlags csource.Features, executor string) error

Setup enables and does any one-time setup for the requested features on the host. Note: this can be called multiple times and must be idempotent.

Types

type Feature

type Feature struct {
	Name    string
	Enabled bool
	Reason  string
}

type Features

type Features [numFeatures]Feature

func Check

func Check(target *prog.Target) (*Features, error)

Check detects features supported on the host. Empty string for a feature means the feature is supported, otherwise the string contains the reason why the feature is not supported.

func (*Features) Supported

func (features *Features) Supported() *Features

type FileInfo

type FileInfo struct {
	Name   string
	Exists bool
	Error  string
	Data   []byte
}

func ReadFiles

func ReadFiles(files []string) []FileInfo

type KcovRemoteArg

type KcovRemoteArg struct {
	TraceMode  uint32
	AreaSize   uint32
	NumHandles uint32

	CommonHandle uint64
	// contains filtered or unexported fields
}

type KernelModule

type KernelModule struct {
	Name string `json:"Name"`
	Addr uint64 `json:"Addr"`
	Size uint64 `json:"Size"`
}

Jump to

Keyboard shortcuts

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