Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\boot\cpuflags.c Create Date:2022-07-28 07:26:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:cpuid_count

Proto:static inline void cpuid_count(unsigned int id, unsigned int count, unsigned int *a, unsigned int *b, unsigned int *c, unsigned int *d)

Type:void

Parameter:

TypeParameterName
unsigned intid
unsigned intcount
unsigned int *a
unsigned int *b
unsigned int *c
unsigned int *d
77  asm volatile
Caller
NameDescribe
get_cpuflags
setup_xstate_featuresRecord the offsets and sizes of various xstates contained* in the XSAVE state memory layout.
xfeature_is_alignedWe could cache this like xstate_size[], but we only use* it here, so it would be a waste of space.
xfeature_uncompacted_offset
xfeature_size
__xstate_dump_leaves
get_xsaves_sizeGet total size of enabled xstates in XCR0/xfeatures_mask.* Note the SDM's wording here. "sub-function 0" only enumerates* the size of the *user* states. If we use it to size a buffer* that we use 'XSAVES' on, we could potentially overflow the
get_xsave_size
fpu__init_system_xstateEnable and initialize the xsave feature.* Called once per system bootup.
cpuid4_cache_lookup_regs
find_num_cache_leaves
cacheinfo_amd_init_llc_id
init_scattered_cpuid_features
detect_num_cpu_cores
init_cqm
get_cpu_cap
intel_pconfig_init
__get_mem_config_intel
__rdt_get_mem_config_amd
rdt_get_cache_alloc_cfg
cpuid_smp_cpuid
set_x2apic_bits