host

package
v0.0.0-...-d374ac5 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

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
}

Jump to

Keyboard shortcuts

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