| 
    libmsr
    0.3.0
    
   A friendlier interface to accessing MSRs on Intel platforms 
   | 
 


Go to the source code of this file.
Classes | |
| struct | msr_temp_target | 
| Structure containing data from MSR_TEMPERATURE_TARGET.  More... | |
| struct | therm_stat | 
| Structure holding data for IA32_THERM_STATUS.  More... | |
| struct | therm_interrupt | 
| Structure holding data for IA32_THERM_INTERRUPT.  More... | |
| struct | pkg_therm_stat | 
| Structure holding data for IA32_PACKAGE_THERM_STATUS.  More... | |
| struct | pkg_therm_interrupt | 
| Structure holding data from IA32_PACKAGE_THERM_INTERRUPT.  More... | |
Functions | |
| void | store_temp_target (struct msr_temp_target **tt) | 
| Store the target temperature data on the heap.   | |
| void | store_therm_stat (struct therm_stat **ts) | 
| Store the per-core thermal status data on the heap.   | |
| void | store_therm_interrupt (struct therm_interrupt **ti) | 
| Store the per-core thermal interrupt data on the heap.   | |
| void | store_pkg_therm_stat (struct pkg_therm_stat **ps) | 
| Store the package-level thermal status data on the heap.   | |
| void | store_pkg_therm_interrupt (struct pkg_therm_interrupt **pi) | 
| Store the package-level thermal interrupt data on the heap.   | |
| void | is_init (void) | 
| Initialize temperature target data – store variable on the heap and read current temperature target.   | |
| void | get_temp_target (struct msr_temp_target *s) | 
| Retrieve current minimum temperature (in degree Celsius) at which PROCHOT will be asserted.   | |
| void | get_therm_stat (struct therm_stat *s) | 
| Read value of the IA32_THERM_STATUS register and translate bit fields to human-readable values.   | |
| void | get_therm_interrupt (struct therm_interrupt *s) | 
| Read value of the IA32_THERM_INTERRUPT register and translate bit fields to human-readable values.   | |
| void | get_pkg_therm_stat (struct pkg_therm_stat *s) | 
| Read value of the IA32_PACKAGE_THERM_STATUS register and translate bit fields to human-readable values.   | |
| void | get_pkg_therm_interrupt (struct pkg_therm_interrupt *s) | 
| Read value of the IA32_PACKAGE_THERM_INTERRUPT register and translate bit fields to human-readable values.   | |
| int | therm2_ctl_storage (uint64_t **thermctlref) | 
| Store the package-level thermal control data on the heap.   | |
| int | get_pkg_therm2_ctl (void) | 
| Read value of the MSR_THERM2_CTL register.   | |
| int | dump_therm2_ctl (FILE *writedest) | 
| Print out control settings for Thermal Monitor #2.   | |
| void | set_therm_stat (struct therm_stat *s) | 
| Set value for IA32_THERM_STATUS across all cores.   | |
| void | set_therm_interrupt (struct therm_interrupt *s) | 
| Set value for IA32_THERM_INTERRUPT across all cores.   | |
| void | set_pkg_therm_stat (struct pkg_therm_stat *s) | 
| Set value for IA32_PACKAGE_THERM_STATUS across all sockets.   | |
| void | set_pkg_therm_interrupt (struct pkg_therm_interrupt *s) | 
| Set value for IA32_PACKAGE_THERM_INTERRUPT across all sockets.   | |
| void | dump_therm_data_terse_label (FILE *writedest) | 
| Print the label for the abbreviated thermal status and interrupt data printout.   | |
| void | dump_therm_data_terse (FILE *writedest) | 
| Print abbreviated thermal status and interrupt data.   | |
| void | dump_therm_data_verbose_label (FILE *writedest) | 
| Print the label for the detailed thermal status and interrupt data printout.   | |
| void | dump_therm_temp_reading (FILE *writedest) | 
| Print only temperature data.   | |
| void | dump_therm_data_verbose (FILE *writedest) | 
| Print detailed thermal status and interrupt data.   | |
| int dump_therm2_ctl | ( | FILE * | writedest | ) | 
Print out control settings for Thermal Monitor #2.
| [in] | writedest | File stream where output will be written to. | 
| void dump_therm_data_terse | ( | FILE * | writedest | ) | 
Print abbreviated thermal status and interrupt data.
| [in] | writedest | File stream where output will be written to. | 
| void dump_therm_data_terse_label | ( | FILE * | writedest | ) | 
Print the label for the abbreviated thermal status and interrupt data printout.
| [in] | writedest | File stream where output will be written to. | 
| void dump_therm_data_verbose | ( | FILE * | writedest | ) | 
Print detailed thermal status and interrupt data.
| [in] | writedest | File stream where output will be written to. | 
| void dump_therm_data_verbose_label | ( | FILE * | writedest | ) | 
Print the label for the detailed thermal status and interrupt data printout.
| [in] | writedest | File stream where output will be written to. | 
| void dump_therm_temp_reading | ( | FILE * | writedest | ) | 
Print only temperature data.
| [in] | writedest | File stream where output will be written to. | 
| int get_pkg_therm2_ctl | ( | void | ) | 
Read value of the MSR_THERM2_CTL register.
| void get_pkg_therm_interrupt | ( | struct pkg_therm_interrupt * | s | ) | 
Read value of the IA32_PACKAGE_THERM_INTERRUPT register and translate bit fields to human-readable values.
| [out] | s | Data for package-level thermal interrupts. | 
| void get_pkg_therm_stat | ( | struct pkg_therm_stat * | s | ) | 
Read value of the IA32_PACKAGE_THERM_STATUS register and translate bit fields to human-readable values.
| [out] | s | Data for package-level thermal status. | 
| void get_temp_target | ( | struct msr_temp_target * | s | ) | 
Retrieve current minimum temperature (in degree Celsius) at which PROCHOT will be asserted.
| [out] | s | Data for target temperature. | 
| void get_therm_interrupt | ( | struct therm_interrupt * | s | ) | 
Read value of the IA32_THERM_INTERRUPT register and translate bit fields to human-readable values.
| [out] | s | Data for per-core thermal interrupts. | 
| void get_therm_stat | ( | struct therm_stat * | s | ) | 
Read value of the IA32_THERM_STATUS register and translate bit fields to human-readable values.
| [out] | s | Data for per-core thermal status. | 
| void is_init | ( | void | ) | 
Initialize temperature target data – store variable on the heap and read current temperature target.
| void set_pkg_therm_interrupt | ( | struct pkg_therm_interrupt * | s | ) | 
Set value for IA32_PACKAGE_THERM_INTERRUPT across all sockets.
| [in] | s | Data for package-level thermal interrupts. | 
| void set_pkg_therm_stat | ( | struct pkg_therm_stat * | s | ) | 
Set value for IA32_PACKAGE_THERM_STATUS across all sockets.
| [in] | s | Data for package-level thermal status. | 
| void set_therm_interrupt | ( | struct therm_interrupt * | s | ) | 
Set value for IA32_THERM_INTERRUPT across all cores.
| [in] | s | Data for per-core thermal interrupts. | 
| void set_therm_stat | ( | struct therm_stat * | s | ) | 
Set value for IA32_THERM_STATUS across all cores.
| [in] | s | Data for per-core thermal status. | 
| void store_pkg_therm_interrupt | ( | struct pkg_therm_interrupt ** | pi | ) | 
Store the package-level thermal interrupt data on the heap.
| [out] | pi | Pointer to data for package-level thermal interrupts. | 
| void store_pkg_therm_stat | ( | struct pkg_therm_stat ** | ps | ) | 
Store the package-level thermal status data on the heap.
| [out] | ps | Pointer to data for package-level thermal status. | 
| void store_temp_target | ( | struct msr_temp_target ** | tt | ) | 
Store the target temperature data on the heap.
| [out] | tt | Pointer to data for target temperature. | 
| void store_therm_interrupt | ( | struct therm_interrupt ** | ti | ) | 
Store the per-core thermal interrupt data on the heap.
| [out] | ti | Pointer to data for per-core thermal interrupts. | 
| void store_therm_stat | ( | struct therm_stat ** | ts | ) | 
Store the per-core thermal status data on the heap.
| [out] | ts | Pointer to data for per-core thermal status. | 
| int therm2_ctl_storage | ( | uint64_t ** | thermctlref | ) | 
Store the package-level thermal control data on the heap.
| [out] | thermctlref | Pointer to data for package-level thermal control. | 
 1.8.2