#include <stdint.h>
#include <stdio.h>
#include <sys/types.h>
#include "master.h"
Go to the source code of this file.
|
struct | misc_enable |
| Structure containing enabled/disabled platform-specific features as encoded in IA32_MISC_ENABLE. More...
|
|
struct | pkg_cres |
| Structure holding package domain C-states residency data. More...
|
|
struct | core_cres |
| Structure holding core domain C-states residency data. More...
|
|
|
void | dump_misc_enable (struct misc_enable *s) |
| Print list of enabled/disabled platform features as encoded in IA32_MISC_ENABLE.
|
|
void | get_misc_enable (unsigned socket, struct misc_enable *s) |
| Read value of IA32_MISC_ENABLE and decode bit fields to determine enabled/disabled features on platform.
|
|
void | set_misc_enable (unsigned socket, struct misc_enable *s) |
| Set value of IA32_MISC_ENABLE based on desired enabled/disabled features for platform.
|
|
void | pkg_cres_storage (struct pkg_cres **pcr) |
| Initialize storage of package-level C-state residencies.
|
|
void | core_cres_storage (struct core_cres **ccr) |
| Initialize storage of core-level C-state residencies.
|
|
void | dump_pkg_cres_label (FILE *writedest) |
| Print labels for package-level C-states.
|
|
void | dump_pkg_cres (FILE *writedest) |
| Read package-level C-state residencies and print contents.
|
|
void | dump_core_cres_label (FILE *writedest) |
| Print labels for core-level C-states.
|
|
void | dump_core_cres (FILE *writedest) |
| Read core -level C-state residencies and print contents.
|
|
void core_cres_storage |
( |
struct core_cres ** |
ccr | ) |
|
Initialize storage of core-level C-state residencies.
- Parameters
-
[out] | ccr | Pointer to core-level C-state residency data. |
void dump_core_cres |
( |
FILE * |
writedest | ) |
|
Read core -level C-state residencies and print contents.
- Parameters
-
[in] | writedest | File stream where output will be written to. |
void dump_core_cres_label |
( |
FILE * |
writedest | ) |
|
Print labels for core-level C-states.
- Parameters
-
[in] | writedest | File stream where output will be written to. |
Print list of enabled/disabled platform features as encoded in IA32_MISC_ENABLE.
- Parameters
-
[in] | s | Pointer to list of platform feature data. |
void dump_pkg_cres |
( |
FILE * |
writedest | ) |
|
Read package-level C-state residencies and print contents.
- Parameters
-
[in] | writedest | File stream where output will be written to. |
void dump_pkg_cres_label |
( |
FILE * |
writedest | ) |
|
Print labels for package-level C-states.
- Parameters
-
[in] | writedest | File stream where output will be written to. |
void get_misc_enable |
( |
unsigned |
socket, |
|
|
struct misc_enable * |
s |
|
) |
| |
Read value of IA32_MISC_ENABLE and decode bit fields to determine enabled/disabled features on platform.
- Parameters
-
[in] | socket | Unique socket/package identifier. |
[out] | s | Data indicating enabled/disabled features. |
void pkg_cres_storage |
( |
struct pkg_cres ** |
pcr | ) |
|
Initialize storage of package-level C-state residencies.
- Parameters
-
[out] | pcr | Pointer to package-level C-state residency data. |
void set_misc_enable |
( |
unsigned |
socket, |
|
|
struct misc_enable * |
s |
|
) |
| |
Set value of IA32_MISC_ENABLE based on desired enabled/disabled features for platform.
- Parameters
-
[in] | socket | Unique socket/package identifier. |
[in] | s | Data indicating enabled/disabled features. |