geopm
3.1.1.dev272+gdfb40a8d
GEOPM - Global Extensible Open Power Manager
|
#include <ServiceProxy.hpp>
Public Member Functions | |
ServiceProxyImp () | |
ServiceProxyImp (std::shared_ptr< SDBus > bus) | |
virtual | ~ServiceProxyImp ()=default |
void | platform_get_user_access (std::vector< std::string > &signal_names, std::vector< std::string > &control_names) override |
Calls the PlatformGetUserAccess API defined in the io.github.geopm D-Bus namespace. More... | |
std::vector< signal_info_s > | platform_get_signal_info (const std::vector< std::string > &signal_names) override |
Calls the PlatformGetSignalInfo API defined in the io.github.geopm D-Bus namespace. More... | |
std::vector< control_info_s > | platform_get_control_info (const std::vector< std::string > &control_names) override |
Calls the PlatformGetControlInfo API defined in the io.github.geopm D-Bus namespace. More... | |
void | platform_open_session (void) override |
Calls the PlatformOpenSession API defined in the io.github.geopm D-Bus namespace. More... | |
void | platform_close_session (void) override |
Calls the PlatformCloseSession API defined in the io.github.geopm D-Bus namespace. More... | |
void | platform_start_batch (const std::vector< struct geopm_request_s > &signal_config, const std::vector< struct geopm_request_s > &control_config, int &server_pid, std::string &server_key) override |
Calls the PlatformStartBatch API defined in the io.github.geopm D-Bus namespace. More... | |
void | platform_stop_batch (int server_pid) override |
Calls the PlatformStopBatch API defined in the io.github.geopm D-Bus namespace. More... | |
double | platform_read_signal (const std::string &signal_name, int domain, int domain_idx) override |
Calls the PlatformReadSignal API defined in the io.github.geopm D-Bus namespace. More... | |
void | platform_write_control (const std::string &control_name, int domain, int domain_idx, double setting) override |
Calls the PlatformWriteControl API defined in the io.github.geopm D-Bus namespace. More... | |
void | platform_restore_control () override |
Calls the PlatformRestoreControl API defined in the io.github.geopm D-Bus namespace. More... | |
std::string | topo_get_cache (void) override |
Calls the TopoGetCache API defined in the io.github.geopm D-Bus namespace. More... | |
void | platform_start_profile (const std::string &profile_name) override |
void | platform_stop_profile (const std::vector< std::string > ®ion_names) override |
std::vector< int > | platform_get_profile_pids (const std::string &profile_name) override |
std::vector< std::string > | platform_pop_profile_region_names (const std::string &profile_name) override |
Public Member Functions inherited from geopm::ServiceProxy | |
ServiceProxy ()=default | |
ServiceProxy constructor. More... | |
virtual | ~ServiceProxy ()=default |
ServiceProxy destructor. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from geopm::ServiceProxy | |
static std::unique_ptr< ServiceProxy > | make_unique (void) |
Create a unique pointer to a ServiceProxy object. More... | |
geopm::ServiceProxyImp::ServiceProxyImp | ( | ) |
geopm::ServiceProxyImp::ServiceProxyImp | ( | std::shared_ptr< SDBus > | bus | ) |
|
virtualdefault |
|
overridevirtual |
Calls the PlatformCloseSession API defined in the io.github.geopm D-Bus namespace.
Implements geopm::ServiceProxy.
|
overridevirtual |
Calls the PlatformGetControlInfo API defined in the io.github.geopm D-Bus namespace.
control_names | [in] Vector of strings containing all control names to query. |
Implements geopm::ServiceProxy.
|
overridevirtual |
Implements geopm::ServiceProxy.
|
overridevirtual |
Calls the PlatformGetSignalInfo API defined in the io.github.geopm D-Bus namespace.
signal_names | [in] Vector of strings containing all signal names to query. |
Implements geopm::ServiceProxy.
|
overridevirtual |
Calls the PlatformGetUserAccess API defined in the io.github.geopm D-Bus namespace.
signal_names | [out] Vector of strings containing all signals that the calling process has access to. |
control_names | [out] Vector of strings containing all controls that the calling process has access to. |
Implements geopm::ServiceProxy.
|
overridevirtual |
Calls the PlatformOpenSession API defined in the io.github.geopm D-Bus namespace.
Implements geopm::ServiceProxy.
|
overridevirtual |
Implements geopm::ServiceProxy.
|
overridevirtual |
Calls the PlatformReadSignal API defined in the io.github.geopm D-Bus namespace.
signal_name | [in] Name of the signal to read |
domain | [in] Topology domain to read the signal from. One of the geopm_domain_e values defined in geopm_topo.h. |
domain_idx | [in] Index of the domain to read the signal from. |
Implements geopm::ServiceProxy.
|
overridevirtual |
Calls the PlatformRestoreControl API defined in the io.github.geopm D-Bus namespace.
Implements geopm::ServiceProxy.
|
overridevirtual |
Calls the PlatformStartBatch API defined in the io.github.geopm D-Bus namespace.
signal_config | [in] Vector of signal requests that will be supported by the batch server that is created. |
control_config | [in] Vector of control requests that will be supported by the batch server that is created. |
server_pid | [out] Linux PID of the server process created. |
server_key | [out] Unique key used to connect to the created server. |
Implements geopm::ServiceProxy.
|
overridevirtual |
Implements geopm::ServiceProxy.
|
overridevirtual |
Calls the PlatformStopBatch API defined in the io.github.geopm D-Bus namespace.
server_pid | [in] The Linux PID of the batch server to stop. |
Implements geopm::ServiceProxy.
|
overridevirtual |
Implements geopm::ServiceProxy.
|
overridevirtual |
Calls the PlatformWriteControl API defined in the io.github.geopm D-Bus namespace.
control_name | [in] Name of the control to write |
domain | [in] Topology domain to write to. One of the geopm_domain_e values defined in geopm_topo.h. |
domain_idx | [in] Index of the domain to write to. |
setting | [in] Value of the control to write. |
Implements geopm::ServiceProxy.
|
overridevirtual |
Calls the TopoGetCache API defined in the io.github.geopm D-Bus namespace.
Implements geopm::ServiceProxy.