Documentation ¶
Index ¶
Constants ¶
View Source
const ( CpuidFeature = "cpuid" Cpumodel = "model" CstateFeature = "cstate" PstateFeature = "pstate" RdtFeature = "rdt" SeFeature = "se" // DEPRECATED in v0.12: will be removed in the future SecurityFeature = "security" SgxFeature = "sgx" // DEPRECATED in v0.12: will be removed in the future SstFeature = "sst" TopologyFeature = "topology" CoprocessorFeature = "coprocessor" )
View Source
const ( // CPUID EAX input values LEAF_EXT_FEATURE_FLAGS = 0x07 LEAF_RDT_MONITORING = 0x0f LEAF_RDT_ALLOCATION = 0x10 // CPUID ECX input values RDT_MONITORING_SUBLEAF_L3 = 1 // CPUID bitmasks EXT_FEATURE_FLAGS_EBX_RDT_M = 1 << 12 EXT_FEATURE_FLAGS_EBX_RDT_A = 1 << 15 RDT_MONITORING_EDX_L3_MONITORING = 1 << 1 RDT_MONITORING_SUBLEAF_L3_EDX_L3_OCCUPANCY_MONITORING = 1 << 0 RDT_MONITORING_SUBLEAF_L3_EDX_L3_TOTAL_BANDWIDTH_MONITORING = 1 << 1 RDT_MONITORING_SUBLEAF_L3_EDX_L3_LOCAL_BANDWIDTH_MONITORING = 1 << 2 RDT_ALLOCATION_EBX_L3_CACHE_ALLOCATION = 1 << 1 RDT_ALLOCATION_EBX_L2_CACHE_ALLOCATION = 1 << 2 RDT_ALLOCATION_EBX_MEMORY_BANDWIDTH_ALLOCATION = 1 << 3 )
View Source
const (
// LEAF_PROCESSOR_FREQUENCY_INFORMATION is the cpuid leaf to get processor frequency information
LEAF_PROCESSOR_FREQUENCY_INFORMATION = 0x16
)
View Source
const Name = "cpu"
Name of this feature source
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.