|
geopm 3.2.1.dev237+gbe30cff60
GEOPM - Global Extensible Open Power Manager
|
#include <MSRFieldControl.hpp>


Public Member Functions | |
| MSRFieldControl (std::shared_ptr< MSRIO > msrio, int cpu, uint64_t offset, int begin_bit, int end_bit, int function, double scalar) | |
| MSRFieldControl (const MSRFieldControl &other)=delete | |
| MSRFieldControl & | operator= (const MSRFieldControl &other)=delete |
| virtual | ~MSRFieldControl ()=default |
| void | setup_batch (void) override |
| Prepare the control for being written through side effects by the owner's write_batch step. This method should not fail if called multiple times, and ideally only apply the side effects on the first call. | |
| void | adjust (double value) override |
| Store values to be written by the owner's write_batch step. | |
| void | write (double value) override |
| Write the value of the control without affecting any pushed batch controls. | |
| void | save (void) override |
| Store the current setting of the control for use by a future call to restore(). | |
| void | restore (void) override |
| Restore the setting stored by save(). | |
| void | add_save_restore_context (int) |
Public Member Functions inherited from geopm::Control | |
| virtual | ~Control ()=default |
Encapsulates conversion of control values in SI units to MSR bitfields.
| geopm::MSRFieldControl::MSRFieldControl | ( | std::shared_ptr< MSRIO > | msrio, |
| int | cpu, | ||
| uint64_t | offset, | ||
| int | begin_bit, | ||
| int | end_bit, | ||
| int | function, | ||
| double | scalar | ||
| ) |
|
delete |
|
virtualdefault |
| void geopm::MSRFieldControl::add_save_restore_context | ( | int | ctx | ) |
|
overridevirtual |
Store values to be written by the owner's write_batch step.
Implements geopm::Control.
|
delete |
|
overridevirtual |
Restore the setting stored by save().
Implements geopm::Control.
|
overridevirtual |
Store the current setting of the control for use by a future call to restore().
Implements geopm::Control.
|
overridevirtual |
Prepare the control for being written through side effects by the owner's write_batch step. This method should not fail if called multiple times, and ideally only apply the side effects on the first call.
Implements geopm::Control.
|
overridevirtual |
Write the value of the control without affecting any pushed batch controls.
Implements geopm::Control.