Skip to content

Commit

Permalink
Capture iommu groups directory tree in debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Qubad786 committed Jul 1, 2024
1 parent 02d4045 commit 07a3f68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ixdiagnose/plugins/vm.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from collections import defaultdict

from ixdiagnose.utils.formatter import remove_keys
from ixdiagnose.utils.middleware import MiddlewareCommand

from .base import Plugin
from .metrics import MiddlewareClientMetric, PythonMetric
from .metrics import DirectoryTreeMetric, MiddlewareClientMetric, PythonMetric
from .prerequisites import VMPrerequisite


Expand All @@ -23,6 +24,7 @@ def passthrough_choices(client, context):
class VM(Plugin):
name = 'vm'
metrics = [
DirectoryTreeMetric('iommu_groups', '/sys/kernel/iommu_groups'),
MiddlewareClientMetric(
'gpu', [MiddlewareCommand('device.get_gpus', result_key='gpus')],
prerequisites=[VMPrerequisite()]
Expand Down

0 comments on commit 07a3f68

Please sign in to comment.