ModInfo

The ModInfo combiner gathers all the ModInfoEach parsers into a dictionary indexed by the module name.

class insights.combiners.modinfo.ModInfo(mi_all, mi_each)[source]

Bases: dict

Combiner for accessing all the modinfo outputs.

Examples

>>> type(modinfo_obj)
<class 'insights.combiners.modinfo.ModInfo'>
>>> type(modinfo_obj['i40e'])
<class 'insights.parsers.modinfo.ModInfoEach'>
>>> modinfo_obj['i40e'].module_name
'i40e'
>>> modinfo_obj['i40e'].module_name
'i40e'
>>> modinfo_obj['i40e']['retpoline']
'Y'
>>> modinfo_obj['i40e'].module_version
'2.3.2-k'
>>> modinfo_obj['i40e'].module_path
'/lib/modules/3.10.0-993.el7.x86_64/kernel/drivers/net/ethernet/intel/i40e/i40e.ko.xz'
>>> "i40e" in modinfo_obj.retpoline_y
True
>>> "bnx2x" in modinfo_obj.retpoline_y
False
>>> "bnx2x" in modinfo_obj.retpoline_n
True
Raises

SkipComponent -- When content is empty.

retpoline_y

A set of names of the modules with the attribute “retpoline: Y”.

Type

set

retpoline_n

A set of names of the modules with the attribute “retpoline: N”.

Type

set

property data

Dict with the module name as the key and the module details as the value.

Type

(dict)