Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bradfitz/shotizam
/ functions
Functions
87 in github.com/bradfitz/shotizam
⨍
Functions
87
◇
Types & classes
18
↓ 9 callers
Method
field
field returns the nth field of the _func struct. It panics if n == 0; for n == 0, call f.entryPC. Most callers should use a named field accessor (just
gosym/pclntab.go:476
↓ 5 callers
Method
pc
pc returns the PC of the i'th func in f.
gosym/pclntab.go:417
↓ 4 callers
Method
funcTab
funcTab returns t's funcTab.
gosym/pclntab.go:400
↓ 4 callers
Method
functabFieldSize
functabFieldSize returns the size in bytes of a single functab field.
gosym/pclntab.go:392
↓ 4 callers
Method
tableSize
(off uint32)
gosym/extra.go:27
↓ 3 callers
Method
PackageName
PackageName returns the package part of the symbol name, or the empty string if there is none.
gosym/symtab.go:62
↓ 3 callers
Method
cuOffset
()
gosym/pclntab.go:471
↓ 3 callers
Method
entryPC
entryPC returns the func's entry PC.
gosym/pclntab.go:456
↓ 3 callers
Method
funcData
funcData returns the ith funcData in t.functab.
gosym/pclntab.go:445
↓ 3 callers
Method
isGo12
Go 1.2 symbol table format. See golang.org/s/go12symtab. A general note about the methods here: rather than try to avoid index out of bounds errors,
gosym/pclntab.go:168
↓ 3 callers
Method
nameWithoutInst
nameWithoutInst returns s.Name if s.Name has no brackets (does not reference an instantiated type, function, or method). If s.Name contains brackets,
gosym/symtab.go:47
↓ 3 callers
Method
parse
(targetPC uint64, targetLine int)
gosym/pclntab.go:81
↓ 3 callers
Method
pcfile
()
gosym/pclntab.go:469
↓ 3 callers
Method
pcln
()
gosym/pclntab.go:470
↓ 3 callers
Function
sqlString
(s string)
shotizam.go:390
↓ 3 callers
Method
step
step advances to the next pc, value pair in the encoded table.
gosym/pclntab.go:492
↓ 3 callers
Method
stringFrom
stringFrom returns a Go string found at off from a position.
gosym/pclntab.go:376
↓ 3 callers
Method
uintptr
uintptr returns the pointer-sized value encoded at b. The pointer size is dictated by the table being read.
gosym/pclntab.go:182
↓ 2 callers
Method
Count
Count returns the number of func entries in f.
gosym/pclntab.go:412
↓ 2 callers
Method
IsZero
IsZero reports whether f is the zero value.
gosym/pclntab.go:451
↓ 2 callers
Function
Open
(ra io.ReaderAt, size int64)
shotizam.go:43
↓ 2 callers
Method
PCToFunc
PCToFunc returns the function containing the program counter pc, or nil if there is no such function.
gosym/symtab.go:550
↓ 2 callers
Method
PtrSize
()
gosym/extra.go:8
↓ 2 callers
Method
findFunc
findFunc returns the funcData corresponding to the given program counter.
gosym/pclntab.go:336
↓ 2 callers
Method
funcOff
funcOff returns the funcdata offset of the i'th func in f.
gosym/pclntab.go:426
↓ 2 callers
Method
go12PCToLine
go12PCToLine maps program counter to line number for the Go 1.2+ pcln table.
gosym/pclntab.go:573
↓ 2 callers
Function
goPackageOfName
_type..eq.crypto/elliptic.CurveParams _vendor/golang.org/x/net/route.errInvalidAddr _context.(*emptyCtx).Err _compress/gzip.(*Reader).Read _go.itab.*t
cmd/oldgosize/gosize.go:120
↓ 2 callers
Method
initFileMap
initFileMap initializes the map from file name to file number.
gosym/pclntab.go:660
↓ 2 callers
Function
isHexChar
(b byte)
cmd/oldgosize/gosize.go:181
↓ 2 callers
Method
nfuncdataFieldNum
()
gosym/extra.go:91
↓ 2 callers
Method
pcvalue
pcvalue reports the value associated with the target pc. off is the offset to the beginning of the pc-value table, and entry is the start PC for the c
gosym/pclntab.go:512
↓ 2 callers
Function
printSortedMap
(m map[string]int64)
cmd/oldgosize/gosize.go:187
↓ 2 callers
Method
readvarint
readvarint reads, removes, and returns a varint from *pp.
gosym/pclntab.go:349
↓ 2 callers
Function
recMap
(recs []Rec)
shotizam.go:438
↓ 2 callers
Method
string
string returns a Go string found at off.
gosym/pclntab.go:387
↓ 2 callers
Method
uint
uint returns the uint stored at b.
gosym/pclntab.go:431
↓ 2 callers
Function
walksymtab
(data []byte, fn func(sym) error)
gosym/symtab.go:206
↓ 1 callers
Method
ForeachTableEntry
(off uint32, fn func(val int64, valBytes int, pc uint64, pcBytes int))
gosym/extra.go:35
↓ 1 callers
Function
NewLineTable
NewLineTable returns a new PC/line table corresponding to the encoded data. Text must be the start address of the corresponding text segment.
gosym/pclntab.go:152
↓ 1 callers
Function
NewReader
(ra io.ReaderAt)
ar/ar.go:40
↓ 1 callers
Function
NewTable
NewTable decodes the Go symbol table (the ".gosymtab" section in ELF), returning an in-memory representation. Starting with Go 1.3, the Go symbol tabl
gosym/symtab.go:349
↓ 1 callers
Method
Next
Next returns the next file or an error. On EOF, the error is (nil, io.EOF).
ar/ar.go:65
↓ 1 callers
Method
TableSizePCData
tab is 0-based table number.
gosym/extra.go:15
↓ 1 callers
Method
TableSizePCFile
()
gosym/extra.go:10
↓ 1 callers
Method
TableSizePCLn
()
gosym/extra.go:12
↓ 1 callers
Method
TableSizePCSP
()
gosym/extra.go:11
↓ 1 callers
Method
alineFromLine
(path string, line int)
gosym/symtab.go:708
↓ 1 callers
Function
arFile
(ra io.ReaderAt)
shotizam.go:64
↓ 1 callers
Method
deferreturn
()
gosym/pclntab.go:468
↓ 1 callers
Function
diffMap
(a, b map[RecKey]int64)
shotizam.go:446
↓ 1 callers
Function
elfFile
(ef *elf.File, size int64)
shotizam.go:83
↓ 1 callers
Method
findFileLine
findFileLine scans one function in the binary looking for a program counter in the given file on the given line. It does so by running the pc-value ta
gosym/pclntab.go:531
↓ 1 callers
Method
funcName
funcName returns the name of the function found at off.
gosym/pclntab.go:365
↓ 1 callers
Method
go12Funcs
go12Funcs returns a slice of Funcs derived from the Go 1.2+ pcln table.
gosym/pclntab.go:296
↓ 1 callers
Method
go12LineToPC
go12LineToPC maps a (file, line) pair to a program counter for the Go 1.2+ pcln table.
gosym/pclntab.go:622
↓ 1 callers
Method
go12MapFiles
go12MapFiles adds to m a key for every file in the Go 1.2 LineTable. Every key maps to obj. That's not a very interesting map, but it provides a way f
gosym/pclntab.go:688
↓ 1 callers
Method
go12PCToFile
go12PCToFile maps program counter to file name for the Go 1.2+ pcln table.
gosym/pclntab.go:590
↓ 1 callers
Function
isUnitHeader
(line []byte)
cmd/oldgosize/gosize.go:167
↓ 1 callers
Method
lineFromAline
* * Object files */ This is legacy code for Go 1.1 and earlier, which used the Plan 9 format for pc-line tables. This code was never quite correct.
gosym/symtab.go:666
↓ 1 callers
Function
machoFile
(mo *macho.File, ra io.ReaderAt, size int64)
shotizam.go:121
↓ 1 callers
Method
nameOff
()
gosym/pclntab.go:467
↓ 1 callers
Function
nopWriteCloser
()
shotizam.go:404
↓ 1 callers
Method
numFuncData
()
gosym/extra.go:87
↓ 1 callers
Method
numPCData
()
gosym/extra.go:85
↓ 1 callers
Method
parsePclnTab
parsePclnTab parses the pclntab, setting the version.
gosym/pclntab.go:190
↓ 1 callers
Function
pcdataSuffix
(n int)
shotizam.go:378
↓ 1 callers
Method
pcsp
* From src/cmd/link/internal/ld/pcln.go.writeFuncs() and src/runtime/runtime2.go._func: uint32 entryOff; // offset of func entry PC from textStart in
gosym/extra.go:84
↓ 1 callers
Function
peFile
(pf *pe.File, ra io.ReaderAt, size int64)
shotizam.go:156
↓ 1 callers
Function
readBaseRecs
()
shotizam.go:414
↓ 1 callers
Method
slice
(pc uint64)
gosym/pclntab.go:116
↓ 1 callers
Method
tableOff
(tab uint32)
gosym/extra.go:101
Method
BaseName
BaseName returns the symbol name without the package or receiver name.
gosym/symtab.go:117
Method
Error
()
gosym/symtab.go:758
Method
Error
()
gosym/symtab.go:768
Method
Error
()
gosym/symtab.go:780
Method
LineToPC
LineToPC returns the program counter for the given line number, considering only program counters before maxpc. Deprecated: Use Table's LineToPC meth
gosym/pclntab.go:136
Method
LineToPC
LineToPC looks up the first program counter on the given line in the named file. It returns UnknownPathError or UnknownLineError if there is an error
gosym/symtab.go:585
Method
LookupFunc
LookupFunc returns the text, data, or bss symbol with the given name, or nil if no such symbol is found.
gosym/symtab.go:631
Method
LookupSym
LookupSym returns the text, data, or bss symbol with the given name, or nil if no such symbol is found.
gosym/symtab.go:615
Method
PCToLine
PCToLine returns the line number for the given program counter. Deprecated: Use Table's PCToLine method instead.
gosym/pclntab.go:124
Method
PCToLine
PCToLine looks up line number information for a program counter. If there is no information, it returns fn == nil.
gosym/symtab.go:569
Method
ReceiverName
ReceiverName returns the receiver type name of this symbol, or the empty string if there is none. A receiver name is only detected in the case that s
gosym/symtab.go:92
Method
Static
Static reports whether this symbol is static (not visible outside its file).
gosym/symtab.go:40
Method
SymByAddr
SymByAddr returns the text, data, or bss symbol starting at the given address.
gosym/symtab.go:642
Function
TestGoPackageOfName
(t *testing.T)
cmd/oldgosize/gosize_test.go:9
Function
main
()
shotizam.go:208
Function
main
()
cmd/oldgosize/gosize.go:28