通过CPUID命令访问CPU详细信息

通过cpuid命令,来获取CPU的信息,这个命令的底层是通过CPUID指令。获取的内容比/proc/cpuinfo要详细很多,如果要获取详细信息就使用cpuid命令吧。

例如,执行

#cpuid

CPU 0:

   vendor_id = "GenuineIntel"

   version information (1/eax):

      processor type  = primary processor (0)

      family          = Intel Pentium Pro/II/III/Celeron/Core/Core 2/Atom, AMD Athlon/Duron, Cyrix M2, VIA C3

(6)

      model           = 0x5 (5)

      stepping id     = 0x1 (1)

      extended family = 0x0 (0)

      extended model  = 0x4 (4)

      (simple synth)  = Intel Mobile Core i3-4000Y / Mobile Core i5-4000Y / Mobile Core i7-4000Y / Mobile Pent

ium 3500U/3600U/3500Y / Mobile Celeron 2900U (Mobile U/Y) (Haswell), 22nm

   miscellaneous (1/ebx):

      process local APIC physical ID = 0x0 (0)

      cpu count                      = 0x0 (0)

      CLFLUSH line size              = 0x8 (8)

      brand index                    = 0x0 (0)

   brand id = 0x00 (0): unknown

   feature information (1/edx):

      x87 FPU on chip                        = true

      virtual-8086 mode enhancement          = true

      debugging extensions                   = true

      page size extensions                   = true

      time stamp counter                     = true

      RDMSR and WRMSR support                = true

 

1.1.1 参考

https://en.wikipedia.org/wiki/CPUID


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值