diff options
author | edef <edef@unfathomable.blue> | 2022-07-31 02:21:57 +0000 |
---|---|---|
committer | edef <edef@unfathomable.blue> | 2022-07-31 02:26:10 +0000 |
commit | 5aa1fbb66a02c2c8f41fc97aad434e4a38c9e2a0 (patch) | |
tree | 224260b1468fa57d81498c57f6d060b39cfdb426 /ripple/minitrace | |
parent | faa130aaec814e3a0d6293a3d1b36b31a3429494 (diff) | |
download | unf-legacy-5aa1fbb66a02c2c8f41fc97aad434e4a38c9e2a0.tar.zst |
ripple/minitrace: recognise anonymous/special mappings by dev/inode
Change-Id: If90d5e75e97bcac7c5d8bfa770c003a306f7ac7b
Diffstat (limited to 'ripple/minitrace')
-rw-r--r-- | ripple/minitrace/src/main.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ripple/minitrace/src/main.rs b/ripple/minitrace/src/main.rs index 3857b77..3675d08 100644 --- a/ripple/minitrace/src/main.rs +++ b/ripple/minitrace/src/main.rs @@ -150,11 +150,15 @@ impl Process { for &mut maps_file::Mapping { start, end, + dev, + inode, ref mut pathname, .. } in &mut mappings { - if pathname == "" || (pathname.starts_with('[') && pathname.ends_with(']')) { + if (dev, inode) == ((0, 0), 0) { + let is_special = pathname.starts_with('[') && pathname.ends_with(']'); + assert!(is_special || pathname.is_empty()); // these won't exist in map_files continue; } |