Documentation ¶
Index ¶
- Constants
- func CleanPath(path, objDir, srcDir, buildDir string, splitBuildDelimiters []string) (string, string)
- func DiscoverModules(target *targets.Target, objDir string, moduleObj []string) ([]*vminfo.KernelModule, error)
- func FixModules(localModules, modules []*vminfo.KernelModule, pcBase uint64) []*vminfo.KernelModule
- func GetPCBase(cfg *mgrconfig.Config) (uint64, error)
- func NextInstructionPC(target *targets.Target, vm string, pc uint64) uint64
- func PreviousInstructionPC(target *targets.Target, vm string, pc uint64) uint64
- type Arch
- type CompileUnit
- type Frame
- type Impl
- type ObjectUnit
- type Range
- type Result
- type SecRange
- type Symbol
Constants ¶
View Source
const ( TraceCbNone int = iota TraceCbPc TraceCbCmp )
View Source
const LineEnd = 1 << 30
Variables ¶
This section is empty.
Functions ¶
func DiscoverModules ¶
func FixModules ¶
func FixModules(localModules, modules []*vminfo.KernelModule, pcBase uint64) []*vminfo.KernelModule
when CONFIG_RANDOMIZE_BASE=y, pc from kcov already removed kaslr_offset.
func NextInstructionPC ¶
Types ¶
type CompileUnit ¶
type CompileUnit struct { ObjectUnit Path string Module *vminfo.KernelModule }
type Impl ¶
type Impl struct { Units []*CompileUnit Symbols []*Symbol Frames []Frame Symbolize func(pcs map[*vminfo.KernelModule][]uint64) ([]Frame, error) CallbackPoints []uint64 PreciseCoverage bool }
type ObjectUnit ¶
type ObjectUnit struct { Name string PCs []uint64 // PCs we can get in coverage callbacks for this unit. CMPs []uint64 // PCs we can get in comparison interception callbacks for this unit. }
ObjectUnit represents either CompileUnit or Symbol.
type Symbol ¶
type Symbol struct { ObjectUnit Module *vminfo.KernelModule Unit *CompileUnit Start uint64 End uint64 Symbolized bool }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.