Skip to content

Conversation

jj-asama
Copy link

@jj-asama jj-asama commented Sep 18, 2025

I found these important for the observability tool I am building. Once this is merged, I will be adding these to the p8s collector as well.
Test case added from a Intel E810 NIC.

	NumaNode        *int32 // /sys/bus/pci/devices/<Location>/numa_node

	SriovDriversAutoprobe *bool   // /sys/bus/pci/devices/<Location>/sriov_drivers_autoprobe
	SriovNumvfs           *uint32 // /sys/bus/pci/devices/<Location>/sriov_numvfs
	SriovOffset           *uint32 // /sys/bus/pci/devices/<Location>/sriov_offset
	SriovStride           *uint32 // /sys/bus/pci/devices/<Location>/sriov_stride
	SriovTotalvfs         *uint32 // /sys/bus/pci/devices/<Location>/sriov_totalvfs
	SriovVfDevice         *uint32 // /sys/bus/pci/devices/<Location>/sriov_vf_device
	SriovVfTotalMsix      *uint64 // /sys/bus/pci/devices/<Location>/sriov_vf_total_msix

	D3coldAllowed *bool          // /sys/bus/pci/devices/<Location>/d3cold_allowed
	PowerState    *PciPowerState // /sys/bus/pci/devices/<Location>/power_state

I am not really interested in Offset, Stride VfDevice and MSI-X. Just added for completeness. Please let me know if I should rather remove them.

@discordianfish for your kind review.

ref: https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-bus-pci

Signed-off-by: Jain Johny <jj@asama.ai>
Signed-off-by: Jain Johny <jj@asama.ai>
Signed-off-by: Jain Johny <jj@asama.ai>
Signed-off-by: Jain Johny <jj@asama.ai>
support for sriov, numa and power management config
Signed-off-by: Jain Johny <jj@asama.ai>
Signed-off-by: root <root@proxmox1.server>
Signed-off-by: Jain Johny <jj@asama.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant