From 8b20676af50c0d887e00a208c935a6b95ff63426 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20R=C3=BCger?= Date: Wed, 2 Mar 2022 17:05:16 +0100 Subject: [PATCH] pkg/maps: Skip more pseudo-paths and anonymous mappings --- pkg/maps/maps.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/maps/maps.go b/pkg/maps/maps.go index aa22fae64b..77027a801b 100644 --- a/pkg/maps/maps.go +++ b/pkg/maps/maps.go @@ -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 }