![]() |
LIKWID
|
Enumerations | |
enum | CpuFeature { FEAT_HW_PREFETCHER =0, FEAT_CL_PREFETCHER, FEAT_DCU_PREFETCHER, FEAT_IP_PREFETCHER, FEAT_FAST_STRINGS, FEAT_THERMAL_CONTROL, FEAT_PERF_MON, FEAT_FERR_MULTIPLEX, FEAT_BRANCH_TRACE_STORAGE, FEAT_XTPR_MESSAGE, FEAT_PEBS, FEAT_SPEEDSTEP, FEAT_MONITOR, FEAT_SPEEDSTEP_LOCK, FEAT_CPUID_MAX_VAL, FEAT_XD_BIT, FEAT_DYN_ACCEL, FEAT_TURBO_MODE, FEAT_TM2, CPUFEATURES_MAX } |
Enumeration of all CPU related features. More... | |
Functions | |
int | cpuFeatures_disable (int cpu, CpuFeature type, int print) __attribute__((visibility("default"))) |
Disable a CPU feature for a specific CPU. More... | |
int | cpuFeatures_enable (int cpu, CpuFeature type, int print) __attribute__((visibility("default"))) |
Enable a CPU feature for a specific CPU. More... | |
int | cpuFeatures_get (int cpu, CpuFeature type) __attribute__((visibility("default"))) |
Get state of a CPU feature for a given CPU. More... | |
void | cpuFeatures_init () __attribute__((visibility("default"))) |
Initialize the internal feature variables for all CPUs. More... | |
char * | cpuFeatures_name (CpuFeature type) __attribute__((visibility("default"))) |
Get the name of a CPU feature. More... | |
void | cpuFeatures_print (int cpu) __attribute__((visibility("default"))) |
Print state of all CPU features for a given CPU. More... | |
enum CpuFeature |
Enumeration of all CPU related features.
int cpuFeatures_disable | ( | int | cpu, |
CpuFeature | type, | ||
int | |||
) |
Disable a CPU feature for a specific CPU.
Disable a CPU feature for a specific CPU. Only the state of the prefetchers can be changed, all other features return -EINVAL
[in] | cpu | CPU ID |
[in] | type | CPU feature |
[in] | Print outcome of operation |
int cpuFeatures_enable | ( | int | cpu, |
CpuFeature | type, | ||
int | |||
) |
Enable a CPU feature for a specific CPU.
Enable a CPU feature for a specific CPU. Only the state of the prefetchers can be changed, all other features return -EINVAL
[in] | cpu | CPU ID |
[in] | type | CPU feature |
[in] | Print outcome of operation |
int cpuFeatures_get | ( | int | cpu, |
CpuFeature | type | ||
) |
Get state of a CPU feature for a given CPU.
Get state of a CPU feature for a given CPU
[in] | cpu | CPU ID |
[in] | type | CPU feature |
void cpuFeatures_init | ( | ) |
Initialize the internal feature variables for all CPUs.
Initialize the internal feature variables for all CPUs
char* cpuFeatures_name | ( | CpuFeature | type | ) |
Get the name of a CPU feature.
Get the name of a CPU feature
[in] | type | CPU feature |
void cpuFeatures_print | ( | int | cpu | ) |
Print state of all CPU features for a given CPU.
Print state of all CPU features for a given CPU
[in] | cpu | CPU ID |