函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\boot\cpuflags.c Create Date:2022-07-27 08:25:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:cpuid_count

函数原型:static inline void cpuid_count(unsigned int id, unsigned int count, unsigned int *a, unsigned int *b, unsigned int *c, unsigned int *d)

返回类型:void

参数:

类型参数名称
unsigned intid
unsigned intcount
unsigned int *a
unsigned int *b
unsigned int *c
unsigned int *d
77  asm volatile
调用者
名称描述
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