Page MenuHomeFreeBSD

Fix some issues in the linprocfs maps file.
ClosedPublic

Authored by markj on Jan 6 2020, 10:50 PM.

Details

Summary
  • Export the offset into the backing object, not the object size.
  • Fix a bug where we would print the previous entry's "offset" when a map_entry has no object.
  • Try to identify shared mappings. Linux prints "s" when the mapping "may be shared". This attempt is not perfect, for example, we print "p" for anonymous memory that may be shared via minherit(INHERIT_SHARE).

PR: 240992

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

markj created this revision.Jan 6 2020, 10:50 PM
kib accepted this revision.Jan 7 2020, 12:13 PM
This revision is now accepted and ready to land.Jan 7 2020, 12:13 PM
This revision was automatically updated to reflect the committed changes.