mirror of https://github.com/ansible/ansible.git
Correctly count processors on ARM systems. (#52884)
- Add unit tests for Linux CPU info - Add cpuinfo output from several systems for unit tests Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>pull/53802/head
parent
fa2e8d8fe1
commit
55306906cf
@ -0,0 +1,40 @@
|
|||||||
|
processor : 0
|
||||||
|
Processor : AArch64 Processor rev 4 (aarch64)
|
||||||
|
Hardware : sun50iw1p1
|
||||||
|
BogoMIPS : 48.00
|
||||||
|
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
|
||||||
|
CPU implementer : 0x41
|
||||||
|
CPU architecture: 8
|
||||||
|
CPU variant : 0x0
|
||||||
|
CPU part : 0xd03
|
||||||
|
CPU revision : 4
|
||||||
|
processor : 1
|
||||||
|
Processor : AArch64 Processor rev 4 (aarch64)
|
||||||
|
Hardware : sun50iw1p1
|
||||||
|
BogoMIPS : 48.00
|
||||||
|
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
|
||||||
|
CPU implementer : 0x41
|
||||||
|
CPU architecture: 8
|
||||||
|
CPU variant : 0x0
|
||||||
|
CPU part : 0xd03
|
||||||
|
CPU revision : 4
|
||||||
|
processor : 2
|
||||||
|
Processor : AArch64 Processor rev 4 (aarch64)
|
||||||
|
Hardware : sun50iw1p1
|
||||||
|
BogoMIPS : 48.00
|
||||||
|
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
|
||||||
|
CPU implementer : 0x41
|
||||||
|
CPU architecture: 8
|
||||||
|
CPU variant : 0x0
|
||||||
|
CPU part : 0xd03
|
||||||
|
CPU revision : 4
|
||||||
|
processor : 3
|
||||||
|
Processor : AArch64 Processor rev 4 (aarch64)
|
||||||
|
Hardware : sun50iw1p1
|
||||||
|
BogoMIPS : 48.00
|
||||||
|
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
|
||||||
|
CPU implementer : 0x41
|
||||||
|
CPU architecture: 8
|
||||||
|
CPU variant : 0x0
|
||||||
|
CPU part : 0xd03
|
||||||
|
CPU revision : 4
|
@ -0,0 +1,32 @@
|
|||||||
|
processor : 0
|
||||||
|
BogoMIPS : 48.00
|
||||||
|
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
|
||||||
|
CPU implementer : 0x41
|
||||||
|
CPU architecture: 8
|
||||||
|
CPU variant : 0x0
|
||||||
|
CPU part : 0xd03
|
||||||
|
CPU revision : 4
|
||||||
|
processor : 1
|
||||||
|
BogoMIPS : 48.00
|
||||||
|
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
|
||||||
|
CPU implementer : 0x41
|
||||||
|
CPU architecture: 8
|
||||||
|
CPU variant : 0x0
|
||||||
|
CPU part : 0xd03
|
||||||
|
CPU revision : 4
|
||||||
|
processor : 2
|
||||||
|
BogoMIPS : 48.00
|
||||||
|
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
|
||||||
|
CPU implementer : 0x41
|
||||||
|
CPU architecture: 8
|
||||||
|
CPU variant : 0x0
|
||||||
|
CPU part : 0xd03
|
||||||
|
CPU revision : 4
|
||||||
|
processor : 3
|
||||||
|
BogoMIPS : 48.00
|
||||||
|
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
|
||||||
|
CPU implementer : 0x41
|
||||||
|
CPU architecture: 8
|
||||||
|
CPU variant : 0x0
|
||||||
|
CPU part : 0xd03
|
||||||
|
CPU revision : 4
|
@ -0,0 +1,12 @@
|
|||||||
|
processor : 0
|
||||||
|
model name : ARMv6-compatible processor rev 7 (v6l)
|
||||||
|
BogoMIPS : 697.95
|
||||||
|
Features : half thumb fastmult vfp edsp java tls
|
||||||
|
CPU implementer : 0x41
|
||||||
|
CPU architecture: 7
|
||||||
|
CPU variant : 0x0
|
||||||
|
CPU part : 0xb76
|
||||||
|
CPU revision : 7
|
||||||
|
Hardware : BCM2835
|
||||||
|
Revision : 0010
|
||||||
|
Serial : 000000004a0abca9
|
@ -0,0 +1,75 @@
|
|||||||
|
processor : 0
|
||||||
|
model name : ARMv7 Processor rev 3 (v7l)
|
||||||
|
BogoMIPS : 12.00
|
||||||
|
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae
|
||||||
|
CPU implementer : 0x41
|
||||||
|
CPU architecture: 7
|
||||||
|
CPU variant : 0x0
|
||||||
|
CPU part : 0xc07
|
||||||
|
CPU revision : 3
|
||||||
|
processor : 1
|
||||||
|
model name : ARMv7 Processor rev 3 (v7l)
|
||||||
|
BogoMIPS : 12.00
|
||||||
|
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae
|
||||||
|
CPU implementer : 0x41
|
||||||
|
CPU architecture: 7
|
||||||
|
CPU variant : 0x0
|
||||||
|
CPU part : 0xc07
|
||||||
|
CPU revision : 3
|
||||||
|
processor : 2
|
||||||
|
model name : ARMv7 Processor rev 3 (v7l)
|
||||||
|
BogoMIPS : 12.00
|
||||||
|
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae
|
||||||
|
CPU implementer : 0x41
|
||||||
|
CPU architecture: 7
|
||||||
|
CPU variant : 0x0
|
||||||
|
CPU part : 0xc07
|
||||||
|
CPU revision : 3
|
||||||
|
processor : 3
|
||||||
|
model name : ARMv7 Processor rev 3 (v7l)
|
||||||
|
BogoMIPS : 12.00
|
||||||
|
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae
|
||||||
|
CPU implementer : 0x41
|
||||||
|
CPU architecture: 7
|
||||||
|
CPU variant : 0x0
|
||||||
|
CPU part : 0xc07
|
||||||
|
CPU revision : 3
|
||||||
|
processor : 4
|
||||||
|
model name : ARMv7 Processor rev 3 (v7l)
|
||||||
|
BogoMIPS : 120.00
|
||||||
|
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae
|
||||||
|
CPU implementer : 0x41
|
||||||
|
CPU architecture: 7
|
||||||
|
CPU variant : 0x2
|
||||||
|
CPU part : 0xc0f
|
||||||
|
CPU revision : 3
|
||||||
|
processor : 5
|
||||||
|
model name : ARMv7 Processor rev 3 (v7l)
|
||||||
|
BogoMIPS : 120.00
|
||||||
|
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae
|
||||||
|
CPU implementer : 0x41
|
||||||
|
CPU architecture: 7
|
||||||
|
CPU variant : 0x2
|
||||||
|
CPU part : 0xc0f
|
||||||
|
CPU revision : 3
|
||||||
|
processor : 6
|
||||||
|
model name : ARMv7 Processor rev 3 (v7l)
|
||||||
|
BogoMIPS : 120.00
|
||||||
|
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae
|
||||||
|
CPU implementer : 0x41
|
||||||
|
CPU architecture: 7
|
||||||
|
CPU variant : 0x2
|
||||||
|
CPU part : 0xc0f
|
||||||
|
CPU revision : 3
|
||||||
|
processor : 7
|
||||||
|
model name : ARMv7 Processor rev 3 (v7l)
|
||||||
|
BogoMIPS : 120.00
|
||||||
|
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae
|
||||||
|
CPU implementer : 0x41
|
||||||
|
CPU architecture: 7
|
||||||
|
CPU variant : 0x2
|
||||||
|
CPU part : 0xc0f
|
||||||
|
CPU revision : 3
|
||||||
|
Hardware : ODROID-XU4
|
||||||
|
Revision : 0100
|
||||||
|
Serial : 0000000000000000
|
@ -0,0 +1,39 @@
|
|||||||
|
processor : 0
|
||||||
|
model name : ARMv7 Processor rev 4 (v7l)
|
||||||
|
BogoMIPS : 38.40
|
||||||
|
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
|
||||||
|
CPU implementer : 0x41
|
||||||
|
CPU architecture: 7
|
||||||
|
CPU variant : 0x0
|
||||||
|
CPU part : 0xd03
|
||||||
|
CPU revision : 4
|
||||||
|
processor : 1
|
||||||
|
model name : ARMv7 Processor rev 4 (v7l)
|
||||||
|
BogoMIPS : 38.40
|
||||||
|
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
|
||||||
|
CPU implementer : 0x41
|
||||||
|
CPU architecture: 7
|
||||||
|
CPU variant : 0x0
|
||||||
|
CPU part : 0xd03
|
||||||
|
CPU revision : 4
|
||||||
|
processor : 2
|
||||||
|
model name : ARMv7 Processor rev 4 (v7l)
|
||||||
|
BogoMIPS : 38.40
|
||||||
|
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
|
||||||
|
CPU implementer : 0x41
|
||||||
|
CPU architecture: 7
|
||||||
|
CPU variant : 0x0
|
||||||
|
CPU part : 0xd03
|
||||||
|
CPU revision : 4
|
||||||
|
processor : 3
|
||||||
|
model name : ARMv7 Processor rev 4 (v7l)
|
||||||
|
BogoMIPS : 38.40
|
||||||
|
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
|
||||||
|
CPU implementer : 0x41
|
||||||
|
CPU architecture: 7
|
||||||
|
CPU variant : 0x0
|
||||||
|
CPU part : 0xd03
|
||||||
|
CPU revision : 4
|
||||||
|
Hardware : BCM2835
|
||||||
|
Revision : a02082
|
||||||
|
Serial : 000000007881bb80
|
@ -0,0 +1,44 @@
|
|||||||
|
processor : 0
|
||||||
|
cpu : POWER7 (architected), altivec supported
|
||||||
|
clock : 3550.000000MHz
|
||||||
|
revision : 2.1 (pvr 003f 0201)
|
||||||
|
|
||||||
|
processor : 1
|
||||||
|
cpu : POWER7 (architected), altivec supported
|
||||||
|
clock : 3550.000000MHz
|
||||||
|
revision : 2.1 (pvr 003f 0201)
|
||||||
|
|
||||||
|
processor : 2
|
||||||
|
cpu : POWER7 (architected), altivec supported
|
||||||
|
clock : 3550.000000MHz
|
||||||
|
revision : 2.1 (pvr 003f 0201)
|
||||||
|
|
||||||
|
processor : 3
|
||||||
|
cpu : POWER7 (architected), altivec supported
|
||||||
|
clock : 3550.000000MHz
|
||||||
|
revision : 2.1 (pvr 003f 0201)
|
||||||
|
|
||||||
|
processor : 4
|
||||||
|
cpu : POWER7 (architected), altivec supported
|
||||||
|
clock : 3550.000000MHz
|
||||||
|
revision : 2.1 (pvr 003f 0201)
|
||||||
|
|
||||||
|
processor : 5
|
||||||
|
cpu : POWER7 (architected), altivec supported
|
||||||
|
clock : 3550.000000MHz
|
||||||
|
revision : 2.1 (pvr 003f 0201)
|
||||||
|
|
||||||
|
processor : 6
|
||||||
|
cpu : POWER7 (architected), altivec supported
|
||||||
|
clock : 3550.000000MHz
|
||||||
|
revision : 2.1 (pvr 003f 0201)
|
||||||
|
|
||||||
|
processor : 7
|
||||||
|
cpu : POWER7 (architected), altivec supported
|
||||||
|
clock : 3550.000000MHz
|
||||||
|
revision : 2.1 (pvr 003f 0201)
|
||||||
|
|
||||||
|
timebase : 512000000
|
||||||
|
platform : pSeries
|
||||||
|
model : IBM,8231-E2B
|
||||||
|
machine : CHRP IBM,8231-E2B
|
@ -0,0 +1,125 @@
|
|||||||
|
processor : 0
|
||||||
|
cpu : POWER8 (architected), altivec supported
|
||||||
|
clock : 3425.000000MHz
|
||||||
|
revision : 2.1 (pvr 004b 0201)
|
||||||
|
|
||||||
|
processor : 1
|
||||||
|
cpu : POWER8 (architected), altivec supported
|
||||||
|
clock : 3425.000000MHz
|
||||||
|
revision : 2.1 (pvr 004b 0201)
|
||||||
|
|
||||||
|
processor : 2
|
||||||
|
cpu : POWER8 (architected), altivec supported
|
||||||
|
clock : 3425.000000MHz
|
||||||
|
revision : 2.1 (pvr 004b 0201)
|
||||||
|
|
||||||
|
processor : 3
|
||||||
|
cpu : POWER8 (architected), altivec supported
|
||||||
|
clock : 3425.000000MHz
|
||||||
|
revision : 2.1 (pvr 004b 0201)
|
||||||
|
|
||||||
|
processor : 4
|
||||||
|
cpu : POWER8 (architected), altivec supported
|
||||||
|
clock : 3425.000000MHz
|
||||||
|
revision : 2.1 (pvr 004b 0201)
|
||||||
|
|
||||||
|
processor : 5
|
||||||
|
cpu : POWER8 (architected), altivec supported
|
||||||
|
clock : 3425.000000MHz
|
||||||
|
revision : 2.1 (pvr 004b 0201)
|
||||||
|
|
||||||
|
processor : 6
|
||||||
|
cpu : POWER8 (architected), altivec supported
|
||||||
|
clock : 3425.000000MHz
|
||||||
|
revision : 2.1 (pvr 004b 0201)
|
||||||
|
|
||||||
|
processor : 7
|
||||||
|
cpu : POWER8 (architected), altivec supported
|
||||||
|
clock : 3425.000000MHz
|
||||||
|
revision : 2.1 (pvr 004b 0201)
|
||||||
|
|
||||||
|
processor : 8
|
||||||
|
cpu : POWER8 (architected), altivec supported
|
||||||
|
clock : 3425.000000MHz
|
||||||
|
revision : 2.1 (pvr 004b 0201)
|
||||||
|
|
||||||
|
processor : 9
|
||||||
|
cpu : POWER8 (architected), altivec supported
|
||||||
|
clock : 3425.000000MHz
|
||||||
|
revision : 2.1 (pvr 004b 0201)
|
||||||
|
|
||||||
|
processor : 10
|
||||||
|
cpu : POWER8 (architected), altivec supported
|
||||||
|
clock : 3425.000000MHz
|
||||||
|
revision : 2.1 (pvr 004b 0201)
|
||||||
|
|
||||||
|
processor : 11
|
||||||
|
cpu : POWER8 (architected), altivec supported
|
||||||
|
clock : 3425.000000MHz
|
||||||
|
revision : 2.1 (pvr 004b 0201)
|
||||||
|
|
||||||
|
processor : 12
|
||||||
|
cpu : POWER8 (architected), altivec supported
|
||||||
|
clock : 3425.000000MHz
|
||||||
|
revision : 2.1 (pvr 004b 0201)
|
||||||
|
|
||||||
|
processor : 13
|
||||||
|
cpu : POWER8 (architected), altivec supported
|
||||||
|
clock : 3425.000000MHz
|
||||||
|
revision : 2.1 (pvr 004b 0201)
|
||||||
|
|
||||||
|
processor : 14
|
||||||
|
cpu : POWER8 (architected), altivec supported
|
||||||
|
clock : 3425.000000MHz
|
||||||
|
revision : 2.1 (pvr 004b 0201)
|
||||||
|
|
||||||
|
processor : 15
|
||||||
|
cpu : POWER8 (architected), altivec supported
|
||||||
|
clock : 3425.000000MHz
|
||||||
|
revision : 2.1 (pvr 004b 0201)
|
||||||
|
|
||||||
|
processor : 16
|
||||||
|
cpu : POWER8 (architected), altivec supported
|
||||||
|
clock : 3425.000000MHz
|
||||||
|
revision : 2.1 (pvr 004b 0201)
|
||||||
|
|
||||||
|
processor : 17
|
||||||
|
cpu : POWER8 (architected), altivec supported
|
||||||
|
clock : 3425.000000MHz
|
||||||
|
revision : 2.1 (pvr 004b 0201)
|
||||||
|
|
||||||
|
processor : 18
|
||||||
|
cpu : POWER8 (architected), altivec supported
|
||||||
|
clock : 3425.000000MHz
|
||||||
|
revision : 2.1 (pvr 004b 0201)
|
||||||
|
|
||||||
|
processor : 19
|
||||||
|
cpu : POWER8 (architected), altivec supported
|
||||||
|
clock : 3425.000000MHz
|
||||||
|
revision : 2.1 (pvr 004b 0201)
|
||||||
|
|
||||||
|
processor : 20
|
||||||
|
cpu : POWER8 (architected), altivec supported
|
||||||
|
clock : 3425.000000MHz
|
||||||
|
revision : 2.1 (pvr 004b 0201)
|
||||||
|
|
||||||
|
processor : 21
|
||||||
|
cpu : POWER8 (architected), altivec supported
|
||||||
|
clock : 3425.000000MHz
|
||||||
|
revision : 2.1 (pvr 004b 0201)
|
||||||
|
|
||||||
|
processor : 22
|
||||||
|
cpu : POWER8 (architected), altivec supported
|
||||||
|
clock : 3425.000000MHz
|
||||||
|
revision : 2.1 (pvr 004b 0201)
|
||||||
|
|
||||||
|
processor : 23
|
||||||
|
cpu : POWER8 (architected), altivec supported
|
||||||
|
clock : 3425.000000MHz
|
||||||
|
revision : 2.1 (pvr 004b 0201)
|
||||||
|
|
||||||
|
timebase : 512000000
|
||||||
|
platform : pSeries
|
||||||
|
model : IBM,8247-21L
|
||||||
|
machine : CHRP IBM,8247-21L
|
||||||
|
|
@ -0,0 +1,56 @@
|
|||||||
|
processor : 0
|
||||||
|
vendor_id : GenuineIntel
|
||||||
|
cpu family : 6
|
||||||
|
model : 62
|
||||||
|
model name : Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz
|
||||||
|
stepping : 4
|
||||||
|
microcode : 0x1
|
||||||
|
cpu MHz : 2799.998
|
||||||
|
cache size : 16384 KB
|
||||||
|
physical id : 0
|
||||||
|
siblings : 1
|
||||||
|
core id : 0
|
||||||
|
cpu cores : 1
|
||||||
|
apicid : 0
|
||||||
|
initial apicid : 0
|
||||||
|
fpu : yes
|
||||||
|
fpu_exception : yes
|
||||||
|
cpuid level : 13
|
||||||
|
wp : yes
|
||||||
|
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp l'
|
||||||
|
m constant_tsc arch_perfmon rep_good nopl xtopology cpuid tsc_known_freq pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadlin'
|
||||||
|
e_timer aes xsave avx f16c rdrand hypervisor lahf_lm pti fsgsbase tsc_adjust smep erms xsaveopt arat
|
||||||
|
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf
|
||||||
|
bogomips : 5602.32
|
||||||
|
clflush size : 64
|
||||||
|
cache_alignment : 64
|
||||||
|
address sizes : 40 bits physical, 48 bits virtual
|
||||||
|
power management:
|
||||||
|
processor : 1
|
||||||
|
vendor_id : GenuineIntel
|
||||||
|
cpu family : 6
|
||||||
|
model : 62
|
||||||
|
model name : Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz
|
||||||
|
stepping : 4
|
||||||
|
microcode : 0x1
|
||||||
|
cpu MHz : 2799.998
|
||||||
|
cache size : 16384 KB
|
||||||
|
physical id : 1
|
||||||
|
siblings : 1
|
||||||
|
core id : 0
|
||||||
|
cpu cores : 1
|
||||||
|
apicid : 1
|
||||||
|
initial apicid : 1
|
||||||
|
fpu : yes
|
||||||
|
fpu_exception : yes
|
||||||
|
cpuid level : 13
|
||||||
|
wp : yes
|
||||||
|
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp l'
|
||||||
|
m constant_tsc arch_perfmon rep_good nopl xtopology cpuid tsc_known_freq pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadlin'
|
||||||
|
e_timer aes xsave avx f16c rdrand hypervisor lahf_lm pti fsgsbase tsc_adjust smep erms xsaveopt arat
|
||||||
|
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf
|
||||||
|
bogomips : 5602.32
|
||||||
|
clflush size : 64
|
||||||
|
cache_alignment : 64
|
||||||
|
address sizes : 40 bits physical, 48 bits virtual
|
||||||
|
power management:
|
@ -0,0 +1,104 @@
|
|||||||
|
processor : 0
|
||||||
|
vendor_id : AuthenticAMD
|
||||||
|
cpu family : 15
|
||||||
|
model : 65
|
||||||
|
model name : Dual-Core AMD Opteron(tm) Processor 2216
|
||||||
|
stepping : 2
|
||||||
|
cpu MHz : 1000.000
|
||||||
|
cache size : 1024 KB
|
||||||
|
physical id : 0
|
||||||
|
siblings : 2
|
||||||
|
core id : 0
|
||||||
|
cpu cores : 2
|
||||||
|
apicid : 0
|
||||||
|
initial apicid : 0
|
||||||
|
fpu : yes
|
||||||
|
fpu_exception : yes
|
||||||
|
cpuid level : 1
|
||||||
|
wp : yes
|
||||||
|
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt '
|
||||||
|
rdtscp lm 3dnowext 3dnow art rep_good nopl extd_apicid pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy retpoline_amd vmmcall
|
||||||
|
bogomips : 1994.60
|
||||||
|
TLB size : 1024 4K pages
|
||||||
|
clflush size : 64
|
||||||
|
cache_alignment : 64
|
||||||
|
address sizes : 40 bits physical, 48 bits virtual
|
||||||
|
power management: ts fid vid ttp tm stc
|
||||||
|
processor : 1
|
||||||
|
vendor_id : AuthenticAMD
|
||||||
|
cpu family : 15
|
||||||
|
model : 65
|
||||||
|
model name : Dual-Core AMD Opteron(tm) Processor 2216
|
||||||
|
stepping : 2
|
||||||
|
cpu MHz : 1000.000
|
||||||
|
cache size : 1024 KB
|
||||||
|
physical id : 0
|
||||||
|
siblings : 2
|
||||||
|
core id : 1
|
||||||
|
cpu cores : 2
|
||||||
|
apicid : 1
|
||||||
|
initial apicid : 1
|
||||||
|
fpu : yes
|
||||||
|
fpu_exception : yes
|
||||||
|
cpuid level : 1
|
||||||
|
wp : yes
|
||||||
|
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt '
|
||||||
|
rdtscp lm 3dnowext 3dnow art rep_good nopl extd_apicid pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy retpoline_amd vmmcall
|
||||||
|
bogomips : 1994.60
|
||||||
|
TLB size : 1024 4K pages
|
||||||
|
clflush size : 64
|
||||||
|
cache_alignment : 64
|
||||||
|
address sizes : 40 bits physical, 48 bits virtual
|
||||||
|
power management: ts fid vid ttp tm stc
|
||||||
|
processor : 2
|
||||||
|
vendor_id : AuthenticAMD
|
||||||
|
cpu family : 15
|
||||||
|
model : 65
|
||||||
|
model name : Dual-Core AMD Opteron(tm) Processor 2216
|
||||||
|
stepping : 2
|
||||||
|
cpu MHz : 1000.000
|
||||||
|
cache size : 1024 KB
|
||||||
|
physical id : 1
|
||||||
|
siblings : 2
|
||||||
|
core id : 0
|
||||||
|
cpu cores : 2
|
||||||
|
apicid : 2
|
||||||
|
initial apicid : 2
|
||||||
|
fpu : yes
|
||||||
|
fpu_exception : yes
|
||||||
|
cpuid level : 1
|
||||||
|
wp : yes
|
||||||
|
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt '
|
||||||
|
rdtscp lm 3dnowext 3dnow art rep_good nopl extd_apicid pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy retpoline_amd vmmcall
|
||||||
|
bogomips : 1994.60
|
||||||
|
TLB size : 1024 4K pages
|
||||||
|
clflush size : 64
|
||||||
|
cache_alignment : 64
|
||||||
|
address sizes : 40 bits physical, 48 bits virtual
|
||||||
|
power management: ts fid vid ttp tm stc
|
||||||
|
processor : 3
|
||||||
|
vendor_id : AuthenticAMD
|
||||||
|
cpu family : 15
|
||||||
|
model : 65
|
||||||
|
model name : Dual-Core AMD Opteron(tm) Processor 2216
|
||||||
|
stepping : 2
|
||||||
|
cpu MHz : 1000.000
|
||||||
|
cache size : 1024 KB
|
||||||
|
physical id : 1
|
||||||
|
siblings : 2
|
||||||
|
core id : 1
|
||||||
|
cpu cores : 2
|
||||||
|
apicid : 3
|
||||||
|
initial apicid : 3
|
||||||
|
fpu : yes
|
||||||
|
fpu_exception : yes
|
||||||
|
cpuid level : 1
|
||||||
|
wp : yes
|
||||||
|
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt '
|
||||||
|
rdtscp lm 3dnowext 3dnow art rep_good nopl extd_apicid pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy retpoline_amd vmmcall
|
||||||
|
bogomips : 1994.60
|
||||||
|
TLB size : 1024 4K pages
|
||||||
|
clflush size : 64
|
||||||
|
cache_alignment : 64
|
||||||
|
address sizes : 40 bits physical, 48 bits virtual
|
||||||
|
power management: ts fid vid ttp tm stc
|
@ -0,0 +1,216 @@
|
|||||||
|
processor : 0
|
||||||
|
vendor_id : GenuineIntel
|
||||||
|
cpu family : 6
|
||||||
|
model : 60
|
||||||
|
model name : Intel(R) Core(TM) i7-4800MQ CPU @ 2.70GHz
|
||||||
|
stepping : 3
|
||||||
|
microcode : 0x20
|
||||||
|
cpu MHz : 2703.625
|
||||||
|
cache size : 6144 KB
|
||||||
|
physical id : 0
|
||||||
|
siblings : 8
|
||||||
|
core id : 0
|
||||||
|
cpu cores : 4
|
||||||
|
apicid : 0
|
||||||
|
initial apicid : 0
|
||||||
|
fpu : yes
|
||||||
|
fpu_exception : yes
|
||||||
|
cpuid level : 13
|
||||||
|
wp : yes
|
||||||
|
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm epb tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts
|
||||||
|
bugs :
|
||||||
|
bogomips : 5388.06
|
||||||
|
clflush size : 64
|
||||||
|
cache_alignment : 64
|
||||||
|
address sizes : 39 bits physical, 48 bits virtual
|
||||||
|
power management:
|
||||||
|
|
||||||
|
processor : 1
|
||||||
|
vendor_id : GenuineIntel
|
||||||
|
cpu family : 6
|
||||||
|
model : 60
|
||||||
|
model name : Intel(R) Core(TM) i7-4800MQ CPU @ 2.70GHz
|
||||||
|
stepping : 3
|
||||||
|
microcode : 0x20
|
||||||
|
cpu MHz : 3398.565
|
||||||
|
cache size : 6144 KB
|
||||||
|
physical id : 0
|
||||||
|
siblings : 8
|
||||||
|
core id : 0
|
||||||
|
cpu cores : 4
|
||||||
|
apicid : 1
|
||||||
|
initial apicid : 1
|
||||||
|
fpu : yes
|
||||||
|
fpu_exception : yes
|
||||||
|
cpuid level : 13
|
||||||
|
wp : yes
|
||||||
|
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm epb tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts
|
||||||
|
bugs :
|
||||||
|
bogomips : 5393.53
|
||||||
|
clflush size : 64
|
||||||
|
cache_alignment : 64
|
||||||
|
address sizes : 39 bits physical, 48 bits virtual
|
||||||
|
power management:
|
||||||
|
|
||||||
|
processor : 2
|
||||||
|
vendor_id : GenuineIntel
|
||||||
|
cpu family : 6
|
||||||
|
model : 60
|
||||||
|
model name : Intel(R) Core(TM) i7-4800MQ CPU @ 2.70GHz
|
||||||
|
stepping : 3
|
||||||
|
microcode : 0x20
|
||||||
|
cpu MHz : 3390.325
|
||||||
|
cache size : 6144 KB
|
||||||
|
physical id : 0
|
||||||
|
siblings : 8
|
||||||
|
core id : 1
|
||||||
|
cpu cores : 4
|
||||||
|
apicid : 2
|
||||||
|
initial apicid : 2
|
||||||
|
fpu : yes
|
||||||
|
fpu_exception : yes
|
||||||
|
cpuid level : 13
|
||||||
|
wp : yes
|
||||||
|
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm epb tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts
|
||||||
|
bugs :
|
||||||
|
bogomips : 5391.63
|
||||||
|
clflush size : 64
|
||||||
|
cache_alignment : 64
|
||||||
|
address sizes : 39 bits physical, 48 bits virtual
|
||||||
|
power management:
|
||||||
|
|
||||||
|
processor : 3
|
||||||
|
vendor_id : GenuineIntel
|
||||||
|
cpu family : 6
|
||||||
|
model : 60
|
||||||
|
model name : Intel(R) Core(TM) i7-4800MQ CPU @ 2.70GHz
|
||||||
|
stepping : 3
|
||||||
|
microcode : 0x20
|
||||||
|
cpu MHz : 3262.774
|
||||||
|
cache size : 6144 KB
|
||||||
|
physical id : 0
|
||||||
|
siblings : 8
|
||||||
|
core id : 1
|
||||||
|
cpu cores : 4
|
||||||
|
apicid : 3
|
||||||
|
initial apicid : 3
|
||||||
|
fpu : yes
|
||||||
|
fpu_exception : yes
|
||||||
|
cpuid level : 13
|
||||||
|
wp : yes
|
||||||
|
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm epb tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts
|
||||||
|
bugs :
|
||||||
|
bogomips : 5392.08
|
||||||
|
clflush size : 64
|
||||||
|
cache_alignment : 64
|
||||||
|
address sizes : 39 bits physical, 48 bits virtual
|
||||||
|
power management:
|
||||||
|
|
||||||
|
processor : 4
|
||||||
|
vendor_id : GenuineIntel
|
||||||
|
cpu family : 6
|
||||||
|
model : 60
|
||||||
|
model name : Intel(R) Core(TM) i7-4800MQ CPU @ 2.70GHz
|
||||||
|
stepping : 3
|
||||||
|
microcode : 0x20
|
||||||
|
cpu MHz : 2905.169
|
||||||
|
cache size : 6144 KB
|
||||||
|
physical id : 0
|
||||||
|
siblings : 8
|
||||||
|
core id : 2
|
||||||
|
cpu cores : 4
|
||||||
|
apicid : 4
|
||||||
|
initial apicid : 4
|
||||||
|
fpu : yes
|
||||||
|
fpu_exception : yes
|
||||||
|
cpuid level : 13
|
||||||
|
wp : yes
|
||||||
|
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm epb tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts
|
||||||
|
bugs :
|
||||||
|
bogomips : 5391.97
|
||||||
|
clflush size : 64
|
||||||
|
cache_alignment : 64
|
||||||
|
address sizes : 39 bits physical, 48 bits virtual
|
||||||
|
power management:
|
||||||
|
|
||||||
|
processor : 5
|
||||||
|
vendor_id : GenuineIntel
|
||||||
|
cpu family : 6
|
||||||
|
model : 60
|
||||||
|
model name : Intel(R) Core(TM) i7-4800MQ CPU @ 2.70GHz
|
||||||
|
stepping : 3
|
||||||
|
microcode : 0x20
|
||||||
|
cpu MHz : 1834.826
|
||||||
|
cache size : 6144 KB
|
||||||
|
physical id : 0
|
||||||
|
siblings : 8
|
||||||
|
core id : 2
|
||||||
|
cpu cores : 4
|
||||||
|
apicid : 5
|
||||||
|
initial apicid : 5
|
||||||
|
fpu : yes
|
||||||
|
fpu_exception : yes
|
||||||
|
cpuid level : 13
|
||||||
|
wp : yes
|
||||||
|
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm epb tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts
|
||||||
|
bugs :
|
||||||
|
bogomips : 5392.11
|
||||||
|
clflush size : 64
|
||||||
|
cache_alignment : 64
|
||||||
|
address sizes : 39 bits physical, 48 bits virtual
|
||||||
|
power management:
|
||||||
|
|
||||||
|
processor : 6
|
||||||
|
vendor_id : GenuineIntel
|
||||||
|
cpu family : 6
|
||||||
|
model : 60
|
||||||
|
model name : Intel(R) Core(TM) i7-4800MQ CPU @ 2.70GHz
|
||||||
|
stepping : 3
|
||||||
|
microcode : 0x20
|
||||||
|
cpu MHz : 2781.573
|
||||||
|
cache size : 6144 KB
|
||||||
|
physical id : 0
|
||||||
|
siblings : 8
|
||||||
|
core id : 3
|
||||||
|
cpu cores : 4
|
||||||
|
apicid : 6
|
||||||
|
initial apicid : 6
|
||||||
|
fpu : yes
|
||||||
|
fpu_exception : yes
|
||||||
|
cpuid level : 13
|
||||||
|
wp : yes
|
||||||
|
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm epb tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts
|
||||||
|
bugs :
|
||||||
|
bogomips : 5391.98
|
||||||
|
clflush size : 64
|
||||||
|
cache_alignment : 64
|
||||||
|
address sizes : 39 bits physical, 48 bits virtual
|
||||||
|
power management:
|
||||||
|
|
||||||
|
processor : 7
|
||||||
|
vendor_id : GenuineIntel
|
||||||
|
cpu family : 6
|
||||||
|
model : 60
|
||||||
|
model name : Intel(R) Core(TM) i7-4800MQ CPU @ 2.70GHz
|
||||||
|
stepping : 3
|
||||||
|
microcode : 0x20
|
||||||
|
cpu MHz : 3593.353
|
||||||
|
cache size : 6144 KB
|
||||||
|
physical id : 0
|
||||||
|
siblings : 8
|
||||||
|
core id : 3
|
||||||
|
cpu cores : 4
|
||||||
|
apicid : 7
|
||||||
|
initial apicid : 7
|
||||||
|
fpu : yes
|
||||||
|
fpu_exception : yes
|
||||||
|
cpuid level : 13
|
||||||
|
wp : yes
|
||||||
|
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm epb tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts
|
||||||
|
bugs :
|
||||||
|
bogomips : 5392.07
|
||||||
|
clflush size : 64
|
||||||
|
cache_alignment : 64
|
||||||
|
address sizes : 39 bits physical, 48 bits virtual
|
||||||
|
power management:
|
||||||
|
|
@ -0,0 +1,22 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Copyright (c) 2019 Ansible Project
|
||||||
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||||
|
|
||||||
|
from __future__ import absolute_import, division, print_function
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
|
from ansible.module_utils.facts.hardware import linux
|
||||||
|
|
||||||
|
from . linux_data import CPU_INFO_TEST_SCENARIOS
|
||||||
|
|
||||||
|
|
||||||
|
def test_get_cpu_info(mocker):
|
||||||
|
module = mocker.Mock()
|
||||||
|
inst = linux.LinuxHardware(module)
|
||||||
|
|
||||||
|
mocker.patch('os.path.exists', return_value=False)
|
||||||
|
mocker.patch('os.access', return_value=True)
|
||||||
|
for test in CPU_INFO_TEST_SCENARIOS:
|
||||||
|
mocker.patch('ansible.module_utils.facts.hardware.linux.get_file_lines', side_effect=[[], test['cpuinfo']])
|
||||||
|
collected_facts = {'ansible_architecture': test['architecture']}
|
||||||
|
assert test['expected_result'] == inst.get_cpu_facts(collected_facts=collected_facts)
|
Loading…
Reference in New Issue