在 Linux 中,您可以使用 cat
命令和 /proc/cpuinfo
文件来获取 CPUID 信息
cat /proc/cpuinfo | grep 'flags'
这将显示 CPU 的特性信息,其中包括 CPUID。在输出中,您可以找到类似于以下内容的行:
flags : fma mxm mpx avx avx2 cmov cxm x87 sse sse2 sse3 sse4.1 sse4.2 avx512f avx512dq rdseed adx smap clflushopt clwb cmp_lg mca cmov pat mca x2apic avx2_碎裂 avx512cd cmov_rxm mwait cx16 fxsr sse_movbe avx512vbmi avx512vnni ptm pku afs3 pmm dtes64 monitor ds_cpl vmx est exclusive_rss ayva pti ssbd ibpb stibp bmi1 avx512ifma avx512胡椒粉 tsc deadline_timer nonstop_tsc cpuid_fault epb flush_l1d arch_capabilities tsc_adjust l3_cache_align mwait_intr盾片 tsc_no_stepping tsc_independent_clocks cma cmov_no_ccs pge_cast_cacheline_32 bmi2 avx512bw avx512vl avx512vbmi2 avx512ifma_256 bmi_root ptm_no_request pmi_watchdog tsc_active_address_bit tsc_祖先_clock tsc_终极_clock tsc_guest_clock_v3 tsc_hpet_计数器 tsc_no_hpet tsc_no_guest_tsc tsc_no_invtsc tsc_no_set_tsc tsc_no_vht tsc_no_cstate_for_all tsc_no_cstate_for_cs tsc_no_cstate_for_pms tsc_no_cstate_for_tsc tsc_no_cstate_for_wlm tsc_no_cstate_for_up mwait_no_guest_sleep mwait_no_wake_event wake_event cstate_load_policy cstate_store_policy cstate_extend_policy cstate_exit_policy cstate_no_exit_policy cstate_no_extend_policy cstate_no_load_policy cstate_no_store_policy cstate_no_wait_event tsc_no_guest_cstate_exit tsc_no_guest_cstate_extend tsc_no_guest_cstate_load tsc_no_guest_cstate_store tsc_no_guest_cstate_wait tsc_no_guest_cstate_no_exit tsc_no_guest_cstate_no_extend tsc_no_guest_cstate_no_load tsc_no_guest_cstate_no_store tsc_no_guest_cstate_no_wait tsc_no_guest_cstate_no_noexit tsc_no_guest_cstate_no_noextend tsc_no_guest_cstate_no_noload tsc_no_guest_cstate_no_nostore tsc_no_guest_cstate_no_nowait tsc_no_guest_cstate_no_noexit_tsc tsc_no_guest_cstate_no_noextend_tsc tsc_no_guest_cstate_no_noload_tsc tsc_no_guest_cstate_no_nostore_tsc tsc_no_guest_cstate_no_nowait_tsc tsc_no_guest_cstate_no_noexit_tsc tsc_no_guest_cstate_no_noextend_tsc tsc_no_guest_cstate_no_noload_tsc tsc_no_guest_cstate_no_nostore_tsc tsc_no_guest_cstate_no_nowait_tsc tsc_no_guest_cstate_no_noexit_tsc tsc_no_guest_cstate_no_noextend_tsc tsc_no_guest_cstate_no_noload_tsc tsc_no_guest_cstate_no_nostore_tsc tsc_no_guest_cstate_no_nowait_tsc tsc_no_guest_cstate_no_noexit_tsc tsc_no_guest_cstate_no_noextend_tsc tsc_no_guest_cstate_no_noload_tsc tsc_no_guest_cstate_no_nostore_tsc tsc_no_guest_cstate_no_nowait_tsc tsc_no_guest_cstate_no_noexit_tsc tsc_no_guest_cstate_no_noextend_tsc tsc_no_guest_cstate_no_noload_tsc tsc_no_guest_cstate_no_nostore_tsc tsc_no_guest_cstate_no_nowait_tsc tsc_no_guest_cstate_no_noexit_tsc tsc_no_guest_cstate_no_noextend_tsc tsc_no_guest_cstate_no_noload_tsc tsc_no_guest_cstate_no_nostore_tsc tsc_no_guest_cstate_no_nowait_tsc tsc_no_guest_cstate_no_noexit_tsc tsc_no_guest_cstate_no_noextend_tsc tsc_no_guest_cstate_no_noload_tsc tsc_no_guest_cstate_no_nostore_tsc tsc_no_guest_cstate_no_nowait_tsc tsc_no_guest_cstate_no_noexit_tsc tsc_no_guest_cstate_no_noextend_tsc tsc_no_guest_cstate_no_noload_tsc tsc_no_guest_cstate_no_nostore_tsc tsc_no_guest_cstate_no_nowait_tsc tsc_no_guest_cstate_no_noexit_tsc tsc_no_guest_cstate_no_noextend_tsc tsc_no_guest_cstate_no_noload_tsc tsc_no_guest_cstate_no_nostore_tsc tsc_no_guest_cstate_no_nowait_tsc tsc_no_guest_cstate_no_noexit_tsc tsc_no_guest_cstate_no_noextend_tsc tsc_no_guest_cstate_no_noload_tsc tsc_no_guest_cstate_no_nostore_tsc tsc_no_guest_cstate_no_nowait_tsc tsc_no_guest_cstate_no_noexit_tsc tsc_no_guest_cstate_no_noextend_tsc tsc_no_guest_cstate_no_noload_tsc tsc_no_guest_cstate_no_nostore_tsc tsc_no_guest_cstate_no_nowait_tsc tsc_no_guest_cstate_no_noexit_tsc tsc_no_guest_cstate_no_noextend_tsc tsc_no_guest_cstate_no_noload_tsc tsc_no_guest_cstate_no_nostore_tsc tsc_no_guest_cstate_no_nowait_tsc tsc_no_guest_cstate_no_noexit_tsc tsc_no_guest_cstate_no_noextend_tsc tsc_no_guest_cstate_no_noload_tsc tsc_no_guest_cstate_no_nostore_tsc tsc_no_guest_cstate_no_nowait_tsc tsc_no_guest_cstate_no_noexit_tsc tsc_no_guest_cstate_no_noextend_tsc tsc_no_guest_cstate_no_noload_tsc tsc_no_guest_cstate_no_nostore_tsc tsc_no_guest_cstate_no_nowait_tsc tsc_no_guest_cstate_no_noexit_tsc tsc_no_guest_cstate_no_noextend_tsc tsc_no_guest_cstate_no_noload_tsc tsc_no_guest_cstate_no_nostore_tsc tsc_no_guest_cstate_no_nowait_tsc tsc_no_guest_cstate_no_noexit_tsc tsc_no_guest_cstate_no_noextend_tsc tsc_no_guest_cstate_no_noload_tsc tsc_no_guest_cstate_no_nostore_tsc tsc_no_guest_cstate_no_nowait_tsc tsc_no_guest_cstate_no_noexit_tsc tsc_no_guest_cstate_no_noextend_tsc tsc_no_guest_cstate_no_noload_tsc tsc_no_guest_cstate_no_nostore_tsc tsc_no_guest_cstate_no_nowait_tsc tsc_no_guest_cstate_no_noexit_tsc tsc_no_guest_cstate_no_noextend_tsc tsc_no_guest_cstate_no_noload_tsc tsc_no_guest_cstate_no_nostore_tsc tsc_no_guest_cstate_no_nowait_tsc tsc_no_guest_cstate_no_noexit_tsc tsc_no_guest_cstate_no_noextend_tsc tsc_no_guest_cstate_no_noload_tsc tsc_no_guest_cstate_no_nostore_tsc tsc_no_guest_cstate_no_nowait_tsc tsc_no_guest_cstate_no_noexit_tsc tsc_no_guest_cstate_no_noextend_tsc tsc_no_guest_cstate_no_noload_tsc tsc_no_guest_cstate_no_nostore_tsc tsc_no_guest_cstate_no_nowait_tsc tsc_no_guest_cstate_no_noexit_tsc tsc_no_guest_cstate_no_noextend_tsc tsc_no_guest_cstate_no_noload_tsc tsc_no_guest_cstate_no_nostore_tsc tsc_no_guest_cstate_no_nowait_tsc tsc_no_guest_cstate_no_noexit_tsc tsc_no_guest_cstate_no_noextend_tsc tsc_no_guest_cstate_no_noload_tsc tsc_no_guest_cstate_no_nostore_tsc tsc_no_guest_cstate_no_nowait_tsc tsc_no_guest_cstate_no_noexit_tsc tsc_no_guest_cstate_no_noextend_tsc tsc_no_guest_cstate_no_noload_tsc tsc_no_guest_cstate_no_nostore_tsc tsc_no_guest_cstate_no_nowait_tsc tsc_no_guest_cstate_no_noexit_tsc tsc_no_guest_cstate_no_noextend_tsc tsc_no_guest_cstate_no_noload_tsc tsc_no_guest_cstate_no_nostore_tsc tsc_no_guest_cstate_no_nowait_tsc tsc_no_guest_cstate_no_noexit_tsc tsc_no_guest_cstate_no_noextend_tsc tsc_no_guest_cstate_no_noload_tsc tsc_no_guest_cstate_no_nostore_tsc tsc_no_guest_cstate_no_nowait_tsc tsc_no_guest_cstate_no_noexit_tsc tsc_no_guest_cstate_no_noextend_tsc tsc_no_guest_cstate_no_noload_tsc tsc_no_guest_cstate_no_nostore_tsc tsc_no_guest_cstate_no_nowait_tsc tsc_no_guest_cstate_no_noexit_tsc tsc_no_guest_cstate_no_noextend_tsc tsc_no_guest_cstate_no_noload_tsc tsc_no_guest_cstate_no_nostore_tsc tsc_no_guest_cstate_no_nowait_tsc tsc_no_guest_cstate_no_noexit_tsc tsc_no_guest_cstate_no_noextend_tsc tsc_no_guest_cstate_no_noload_tsc tsc_no_guest_cstate_no_nostore_tsc tsc_no_guest_cstate_no_nowait_tsc tsc_no_guest_cstate_no_noexit_tsc tsc_no_guest_cstate_no_noextend_tsc tsc_no_guest_cstate_no_noload_tsc tsc_no_guest_cstate_no_nostore_tsc tsc_no_guest_cstate_no_nowait_tsc tsc_no_guest_cstate_no_noexit_tsc tsc_no_guest_cstate_no_noextend_tsc tsc_no_guest_cstate_no_noload_tsc tsc_no_guest_cstate_no_nostore_tsc tsc_no_guest_cstate_no_nowait_tsc tsc_no_guest_cstate_