geopm  3.1.1.dev296+g5916b956
GEOPM - Global Extensible Open Power Manager
MSRPath.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 - 2024 Intel Corporation
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 
6 #ifndef MSRPATH_HPP_INCLUDE
7 #define MSRPATH_HPP_INCLUDE
8 
9 #include <string>
10 
11 namespace geopm
12 {
13  class MSRPath
14  {
15  public:
16  MSRPath();
17  MSRPath(int driver_type);
18  virtual ~MSRPath() = default;
19  virtual std::string msr_path(int cpu_idx) const;
20  virtual std::string msr_batch_path(void) const;
21  private:
22  const int m_driver_type;
23  };
24 }
25 
26 #endif
Definition: MSRPath.hpp:14
virtual ~MSRPath()=default
MSRPath()
Definition: MSRPath.cpp:16
virtual std::string msr_path(int cpu_idx) const
Definition: MSRPath.cpp:28
virtual std::string msr_batch_path(void) const
Definition: MSRPath.cpp:47
Definition: Agg.cpp:20