Skip to content

Commit de86204

Browse files
committed
Add cpuinfo module
Signed-off-by: Pradyumn Rahar <[email protected]>
1 parent a657f15 commit de86204

File tree

5 files changed

+640
-1
lines changed

5 files changed

+640
-1
lines changed

doc/api.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,10 @@ drgn_tools.rds
105105

106106
.. automodule:: drgn_tools.rds
107107
:members:
108+
109+
110+
drgn_tools.cpuinfo
111+
-----------------------
112+
113+
.. automodule:: drgn_tools.cpuinfo
114+
:members:

doc/code-quality.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ format your code. But here are a few high level, common Python style guidelines:
4848

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

5454
Some other guidelines are enforced by our pre-commit hooks:

drgn_tools/corelens.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ def all_corelens_modules() -> Dict[str, CorelensModule]:
184184
"drgn_tools.block",
185185
"drgn_tools.md",
186186
"drgn_tools.rds",
187+
"drgn_tools.cpuinfo",
187188
]
188189
for python_module in python_mods:
189190
importlib.import_module(python_module)

0 commit comments

Comments
 (0)