Skip to content

Commit

Permalink
gather-topology: some comments
Browse files Browse the repository at this point in the history
Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
  • Loading branch information
bgoglin committed Apr 24, 2019
1 parent 4085c56 commit c3e8b71
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions utils/hwloc/hwloc-gather-topology.in
Expand Up @@ -219,14 +219,22 @@ savefile "$destdir/$basename" /proc/self/cpuset
savefile "$destdir/$basename" /proc/self/cgroup
savefile "$destdir/$basename" /proc/driver/nvidia

# Gather the following list of directories
# Gather cpu and node information
# (no need for savebusdir since we already gather the target /sys/devices/system/{cpu,node} explicitly)
savedir "$destdir/$basename" /sys/devices/system/cpu/
savedir "$destdir/$basename" /sys/devices/system/node/
savedir "$destdir/$basename" /sys/bus/cpu/devices/
savedir "$destdir/$basename" /sys/devices/system/node/
savedir "$destdir/$basename" /sys/bus/node/devices/

# Gather DMI IDs
# (no need for aveclassdir since we only want "id" and it usually points to /sys/devices/virtual/dmi/id/)
savedir "$destdir/$basename" /sys/class/dmi/id/
savedir "$destdir/$basename" /sys/devices/virtual/dmi/id/ # we currently scan this one and the above
savedir "$destdir/$basename" /sys/devices/virtual/dmi/id/

# Gather hugepage information
savedir "$destdir/$basename" /sys/kernel/mm/hugepages/

# Gather POWER device-tree
savedir "$destdir/$basename" /proc/device-tree/cpus/

# Gather the default /var/run/hwloc (in case it was created by a system-wide hwloc-dump-hwdata)
Expand Down

0 comments on commit c3e8b71

Please sign in to comment.