Skip to content

Commit

Permalink
pkg/maps: Skip more pseudo-paths and anonymous mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
mrueg committed Mar 2, 2022
1 parent 1110c48 commit 8b20676
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/maps/maps.go
Expand Up @@ -91,8 +91,8 @@ func (c *PidMappingFileCache) mappingForPid(pid uint32) ([]*profile.Mapping, err
for _, m := range mapping {
// Try our best to have the BuildID.
if m.BuildID == "" {
// TODO(brancz): These need special cases.
if m.File == "[vdso]" || m.File == "[vsyscall]" {
// TODO(brancz): These need special cases. See pseudo-paths in proc's man page
if m.File == "[vdso]" || m.File == "[vsyscall]" || m.File == "[stack]" || m.File == "[heap]" || m.File == "" {
continue
}

Expand Down

0 comments on commit 8b20676

Please sign in to comment.