loader

package
v0.0.0-...-26b7867 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

+build i386 amd64

+build i386 amd64

Index

Constants

This section is empty.

Variables

View Source
var InvalidSetupHeader = errors.New("Setup header past page boundary?")

Linux errors.

View Source
var Linux32Convention = Convention{
	// contains filtered or unexported fields
}
View Source
var Linux64Convention = Convention{
	// contains filtered or unexported fields
}

Functions

func ElfLoad

func ElfLoad(
	data []byte,
	model *machine.Model) (uint64, bool, error)

func LoadLinux

func LoadLinux(
	vcpu *platform.Vcpu,
	model *machine.Model,
	boot_params string,
	vmlinux string,
	initrd string,
	cmdline string,
	system_map string) (SystemMap, *Convention, error)

func SetupLinux

func SetupLinux(
	vcpu *platform.Vcpu,
	model *machine.Model,
	orig_boot_data []byte,
	entry_point uint64,
	is_64bit bool,
	initrd_addr platform.Paddr,
	initrd_len uint64,
	cmdline_addr platform.Paddr) error

func SetupLinuxBootParams

func SetupLinuxBootParams(
	model *machine.Model,
	boot_params_data []byte,
	orig_boot_params_data []byte,
	cmdline_addr platform.Paddr,
	initrd_addr platform.Paddr,
	initrd_len uint64) error

Types

type Convention

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

type LinuxSystemMap

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

func (*LinuxSystemMap) Lookup

func (sysmap *LinuxSystemMap) Lookup(
	addr platform.Vaddr) (string, uint64)

type SystemMap

type SystemMap interface {
	Lookup(addr platform.Vaddr) (string, uint64)
}

func LoadLinuxSystemMap

func LoadLinuxSystemMap(
	system_map string) (SystemMap, error)

type Tracer

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

func NewTracer

func NewTracer(sysmap SystemMap, convention *Convention) *Tracer

func (*Tracer) Disable

func (tracer *Tracer) Disable()

func (*Tracer) Enable

func (tracer *Tracer) Enable()

func (*Tracer) IsEnabled

func (tracer *Tracer) IsEnabled() bool

func (*Tracer) Trace

func (tracer *Tracer) Trace(vcpu *platform.Vcpu, step bool) error

Jump to

Keyboard shortcuts

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