6 #ifndef GEOPM_AGENT_H_INCLUDE
7 #define GEOPM_AGENT_H_INCLUDE
11 #include "geopm_public.h"
60 size_t policy_name_max,
char *policy_name);
81 size_t json_string_max,
char *json_string);
105 const double *policy_array,
size_t json_string_max,
140 size_t sample_name_max,
char *sample_name);
int GEOPM_PUBLIC geopm_agent_supported(const char *agent_name)
Query if system supports an agent type.
Definition: Agent.cpp:230
int GEOPM_PUBLIC geopm_agent_name(int agent_idx, size_t agent_name_max, char *agent_name)
The name of a specific agent.
Definition: Agent.cpp:427
int GEOPM_PUBLIC geopm_agent_num_avail(int *num_agent)
The number of available agents.
Definition: Agent.cpp:448
int GEOPM_PUBLIC geopm_agent_num_sample(const char *agent_name, int *num_sample)
The number of sampled parameters provided by agent.
Definition: Agent.cpp:270
int GEOPM_PUBLIC geopm_agent_policy_name(const char *agent_name, int policy_idx, size_t policy_name_max, char *policy_name)
Get the name of a policy parameter.
Definition: Agent.cpp:291
int GEOPM_PUBLIC geopm_agent_policy_json_partial(const char *agent_name, size_t policy_array_size, const double *policy_array, size_t json_string_max, char *json_string)
Create a json file to control agent policy statically.
Definition: Agent.cpp:378
int GEOPM_PUBLIC geopm_agent_num_policy(const char *agent_name, int *num_policy)
Get number of policy parameters supported by agent.
Definition: Agent.cpp:249
int GEOPM_PUBLIC geopm_agent_enforce_policy(void)
Enforce a static implementation of the agent's policy. The agent and the policy are chosen based on t...
Definition: Controller.cpp:133
int GEOPM_PUBLIC geopm_agent_policy_json(const char *agent_name, const double *policy_array, size_t json_string_max, char *json_string)
Create a json file to control agent policy statically.
Definition: Agent.cpp:364
int GEOPM_PUBLIC geopm_agent_sample_name(const char *agent_name, int sample_idx, size_t sample_name_max, char *sample_name)
The name of the indexed sample value.
Definition: Agent.cpp:327