Skip to content

Commit

Permalink
meminfo: Add meminfo corelens module
Browse files Browse the repository at this point in the history
This commit implements a meminfo corelens module that enables users to
dump detailed statistics of the memory management subsystem. The output
is similar to 'cat /proc/meminfo', which includes many aspects of the
mm subsystem.

This module supports UEK 5, 6, and 7 and for both x86-64 and aarch64.
It is tested for all these above settings. For each case, this meminfo
module's output is compared against the output of `cat /proc/meminfo`.
Results match closely with only small differences.

Signed-off-by: Jianfeng Wang <[email protected]>
  • Loading branch information
jianfenw committed Oct 26, 2023
1 parent 4b65b14 commit 80e7888
Show file tree
Hide file tree
Showing 5 changed files with 818 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,9 @@ drgn_tools.rds

.. automodule:: drgn_tools.rds
:members:

drgn_tools.meminfo
-----------------------

.. automodule:: drgn_tools.meminfo
:members:
1 change: 1 addition & 0 deletions drgn_tools/corelens.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ def all_corelens_modules() -> Dict[str, CorelensModule]:
"drgn_tools.block",
"drgn_tools.md",
"drgn_tools.rds",
"drgn_tools.meminfo",
]
for python_module in python_mods:
importlib.import_module(python_module)
Expand Down
Loading

0 comments on commit 80e7888

Please sign in to comment.