Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions common/entrypoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ func ProgramEntrypoint(arch string) func(function string) bool {
function == "runtime.systemstack" ||
function == "runtime.gopanic" ||
function == "runtime.chanrecv" ||
function == "runtime.startm" || // 32 bit specific
function == "runtime.sysAlloc" // // 32 bit specific
function == "runtime.startm" ||
function == "runtime.sysAlloc" ||
function == "runtime.chansend"
}
case "mips64":
return func(function string) bool {
Expand All @@ -40,7 +41,10 @@ func ProgramEntrypoint(arch string) func(function string) bool {
function == "runtime.morestack" ||
function == "runtime.systemstack" ||
function == "runtime.gopanic" ||
function == "runtime.chanrecv"
function == "runtime.chanrecv" ||
function == "runtime.startm" ||
function == "runtime.sysAlloc" ||
function == "runtime.chansend"
}
}
return func(function string) bool {
Expand Down
3 changes: 3 additions & 0 deletions common/stack_tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ func TraceAllAsmCaller(
var visit func(segment asmparser.Segment)

visit = func(segment asmparser.Segment) {
if len(sources) >= 20 { // protect for infinite searching
return
}
if seen[segment] {
return
}
Expand Down
Loading