virtual void mammut::cpufreq::CpuFreq::disableBoosting |
( |
| ) |
const |
|
pure virtual |
Disabled frequency boosting.
virtual void mammut::cpufreq::CpuFreq::enableBoosting |
( |
| ) |
const |
|
pure virtual |
Enables frequency boosting.
static std::vector<topology::VirtualCore*> mammut::cpufreq::CpuFreq::filterVirtualCores |
( |
const std::vector< topology::VirtualCore * > & |
virtualCores, |
|
|
const std::vector< topology::VirtualCoreId > & |
identifiers |
|
) |
| |
|
staticprotected |
From a given set of virtual cores, returns only those with specified identifiers.
- Parameters
-
virtualCores | The set of virtual cores. |
identifiers | The identifiers of the virtual cores we need. |
- Returns
- A set of virtual cores with the specified identifiers.
Gets the domain of a specified virtual core.
- Parameters
-
virtualCore | The virtual core. |
- Returns
- The domain of the virtual core.
virtual std::vector<Domain*> mammut::cpufreq::CpuFreq::getDomains |
( |
| ) |
const |
|
pure virtual |
Gets the domains division of the cores.
- Returns
- A vector of domains.
Given a set of virtual cores, returns the domains to which these virtual cores belong.
- Parameters
-
virtualCores | The set of virtual cores. |
- Returns
- A vector of domains.
Given a physical core, returns the domains covered by the virtual cores of that physical core.
- Parameters
-
physicalCore | The physical core. |
- Returns
- A vector of domains.
Given a CPU, returns the domains covered by the virtual cores of that CPU.
- Parameters
-
- Returns
- A vector of domains.
Given a set of virtual cores, returns the a vector of domains. The domains in this vector are only those who have all their virtual cores contained in the specified set. Accordingly, for each element D in the returned vector, D->getVirtualCores() will return a subset of virtualCores parameter. ATTENTION: There must be no duplicate virtual cores in virtualCores vector.
- Parameters
-
virtualCores | The set of virtual cores. |
- Returns
- A vector of domains.
static Governor mammut::cpufreq::CpuFreq::getGovernorFromGovernorName |
( |
const std::string & |
governorName | ) |
|
|
static |
Returns the governor identifier starting from the name of the governor.
- Parameters
-
governorName | The name of the governor. |
- Returns
- The identifier associated to governorName, or GOVERNOR_NUM if no association is present.
static std::string mammut::cpufreq::CpuFreq::getGovernorNameFromGovernor |
( |
Governor |
governor | ) |
|
|
static |
Returns the governor name associated to a specific identifier.
- Parameters
-
governor | The identifier of the governor. |
- Returns
- The governor name associated to governor.
std::vector<RollbackPoint> mammut::cpufreq::CpuFreq::getRollbackPoints |
( |
| ) |
const |
Returns a rollback point for each domain. They can be used to bring the domains back to the point when this function is called.
- Returns
- A vector of rollback points.
virtual bool mammut::cpufreq::CpuFreq::isBoostingEnabled |
( |
| ) |
const |
|
pure virtual |
Returns true if frequency boosting is enabled.
- Returns
- True if frequency boosting is enabled, false otherwise.
virtual bool mammut::cpufreq::CpuFreq::isBoostingSupported |
( |
| ) |
const |
|
pure virtual |
Returns true if frequency boosting is supported.
- Returns
- True if frequency boosting is supported, false otherwise.
bool mammut::cpufreq::CpuFreq::isGovernorAvailable |
( |
Governor |
governor | ) |
const |
Checks the availability of a specific governor.
- Parameters
-
- Returns
- True if the governor is available for all domains, false otherwise.
void mammut::cpufreq::CpuFreq::rollback |
( |
const std::vector< RollbackPoint > & |
rollbackPoints | ) |
const |
Bring the domains to the respective rollback points.
- Parameters
-
rollbackPoints | A vector of rollback points. |
The documentation for this class was generated from the following file: