cover

package
v0.0.0-...-f6f6578 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: MIT, Apache-2.0 Imports: 20 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(target *targets.Target, 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 Kcov_config

type Kcov_config struct {
	NumMod uint64
	Mods   []Kcov_head
}

func (*Kcov_config) Delete

func (mods *Kcov_config) Delete(raw []uint32)

func (*Kcov_config) LoadKCov

func (mods *Kcov_config) LoadKCov(path string) error

func (*Kcov_config) SaveKCov

func (mods *Kcov_config) SaveKCov(path string)

type Kcov_head

type Kcov_head struct {
	Name   [64]byte
	NumCov uint64
	Cover  map[uint64]struct{}
}

type Prog

type Prog struct {
	Data string
	PCs  []uint64
}

type ReportGenerator

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

func MakeReportGenerator

func MakeReportGenerator(target *targets.Target, kernelObject, srcDir, buildDir 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