cover

package
v0.0.0-...-8742a2b Latest Latest
Warning

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

Go to latest
Published: May 9, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package cover provides types for working with coverage information (arrays of covered PCs).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PreviousInstructionPC

func PreviousInstructionPC(arch string, pc uint64) uint64

func RestorePC

func RestorePC(pc uint32, base uint32) uint64

Types

type Cover

type Cover map[uint32]struct{}

func (*Cover) Merge

func (cov *Cover) Merge(raw []uint32)

func (Cover) Serialize

func (cov Cover) Serialize() []uint32

type Prog

type Prog struct {
	Data string
	PCs  []uint64
}

type ReportGenerator

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

func MakeReportGenerator

func MakeReportGenerator(vmlinux, srcDir, buildDir, arch string) (*ReportGenerator, error)

func (*ReportGenerator) Do

func (rg *ReportGenerator) Do(w io.Writer, progs []Prog) error

Jump to

Keyboard shortcuts

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