Skip to content

Commit

Permalink
Assume //anon files unsymbolizable. (#859)
Browse files Browse the repository at this point in the history
The //anon mappings do not correspond to an actual file so pprof trying
to look them up on disk and complaining with a warning is not useful.

Co-authored-by: Maggie Nolan Edmonds <nolanmar@google.com>
  • Loading branch information
aalexand and nolanmar511 authored May 9, 2024
1 parent 454ddf2 commit 723abb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion profile/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ func (p *Profile) HasFileLines() bool {
// "[vdso]", [vsyscall]" and some others, see the code.
func (m *Mapping) Unsymbolizable() bool {
name := filepath.Base(m.File)
return strings.HasPrefix(name, "[") || strings.HasPrefix(name, "linux-vdso") || strings.HasPrefix(m.File, "/dev/dri/")
return strings.HasPrefix(name, "[") || strings.HasPrefix(name, "linux-vdso") || strings.HasPrefix(m.File, "/dev/dri/") || m.File == "//anon"
}

// Copy makes a fully independent copy of a profile.
Expand Down

0 comments on commit 723abb6

Please sign in to comment.