MCPcopy Create free account
hub / github.com/google/pprof / ObjTool

Interface ObjTool

internal/plugin/plugin.go:109–120  ·  view source on GitHub ↗

An ObjTool inspects shared libraries and executable files.

Source from the content-addressed store, hash-verified

107
108// An ObjTool inspects shared libraries and executable files.
109type ObjTool interface {
110 // Open opens the named object file. If the object is a shared
111 // library, start/limit/offset are the addresses where it is mapped
112 // into memory in the address space being inspected. If the object
113 // is a linux kernel, relocationSymbol is the name of the symbol
114 // corresponding to the start address.
115 Open(file string, start, limit, offset uint64, relocationSymbol string) (ObjFile, error)
116
117 // Disasm disassembles the named object file, starting at
118 // the start address and stopping at (before) the end address.
119 Disasm(file string, start, end uint64, intelSyntax bool) ([]Inst, error)
120}
121
122// An Inst is a single instruction in an assembly listing.
123type Inst struct {

Callers

nothing calls this directly

Implementers 7

Binutilsinternal/binutils/binutils.go
testObjinternal/driver/fetch_test.go
fakeObjToolinternal/driver/webui_test.go
mockObjToolinternal/driver/driver_test.go
mockObjToolinternal/symbolizer/symbolizer_test.go
internalObjTooldriver/driver.go
fakeObjToolbrowsertests/testutils.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…