a >hf@s&ddlmZmZGdddeeZdS))PluginIndependentPluginc@s(eZdZdZdZdZddZddZdS) Pciz PCI devicesZpci)ZhardwaresystemcCs6|dsdS|d}d|vr*|dt|dkS)z# Check whether PCI devices present /proc/bus/pciFZdevicesr)Z path_isdirlistdirremovelen)selfZcontentr :/usr/lib/python3.9/site-packages/sos/report/plugins/pci.pycheck_for_bus_devicess    zPci.check_for_bus_devicescCs4|gd|r0|jdddd|ddS)N)z /proc/ioportsz /proc/iomemrz lspci -nnvvZlspci)Z root_symlinktagsz lspci -tv)Z add_copy_specr Zadd_cmd_output)r r r r setups z Pci.setupN)__name__ __module__ __qualname__Z short_descZ plugin_nameZprofilesr rr r r r r s  rN)Zsos.report.pluginsrrrr r r r  s