1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:58:11 +00:00

Kernel: Provide consistent memory stats in ProcFS

We should take the MM lock when gathering all the statistics that
we need so that the values are consistent.
This commit is contained in:
Tom 2021-01-04 20:40:38 -07:00 committed by Andreas Kling
parent de6a4d49b8
commit d3e6cdf21f
2 changed files with 18 additions and 4 deletions

View file

@ -131,6 +131,8 @@ public:
unsigned user_physical_pages() const { return m_user_physical_pages; }
unsigned user_physical_pages_used() const { return m_user_physical_pages_used; }
unsigned user_physical_pages_committed() const { return m_user_physical_pages_committed; }
unsigned user_physical_pages_uncommitted() const { return m_user_physical_pages_uncommitted; }
unsigned super_physical_pages() const { return m_super_physical_pages; }
unsigned super_physical_pages_used() const { return m_super_physical_pages_used; }