geopm  3.1.1.dev296+g5916b956
GEOPM - Global Extensible Open Power Manager
Classes | Namespaces | Functions
MSRIOGroup.cpp File Reference
#include "MSRIOGroup.hpp"
#include <stdlib.h>
#include <cmath>
#include <sstream>
#include <algorithm>
#include <utility>
#include <iomanip>
#include <iostream>
#include <set>
#include "geopm/json11.hpp"
#include "geopm_sched.h"
#include "geopm/Exception.hpp"
#include "geopm/Agg.hpp"
#include "geopm/PlatformIO.hpp"
#include "MSRIOImp.hpp"
#include "MSR.hpp"
#include "Signal.hpp"
#include "RawMSRSignal.hpp"
#include "MSRFieldSignal.hpp"
#include "DifferenceSignal.hpp"
#include "TimeSignal.hpp"
#include "DerivativeSignal.hpp"
#include "RatioSignal.hpp"
#include "MultiplicationSignal.hpp"
#include "Control.hpp"
#include "MSRFieldControl.hpp"
#include "DomainControl.hpp"
#include "geopm/PlatformTopo.hpp"
#include "geopm/Helper.hpp"
#include "geopm_debug.hpp"
#include "geopm/SaveControl.hpp"
#include "SecurePath.hpp"
#include "geopm/Cpuid.hpp"
Include dependency graph for MSRIOGroup.cpp:

Classes

struct  geopm::json_checker
 Used to validate types and values of JSON objects. More...
 

Namespaces

 geopm
 

Functions

const std::string geopm::arch_msr_json (void)
 
const std::string geopm::knl_msr_json (void)
 
const std::string geopm::hsx_msr_json (void)
 
const std::string geopm::snb_msr_json (void)
 
const std::string geopm::skx_msr_json (void)
 
const std::string geopm::spr_msr_json (void)
 
void geopm::check_expected_key_values (const Json &root, const std::map< std::string, json_checker > &required_key_map, const std::map< std::string, json_checker > &optional_key_map, const std::string &loc_message)
 
int geopm_msr_allowlist (size_t result_max, char *result)
 Fill result with the msr-safe allowlist file contents reflecting all known MSRs for the specified platform. More...
 
int geopm_allowlist (size_t result_max, char *result)
 

Function Documentation

◆ geopm_allowlist()

int geopm_allowlist ( size_t  result_max,
char *  result 
)

◆ geopm_msr_allowlist()

int geopm_msr_allowlist ( size_t  result_max,
char *  result 
)

Fill result with the msr-safe allowlist file contents reflecting all known MSRs for the specified platform.

Parameters
result_max[in] Size of the result buffer
result[in, out] Buffer to which the msr-safe allowlist is written.
Returns
Zero on success, error code on failure.