host

package
Version: v0.0.0-...-fd51180 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: Apache-2.0 Imports: 21 Imported by: 11

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func CollectGlobsInfo

func CollectGlobsInfo(globs map[string]bool) (map[string][]string, error)

func CollectMachineInfo

func CollectMachineInfo() ([]byte, error)

func DetectSupportedSyscalls

func DetectSupportedSyscalls(target *prog.Target, sandbox string) (
	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 KcovRemoteArg

type KcovRemoteArg struct {
	TraceMode  uint32
	AreaSize   uint32
	NumHandles uint32

	CommonHandle uint64
	// contains filtered or unexported fields
}

type KernelModule

type KernelModule struct {
	Name string
	Addr uint64
}

func CollectModulesInfo

func CollectModulesInfo() ([]KernelModule, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to