config

package
v0.0.0-...-bbc9ce3 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Handle       HandleSubtype = "handle"
	Bti                        = "bti"
	Channel                    = "channel"
	Clock                      = "clock"
	DebugLog                   = "debuglog"
	Event                      = "event"
	Eventpair                  = "eventpair"
	Exception                  = "exception"
	Fifo                       = "fifo"
	Guest                      = "guest"
	Interrupt                  = "interrupt"
	Iommu                      = "iommu"
	Job                        = "job"
	Pager                      = "pager"
	PciDevice                  = "pcidevice"
	Pmt                        = "pmt"
	Port                       = "port"
	Process                    = "process"
	Profile                    = "profile"
	Resource                   = "resource"
	Socket                     = "socket"
	Stream                     = "stream"
	SuspendToken               = "suspendtoken"
	Thread                     = "thread"
	Time                       = "timer"
	Vcpu                       = "vcpu"
	Vmar                       = "vmar"
	Vmo                        = "vmo"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Benchmark

type Benchmark struct {
	Name                     string
	Comment                  string
	Config                   Config
	HandleDefs               []HandleDef
	Allowlist                []Binding
	Denylist                 []Binding
	EnableSendEventBenchmark bool
	EnableEchoCallBenchmark  bool
}

type Binding

type Binding string
const (
	HLCPP Binding = "hlcpp"
	LLCPP Binding = "llcpp"
	Dart  Binding = "dart"
	Rust  Binding = "rust"
	Go    Binding = "go"
	// GIDL only. Uses "LLCPP" for FIDL inputs.
	Walker    Binding = "walker"
	Reference Binding = "reference"
)

type Config

type Config map[ConfigKey]interface{}

func (Config) Get

func (c Config) Get(key ConfigKey) interface{}

func (Config) GetInt

func (c Config) GetInt(key ConfigKey) int

type ConfigKey

type ConfigKey string

type Definition

type Definition struct {
	Comment  string
	Config   Config
	Denylist []Binding
}

type FidlFile

type FidlFile struct {
	Filename        string
	Gen             func(Config) (string, error)
	ExtraDefinition string
	Definitions     []Definition
}

type GidlFile

type GidlFile struct {
	Filename   string
	Gen        func(Config) (string, error)
	Benchmarks []Benchmark
}

type HandleDef

type HandleDef struct {
	Subtype HandleSubtype
}

type HandleSubtype

type HandleSubtype string

Jump to

Keyboard shortcuts

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