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
2 changes: 1 addition & 1 deletion process/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func parseMappings(mapsFile io.Reader) ([]Mapping, uint32, error) {
path = VdsoPathName
device = 0
inode = vdsoInode
} else if path == "" {
} else if fields[5] == "" {
// This is an anonymous mapping, keep it
} else {
// Ignore other mappings that are invalid, non-existent or are special pseudo-files
Expand Down
2 changes: 1 addition & 1 deletion process/process_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func TestParseMappings(t *testing.T) {
Inode: 0,
Length: 0x10000,
FileOffset: 0,
Path: "",
Path: libpf.NullString,
},
}
assert.Equal(t, expected, mappings)
Expand Down