6 #ifndef CPUFREQSYSFSDRIVER_HPP_INCLUDE
7 #define CPUFREQSYSFSDRIVER_HPP_INCLUDE
27 const std::string &cpufreq_directory);
29 int domain_type(
const std::string &name)
const override;
31 int domain_idx)
override;
32 std::function<double(
const std::string&)>
signal_parse(
const std::string &signal_name)
const override;
33 std::function<std::string(
double)>
control_gen(
const std::string &control_name)
const override;
34 std::string
driver(
void)
const override;
35 std::map<std::string, SysfsDriver::properties_s>
properties(
void)
const override;
39 const std::map<std::string, SysfsDriver::properties_s> M_PROPERTIES;
40 const std::map<std::string, std::vector<int> > M_CPUFREQ_CPUS_BY_RESOURCE;
41 const std::map<int, std::string> M_CPUFREQ_RESOURCE_BY_CPU;
Class used to implement the CpufreqSysfsDriverGroup.
Definition: CpufreqSysfsDriver.hpp:23
virtual ~CpufreqSysfsDriver()=default
std::function< std::string(double)> control_gen(const std::string &control_name) const override
Get a function to convert a control into a sysfs string.
Definition: CpufreqSysfsDriver.cpp:190
std::map< std::string, SysfsDriver::properties_s > properties(void) const override
Query the meta data about a signal or control.
Definition: CpufreqSysfsDriver.cpp:208
std::string driver(void) const override
Definition: CpufreqSysfsDriver.cpp:203
int domain_type(const std::string &name) const override
Get the PlatformTopo domain type for an named attribute.
Definition: CpufreqSysfsDriver.cpp:134
CpufreqSysfsDriver()
Definition: CpufreqSysfsDriver.cpp:93
std::function< double(const std::string &)> signal_parse(const std::string &signal_name) const override
Get function to convert contents of sysfs file into signal.
Definition: CpufreqSysfsDriver.cpp:171
static std::unique_ptr< IOGroup > make_plugin(void)
Definition: CpufreqSysfsDriver.cpp:218
std::string attribute_path(const std::string &name, int domain_idx) override
Get the path to the sysfs entry for signal.
Definition: CpufreqSysfsDriver.cpp:139
static std::string plugin_name(void)
Definition: CpufreqSysfsDriver.cpp:213
Class used to implement the SysfsIOGroup base class.
Definition: SysfsDriver.hpp:23
geopm_domain_e
Definition: geopm_topo.h:17