repro

package
v0.0.0-...-c87fa8a Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 18 Imported by: 36

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyCrashLog = errors.New("no programs")
View Source
var ErrNoVMs = errors.New("all VMs failed to boot")

Functions

func Run

func Run(ctx context.Context, log []byte, env Environment) (*Result, *Stats, error)

Types

type Environment

type Environment struct {
	Config   *mgrconfig.Config
	Features flatrpc.Feature
	Reporter *report.Reporter
	Pool     *vm.Dispatcher
	// The Fast repro mode restricts the repro log bisection,
	// it skips multiple simpifications and C repro generation.
	Fast bool
}

type Result

type Result struct {
	Prog     *prog.Prog
	Duration time.Duration
	Opts     csource.Options
	CRepro   bool
	// Information about the final (non-symbolized) crash that we reproduced.
	// Can be different from what we started reproducing.
	Report *report.Report
}

type Simplify

type Simplify func(opts *csource.Options) bool

type Stats

type Stats struct {
	Log              []byte
	TotalTime        time.Duration
	ExtractProgTime  time.Duration
	MinimizeProgTime time.Duration
	SimplifyProgTime time.Duration
	ExtractCTime     time.Duration
	SimplifyCTime    time.Duration
}

func (*Stats) FullLog

func (stats *Stats) FullLog() []byte

type StraceResult

type StraceResult struct {
	Report *report.Report
	Output []byte
	Error  error
}

func RunStrace

func RunStrace(result *Result, cfg *mgrconfig.Config, reporter *report.Reporter, pool *vm.Dispatcher) *StraceResult

func (*StraceResult) IsSameBug

func (strace *StraceResult) IsSameBug(repro *Result) bool

Jump to

Keyboard shortcuts

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