Skip to content

Commit

Permalink
Add cpuinfo module
Browse files Browse the repository at this point in the history
Signed-off-by: Pradyumn Rahar <[email protected]>
  • Loading branch information
Hannibal404 committed Oct 27, 2023
1 parent a657f15 commit 7d4ea60
Show file tree
Hide file tree
Showing 5 changed files with 643 additions and 1 deletion.
7 changes: 7 additions & 0 deletions doc/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,10 @@ drgn_tools.rds

.. automodule:: drgn_tools.rds
:members:


drgn_tools.cpuinfo
-----------------------

.. automodule:: drgn_tools.cpuinfo
:members:
2 changes: 1 addition & 1 deletion doc/code-quality.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ format your code. But here are a few high level, common Python style guidelines:

- Use 4 spaces for indentation
- Use 2 newlines to separate functions, 1 newline to separate class methods
- Name functions using ``snake_case`` and classes using ``CamelCase``
- Name functions using ``snake_case`` and classes using ``PascalCase``
- Try to keep it to 80 characters for a line

Some other guidelines are enforced by our pre-commit hooks:
Expand Down
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.cpuinfo",
]
for python_module in python_mods:
importlib.import_module(python_module)
Expand Down
Loading

0 comments on commit 7d4ea60

Please sign in to comment.