vminfo

package
v0.0.0-...-ef5d53e Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package vminfo extracts information about the target VM. The package itself runs on the host, which may be a different OS/arch. User of the package first requests set of files that needs to be fetched from the VM and set of test programs that needs to be executed in the VM (Checker.RequiredThings), then fetches these files and executes test programs, and calls Checker.MachineInfo to parse the files and extract information about the VM, and optionally calls Checker.Check to obtain list of enabled/disabled syscalls. The information includes information about kernel modules and OS-specific info (for Linux that includes things like parsed /proc/cpuinfo).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

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

func New

func New(cfg *mgrconfig.Config) *Checker

func (*Checker) FinishCheck

func (checker *Checker) FinishCheck(files []flatrpc.FileInfo, progs []rpctype.ExecutionResult,
	featureInfos []flatrpc.FeatureInfo) (map[*prog.Syscall]bool, map[*prog.Syscall]string, Features, error)

func (*Checker) MachineInfo

func (checker *Checker) MachineInfo(fileInfos []flatrpc.FileInfo) ([]cover.KernelModule, []byte, error)

func (*Checker) StartCheck

func (checker *Checker) StartCheck() ([]string, []rpctype.ExecutionRequest)

type Feature

type Feature struct {
	Enabled   bool
	NeedSetup bool
	Reason    string
}

type Features

type Features map[flatrpc.Feature]Feature

func (Features) Enabled

func (features Features) Enabled() flatrpc.Feature

func (Features) NeedSetup

func (features Features) NeedSetup() flatrpc.Feature

Jump to

Keyboard shortcuts

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