Documentation ¶
Overview ¶
Package compiler generates sys descriptions of syscalls, types and resources from textual descriptions.
Package compiler generates sys descriptions of syscalls, types and resources from textual descriptions.
Index ¶
- func CollectUnused(desc *ast.Description, target *targets.Target, eh ast.ErrorHandler) ([]ast.Node, error)
- func DeserializeConsts(data []byte, file string, eh ast.ErrorHandler) map[string]uint64
- func DeserializeConstsGlob(glob string, eh ast.ErrorHandler) map[string]uint64
- func ExtractConsts(desc *ast.Description, target *targets.Target, eh ast.ErrorHandler) map[string]*ConstInfo
- func Fuzz(data []byte) int
- func SerializeConsts(consts map[string]uint64, undeclared map[string]bool) []byte
- type ConstInfo
- type Prog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectUnused ¶
func CollectUnused(desc *ast.Description, target *targets.Target, eh ast.ErrorHandler) ([]ast.Node, error)
func DeserializeConsts ¶
func DeserializeConstsGlob ¶
func DeserializeConstsGlob(glob string, eh ast.ErrorHandler) map[string]uint64
func ExtractConsts ¶
func ExtractConsts(desc *ast.Description, target *targets.Target, eh ast.ErrorHandler) map[string]*ConstInfo
Types ¶
type Prog ¶
type Prog struct { Resources []*prog.ResourceDesc Syscalls []*prog.Syscall StructDescs []*prog.KeyedStruct // Set of unsupported syscalls/flags. Unsupported map[string]bool // contains filtered or unexported fields }
Prog is description compilation result.
Click to show internal directories.
Click to hide internal directories.