On 09.07.2012 17:17, Peter Krempa wrote: > Test filling of nodeinfo structure if /sys/devices/system/node does not > exist. (Based on dump from a real machine) > --- > .../linux-nodeinfo-sysfs-test-5-cpu-x86-output.txt | 1 + > .../linux-nodeinfo-sysfs-test-5-x86.cpuinfo | 100 ++++++++++++++++++++ > .../cpu/cpu0/topology/core_id | 1 + > .../cpu/cpu0/topology/core_siblings | 1 + > .../cpu/cpu0/topology/core_siblings_list | 1 + > .../cpu/cpu0/topology/physical_package_id | 1 + > .../cpu/cpu0/topology/thread_siblings | 1 + > .../cpu/cpu0/topology/thread_siblings_list | 1 + > .../linux-nodeinfo-sysfs-test-5/cpu/cpu1/online | 1 + > .../cpu/cpu1/topology/core_id | 1 + > .../cpu/cpu1/topology/core_siblings | 1 + > .../cpu/cpu1/topology/core_siblings_list | 1 + > .../cpu/cpu1/topology/physical_package_id | 1 + > .../cpu/cpu1/topology/thread_siblings | 1 + > .../cpu/cpu1/topology/thread_siblings_list | 1 + > .../linux-nodeinfo-sysfs-test-5/cpu/cpu2/online | 1 + > .../cpu/cpu2/topology/core_id | 1 + > .../cpu/cpu2/topology/core_siblings | 1 + > .../cpu/cpu2/topology/core_siblings_list | 1 + > .../cpu/cpu2/topology/physical_package_id | 1 + > .../cpu/cpu2/topology/thread_siblings | 1 + > .../cpu/cpu2/topology/thread_siblings_list | 1 + > .../linux-nodeinfo-sysfs-test-5/cpu/cpu3/online | 1 + > .../cpu/cpu3/topology/core_id | 1 + > .../cpu/cpu3/topology/core_siblings | 1 + > .../cpu/cpu3/topology/core_siblings_list | 1 + > .../cpu/cpu3/topology/physical_package_id | 1 + > .../cpu/cpu3/topology/thread_siblings | 1 + > .../cpu/cpu3/topology/thread_siblings_list | 1 + > tests/nodeinfotest.c | 1 + > 30 files changed, 129 insertions(+), 0 deletions(-) > create mode 100644 tests/nodeinfodata/linux-nodeinfo-sysfs-test-5-cpu-x86-output.txt > create mode 100644 tests/nodeinfodata/linux-nodeinfo-sysfs-test-5-x86.cpuinfo > create mode 100644 tests/nodeinfodata/linux-nodeinfo-sysfs-test-5/cpu/cpu0/topology/core_id > create mode 100644 tests/nodeinfodata/linux-nodeinfo-sysfs-test-5/cpu/cpu0/topology/core_siblings > create mode 100644 tests/nodeinfodata/linux-nodeinfo-sysfs-test-5/cpu/cpu0/topology/core_siblings_list > create mode 100644 tests/nodeinfodata/linux-nodeinfo-sysfs-test-5/cpu/cpu0/topology/physical_package_id > create mode 100644 tests/nodeinfodata/linux-nodeinfo-sysfs-test-5/cpu/cpu0/topology/thread_siblings > create mode 100644 tests/nodeinfodata/linux-nodeinfo-sysfs-test-5/cpu/cpu0/topology/thread_siblings_list > create mode 100644 tests/nodeinfodata/linux-nodeinfo-sysfs-test-5/cpu/cpu1/online > create mode 100644 tests/nodeinfodata/linux-nodeinfo-sysfs-test-5/cpu/cpu1/topology/core_id > create mode 100644 tests/nodeinfodata/linux-nodeinfo-sysfs-test-5/cpu/cpu1/topology/core_siblings > create mode 100644 tests/nodeinfodata/linux-nodeinfo-sysfs-test-5/cpu/cpu1/topology/core_siblings_list > create mode 100644 tests/nodeinfodata/linux-nodeinfo-sysfs-test-5/cpu/cpu1/topology/physical_package_id > create mode 100644 tests/nodeinfodata/linux-nodeinfo-sysfs-test-5/cpu/cpu1/topology/thread_siblings > create mode 100644 tests/nodeinfodata/linux-nodeinfo-sysfs-test-5/cpu/cpu1/topology/thread_siblings_list > create mode 100644 tests/nodeinfodata/linux-nodeinfo-sysfs-test-5/cpu/cpu2/online > create mode 100644 tests/nodeinfodata/linux-nodeinfo-sysfs-test-5/cpu/cpu2/topology/core_id > create mode 100644 tests/nodeinfodata/linux-nodeinfo-sysfs-test-5/cpu/cpu2/topology/core_siblings > create mode 100644 tests/nodeinfodata/linux-nodeinfo-sysfs-test-5/cpu/cpu2/topology/core_siblings_list > create mode 100644 tests/nodeinfodata/linux-nodeinfo-sysfs-test-5/cpu/cpu2/topology/physical_package_id > create mode 100644 tests/nodeinfodata/linux-nodeinfo-sysfs-test-5/cpu/cpu2/topology/thread_siblings > create mode 100644 tests/nodeinfodata/linux-nodeinfo-sysfs-test-5/cpu/cpu2/topology/thread_siblings_list > create mode 100644 tests/nodeinfodata/linux-nodeinfo-sysfs-test-5/cpu/cpu3/online > create mode 100644 tests/nodeinfodata/linux-nodeinfo-sysfs-test-5/cpu/cpu3/topology/core_id > create mode 100644 tests/nodeinfodata/linux-nodeinfo-sysfs-test-5/cpu/cpu3/topology/core_siblings > create mode 100644 tests/nodeinfodata/linux-nodeinfo-sysfs-test-5/cpu/cpu3/topology/core_siblings_list > create mode 100644 tests/nodeinfodata/linux-nodeinfo-sysfs-test-5/cpu/cpu3/topology/physical_package_id > create mode 100644 tests/nodeinfodata/linux-nodeinfo-sysfs-test-5/cpu/cpu3/topology/thread_siblings > create mode 100644 tests/nodeinfodata/linux-nodeinfo-sysfs-test-5/cpu/cpu3/topology/thread_siblings_list > > diff --git a/tests/nodeinfodata/linux-nodeinfo-sysfs-test-5-cpu-x86-output.txt b/tests/nodeinfodata/linux-nodeinfo-sysfs-test-5-cpu-x86-output.txt > new file mode 100644 > index 0000000..e63cf76 > --- /dev/null > +++ b/tests/nodeinfodata/linux-nodeinfo-sysfs-test-5-cpu-x86-output.txt > @@ -0,0 +1 @@ > +CPUs: 4/4, MHz: 1861, Nodes: 1, Sockets: 1, Cores: 4, Threads: 1 > diff --git a/tests/nodeinfodata/linux-nodeinfo-sysfs-test-5-x86.cpuinfo b/tests/nodeinfodata/linux-nodeinfo-sysfs-test-5-x86.cpuinfo > new file mode 100644 > index 0000000..0c3fbe8 > --- /dev/null > +++ b/tests/nodeinfodata/linux-nodeinfo-sysfs-test-5-x86.cpuinfo > @@ -0,0 +1,100 @@ > +processor : 0 > +vendor_id : GenuineIntel > +cpu family : 6 > +model : 15 > +model name : Intel(R) Xeon(R) CPU E5320 @ 1.86GHz > +stepping : 7 > +cpu MHz : 1861.965 > +cache size : 4096 KB > +physical id : 0 > +siblings : 4 > +core id : 0 > +cpu cores : 4 > +apicid : 0 > +initial apicid : 0 > +fpu : yes > +fpu_exception : yes > +cpuid level : 10 > +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 lm constant_tsc arch_perfmon pebs bts rep_good pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca lahf_lm tpr_shadow > +bogomips : 3723.93 > +clflush size : 64 > +cache_alignment : 64 > +address sizes : 36 bits physical, 48 bits virtual > +power management: > + > +processor : 1 > +vendor_id : GenuineIntel > +cpu family : 6 > +model : 15 > +model name : Intel(R) Xeon(R) CPU E5320 @ 1.86GHz > +stepping : 7 > +cpu MHz : 1861.965 > +cache size : 4096 KB > +physical id : 0 > +siblings : 4 > +core id : 2 > +cpu cores : 4 > +apicid : 2 > +initial apicid : 2 > +fpu : yes > +fpu_exception : yes > +cpuid level : 10 > +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 lm constant_tsc arch_perfmon pebs bts rep_good pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca lahf_lm tpr_shadow > +bogomips : 3723.85 > +clflush size : 64 > +cache_alignment : 64 > +address sizes : 36 bits physical, 48 bits virtual > +power management: > + > +processor : 2 > +vendor_id : GenuineIntel > +cpu family : 6 > +model : 15 > +model name : Intel(R) Xeon(R) CPU E5320 @ 1.86GHz > +stepping : 7 > +cpu MHz : 1861.965 > +cache size : 4096 KB > +physical id : 0 > +siblings : 4 > +core id : 1 > +cpu cores : 4 > +apicid : 1 > +initial apicid : 1 > +fpu : yes > +fpu_exception : yes > +cpuid level : 10 > +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 lm constant_tsc arch_perfmon pebs bts rep_good pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca lahf_lm tpr_shadow > +bogomips : 3723.86 > +clflush size : 64 > +cache_alignment : 64 > +address sizes : 36 bits physical, 48 bits virtual > +power management: > + > +processor : 3 > +vendor_id : GenuineIntel > +cpu family : 6 > +model : 15 > +model name : Intel(R) Xeon(R) CPU E5320 @ 1.86GHz > +stepping : 7 > +cpu MHz : 1861.965 > +cache size : 4096 KB > +physical id : 0 > +siblings : 4 > +core id : 3 > +cpu cores : 4 > +apicid : 3 > +initial apicid : 3 > +fpu : yes > +fpu_exception : yes > +cpuid level : 10 > +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 lm constant_tsc arch_perfmon pebs bts rep_good pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca lahf_lm tpr_shadow > +bogomips : 3723.85 > +clflush size : 64 > +cache_alignment : 64 > +address sizes : 36 bits physical, 48 bits virtual > +power management: > + Again, ACK modulo this ^^ empty newline. Michal -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list