Fix RAPL detection of subdomains
Since !79 (merged), the Rapl backend does not read the sub-domains. A system may have two domains, with one sub-domain each, e.g.:
/sys/class/powercap/intel-rapl:1/energy_uj
/sys/class/powercap/intel-rapl:0:0/energy_uj
/sys/class/powercap/intel-rapl:0/energy_uj
/sys/class/powercap/intel-rapl:1:0/energy_uj
But only the intel-rapl:0
and intel-rapl:1
were detected, this is now fixed.
The number of subdomains available can be different for different platforms, see https://hubblo-org.github.io/scaphandre-documentation/explanations/rapl-domains.html for more details. The code was tested on various Intel and AMD platforms.