open-power / pdbg

PowerPC FSI Debugger
Apache License 2.0
17 stars 39 forks source link

Improve CPU core and thread indexing #36

Open apopple opened 6 years ago

apopple commented 6 years ago

Currently core and thread indexing is based on the physical hardware layout, however when debugging it is usually more helpful to be able to reference core/thread by Linux numa-node/CPU ids.

When running on the host we should be able to look in sysfs/procfs to convert between hardware core/thread index (ie. PIR) to a Linux CPU.

Obviously this is not possible when running on the BMC so this will only work when running on the host. Therefore the CPU numbers should be displayed in the probe output next to the physical HW core/thread indexes so they can be cross-referenced if debugging from the BMC is required.

npiggin commented 6 years ago

Ben suggested that Linux could call OPAL to put the Linux CPU id mapping into a debug descriptor that pdbg could find.