6 #ifndef DRMSYSFSDRIVER_HPP_INCLUDE
7 #define DRMSYSFSDRIVER_HPP_INCLUDE
28 const std::string &driver_signal_prefix);
30 int domain_type(
const std::string &name)
const override;
32 int domain_idx)
override;
33 std::function<double(
const std::string&)>
signal_parse(
const std::string &signal_name)
const override;
34 std::function<std::string(
double)>
control_gen(
const std::string &control_name)
const override;
35 std::string
driver(
void)
const override;
36 std::map<std::string, SysfsDriver::properties_s>
properties(
void)
const override;
47 const std::string M_DRIVER_SIGNAL_PREFIX;
49 const std::map<std::string, SysfsDriver::properties_s> M_PROPERTIES;
51 const std::map<std::pair<geopm_domain_e, int>, std::string> M_DRM_HWMON_DIR_BY_GEOPM_DOMAIN;
Definition: DrmGpuTopo.hpp:18
Class used to implement the DrmSysfsDriverGroup.
Definition: DrmSysfsDriver.hpp:24
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: DrmSysfsDriver.cpp:165
static std::unique_ptr< IOGroup > make_plugin_drm(void)
Definition: DrmSysfsDriver.cpp:214
static std::unique_ptr< IOGroup > make_plugin_accel(void)
Definition: DrmSysfsDriver.cpp:224
std::string attribute_path(const std::string &name, int domain_idx) override
Get the path to the sysfs entry for signal.
Definition: DrmSysfsDriver.cpp:135
static std::string plugin_name_accel(void)
Definition: DrmSysfsDriver.cpp:219
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: DrmSysfsDriver.cpp:186
int domain_type(const std::string &name) const override
Get the PlatformTopo domain type for an named attribute.
Definition: DrmSysfsDriver.cpp:123
virtual ~DrmSysfsDriver()=default
std::string driver(void) const override
Definition: DrmSysfsDriver.cpp:199
std::map< std::string, SysfsDriver::properties_s > properties(void) const override
Query the meta data about a signal or control.
Definition: DrmSysfsDriver.cpp:204
static std::string plugin_name_drm(void)
Definition: DrmSysfsDriver.cpp:209
Class used to implement the SysfsIOGroup base class.
Definition: SysfsDriver.hpp:23