make sure the snapshot code collects data related to GPU devices.
Turns out not much was missing, most notably the /sys/class/drm link;
nevertheless, let's make sure to collect this data, so now also the
gpu package can consume snapshots.
We choose to refactor the code from net devices collection more
for clarity -what we collect and what we filter out is a bit more
explicit now- than to avoid duplication.
The PCI collection code is a bit more elaborate, because it needs to
deal with PCI roots and subtrees (subforests?), so it was intentionally
left out for the time being.
make sure the snapshot code collects data related to GPU devices. Turns out not much was missing, most notably the
/sys/class/drm
link; nevertheless, let's make sure to collect this data, so now also the gpu package can consume snapshots.We choose to refactor the code from net devices collection more for clarity -what we collect and what we filter out is a bit more explicit now- than to avoid duplication.
The PCI collection code is a bit more elaborate, because it needs to deal with PCI roots and subtrees (subforests?), so it was intentionally left out for the time being.
Signed-off-by: Francesco Romani fromani@redhat.com