Documentation ¶
Index ¶
- func DWARF(path string) (*dwarf.Data, error)
- func DumpSection(path, sec string) error
- func FindAllCoverPoints(path string) ([2][]uint64, error)
- func FindAllCoverPointsInRelaSec(path string) ([2][]uint64, error)
- func FindAllPCs(path string, filterTracePC bool) ([]uint64, error)
- func FindAllSymbols(path string) ([]elf.Symbol, error)
- func FindAllSymbolsInSec(path, sec string) ([]elf.Symbol, error)
- func GenLineEntries(path string) error
- func GenLineFiles(path string) error
- func GetLineEntryByAddr(path string, pc uint64) (*dwarf.LineEntry, error)
- func GetSectionByName(file *elf.File, sec string) (*elf.Section, error)
- func GetSectionIdx(path, sec string) (int, error)
- func IsSectionExist(path, sec string) bool
- type Arch
- type DWARFCompileUnit
- type DWARFFunction
- type Frame
- type TracePCInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpSection ¶
func FindAllCoverPoints ¶
ReadCoverPoints finds all coverage points (calls of __sanitizer_cov_trace_*) in the object file. Currently it is [amd64|arm64]-specific: looks for opcode and correct offset. Running objdump on the whole object file is too slow.
func GenLineEntries ¶
func GenLineFiles ¶
func GetSectionIdx ¶
func IsSectionExist ¶
Types ¶
type DWARFCompileUnit ¶
type DWARFCompileUnit struct { FilePath string Dwarf *dwarf.Data Entry *dwarf.Entry Name string CompDir string Ranges [][2]uint64 }
func FindAllCompileUnits ¶
func FindAllCompileUnits(path string) ([]*DWARFCompileUnit, error)
func GetCompileUnitByAddr ¶
func GetCompileUnitByAddr(path string, pc uint64) (*DWARFCompileUnit, error)
func (*DWARFCompileUnit) GetSubprogramByAddr ¶
func (cu *DWARFCompileUnit) GetSubprogramByAddr(pc uint64) (*DWARFFunction, error)
type DWARFFunction ¶
type DWARFFunction struct { DwarfCompileUnit *DWARFCompileUnit OriginAbstract *DWARFFunction Type dwarf.Tag Name string Ranges [][2]uint64 DeclFile string DeclLine int CallFile string CallLine int CallColumn int Inline bool Offset dwarf.Offset Depth int }
func FindAllFuncs ¶
func FindAllFuncs(path string) ([]*DWARFFunction, error)
func FindAllFuncsInCUByAddr ¶
func FindAllFuncsInCUByAddr(path string, pc uint64) ([]*DWARFFunction, error)
func (*DWARFFunction) GetSubroutinesBySubprogram ¶
func (sp *DWARFFunction) GetSubroutinesBySubprogram() ([]*DWARFFunction, error)
type TracePCInfo ¶
type TracePCInfo struct {
// contains filtered or unexported fields
}
func GetTracePCInfo ¶
func GetTracePCInfo(path string) (*TracePCInfo, error)
Click to show internal directories.
Click to hide internal directories.