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 ExtractConsts(desc *ast.Description, target *targets.Target, eh ast.ErrorHandler) map[string]*ConstInfo
- func FabricateSyscallConsts(target *targets.Target, constInfo map[string]*ConstInfo, cf *ConstFile)
- func FileList(desc *ast.Description, OS string, eh ast.ErrorHandler) map[string]Meta
- func Fuzz(data []byte) int
- type Const
- type ConstFile
- type ConstInfo
- type Meta
- 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 ExtractConsts ¶
func ExtractConsts(desc *ast.Description, target *targets.Target, eh ast.ErrorHandler) map[string]*ConstInfo
func FabricateSyscallConsts ¶
FabricateSyscallConsts adds syscall number constants to consts map. Used for test OS to not bother specifying consts for all syscalls.
func FileList ¶
func FileList(desc *ast.Description, OS string, eh ast.ErrorHandler) map[string]Meta
Types ¶
type ConstFile ¶
type ConstFile struct {
// contains filtered or unexported fields
}
ConstFile serializes/deserializes .const files.
func DeserializeConstFile ¶
func DeserializeConstFile(glob string, eh ast.ErrorHandler) *ConstFile
func NewConstFile ¶
func NewConstFile() *ConstFile
type Meta ¶
type Meta struct { Automatic bool // automatically-generated descriptions NoExtract bool // do not run syz-extract on the descriptions by default Arches map[string]bool }
func (Meta) SupportsArch ¶
Click to show internal directories.
Click to hide internal directories.