#include <stdint.h>
#include "master.h"
Go to the source code of this file.
|
struct | clock_mod |
| Structure containing data for IA32_CLOCK_MODULATION. More...
|
|
struct | clocks_data |
| Structure containing data for IA32_APERF, IA32_MPERF, and IA32_TIME_STAMP_COUNTER. More...
|
|
struct | perf_data |
| Structure containing data for IA32_PERF_STATUS and IA32_PERF_CTL. More...
|
|
Allocate array for storing raw register data from IA32_APERF, IA32_MPERF, and IA32_TIME_STAMP_COUNTER.
There are plans to use a struct to make the indirection less crazy.
- Parameters
-
[in] | cd | Pointer to clock-related data. |
void dump_clock_mod |
( |
struct clock_mod * |
s, |
|
|
FILE * |
writedest |
|
) |
| |
Print clock modulation data.
- Parameters
-
[in] | s | Data for clock modulation. |
[in] | writedest | File stream where output will be written to. |
void dump_clocks_data_readable |
( |
FILE * |
writedest | ) |
|
Print detailed clocks data.
- Parameters
-
[in] | writedest | File stream where output will be written to. |
void dump_clocks_data_terse |
( |
FILE * |
writedest | ) |
|
Print abbreviated clocks data.
- Parameters
-
[in] | writedest | File stream where output will be written to. |
void dump_clocks_data_terse_label |
( |
FILE * |
writedest | ) |
|
Print the label for the abbreviated clocks data print out.
- Parameters
-
[in] | writedest | File stream where output will be written to. |
void dump_p_state |
( |
FILE * |
writedest | ) |
|
Print current p-state.
- Parameters
-
[in] | writedest | File stream where output will be written to. |
void get_clock_mod |
( |
int |
socket, |
|
|
int |
core, |
|
|
struct clock_mod * |
s |
|
) |
| |
Get contents of IA32_CLOCK_MODULATION.
- Parameters
-
[in] | socket | Unique socket/package identifier. |
[in] | core | Unique core identifier. |
[out] | s | Data for clock modulation. |
Allocate array for storing raw register data from IA32_PERF_STATUS and IA32_PERF_CTL.
- Parameters
-
[in] | pd | Pointer to perf-related data. |
int set_clock_mod |
( |
int |
socket, |
|
|
int |
core, |
|
|
struct clock_mod * |
s |
|
) |
| |
Change value of IA32_CLOCK_MODULATION.
- Parameters
-
[in] | socket | Unique socket/package identifier. |
[in] | core | Unique core identifier. |
[in] | s | Data for clock modulation. |
void set_p_state |
( |
unsigned |
socket, |
|
|
uint64_t |
pstate |
|
) |
| |
Request new current p-state.
- Parameters
-
[in] | socket | Unique socket/package identifier. |
[in] | pstate | Desired p-state. |