#include <PlatformTopo.hpp>
|
| | PlatformTopo ()=default |
| virtual | ~PlatformTopo ()=default |
| virtual int | num_domain (int domain_type) const=0 |
| | Number of domains on the platform of a particular geopm_domain_e type.
|
| virtual int | domain_idx (int domain_type, int cpu_idx) const=0 |
| | Get the domain index for a particular domain type that contains the given Linux logical CPU index.
|
| virtual bool | is_nested_domain (int inner_domain, int outer_domain) const=0 |
| | Check if one domain type is contained in another.
|
| virtual std::set< int > | domain_nested (int inner_domain, int outer_domain, int outer_idx) const=0 |
| | Get the set of smaller domains contained in a larger one. If the inner domain is not the same as or contained within the outer domain, it throws an error.
|
|
| static std::string | domain_type_to_name (int domain_type) |
| | Convert a domain type enum to a string.
|
| static int | domain_name_to_type (const std::string &domain_name) |
| | Convert a domain name to its corresponding enum.
|
| static void | create_cache (void) |
| | Create cache file in tmpfs that can be read instead of popen() call.
|
◆ PlatformTopo()
◆ ~PlatformTopo()
◆ create_cache()
Create cache file in tmpfs that can be read instead of popen() call.
◆ domain_idx()
Get the domain index for a particular domain type that contains the given Linux logical CPU index.
◆ domain_name_to_type()
Convert a domain name to its corresponding enum.
- Parameters
-
| [in] | name | Domain name which is the enum in lowercase with GEOPM_DOMAIN_ prefix removed. |
- Returns
- Domain type from the geopm_domain_e enum.
◆ domain_nested()
Get the set of smaller domains contained in a larger one. If the inner domain is not the same as or contained within the outer domain, it throws an error.
- Parameters
-
| [in] | inner_domain | The contained domain type. |
| [in] | outer_domain | The containing domain type. |
| [in] | outer_idx | The containing domain index. |
- Returns
- The set of domain indices for the inner domain that are within the indexed outer domain.
◆ domain_type_to_name()
Convert a domain type enum to a string.
These strings are used by the geopmread and geopmwrite tools.
- Parameters
-
- Returns
- Domain name which is the enum name in lowercase with GEOPM_DOMAIN_ prefix removed.
◆ is_nested_domain()
Check if one domain type is contained in another.
- Parameters
-
| [in] | inner_domain | The contained domain type. |
| [in] | outer_domain | The containing domain type. |
- Returns
- True if the inner_domain is contained within the outer_domain.
◆ num_domain()
Number of domains on the platform of a particular geopm_domain_e type.
The documentation for this class was generated from the following files: