Skip to content

lisa.energy_model: Refactor LinuxEnergyModel.from_target

  • Refactor from_target() to expose better the layout of the structure, so that the origin of each piece of data is obvious.

  • Remove the reliance on debugfs perf domain folder names that can change from one kernel to another. Instead, use all the folders containing the cost, frequency and capacity files.

  • Ensure internal consistency of data by only using the strictly necessary information from sysfs (capacities) and debugfs (everything else). Specifically, do not use the CPU count from devlib since the EM from debugfs already provides the information about available CPUs.

Merge request reports