Function report |
Source Code:arch\x86\kernel\cpu\cacheinfo.c |
Create Date:2022-07-28 07:53:55 |
| Last Modify:2020-03-16 20:07:28 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:cpuid4_cache_lookup_regs
Proto:static int cpuid4_cache_lookup_regs(int index, struct _cpuid4_info_regs *this_leaf)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| int | index | |
| struct _cpuid4_info_regs * | this_leaf |
| 600 | If CPU vendor == X86_VENDOR_AMD Then |
| 601 | If boot_cpu_has(Topology extensions CPUID leafs ) Then cpuid_count(0x8000001d, index, & full, & full, & full, & edx) |
| 604 | Else amd_cpuid4(index, & eax, & ebx, & ecx) |
| 607 | Else if CPU vendor == X86_VENDOR_HYGON Then |
| 611 | Else |
| 615 | If type == CTYPE_NULL Then Return -EIO |
| 621 | size = (number_of_sets + 1) * (coherency_line_size + 1) * (physical_line_partition + 1) * (ways_of_associativity + 1) |
| 625 | Return 0 |
| Name | Describe |
|---|---|
| init_intel_cacheinfo | |
| __populate_cache_leaves |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |