[PATCH v3 0/5] Improvements to CPU frequency reporting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Changes from [v2]:

* improve the parser;
* print the architecture name instead of "your architecture".

Changes from [v1]:

* adopt Bjoern's approach to refactoring.

[v2] https://www.redhat.com/archives/libvir-list/2017-December/msg00467.html
[v1] https://www.redhat.com/archives/libvir-list/2017-December/msg00356.html

Andrea Bolognani (4):
  tests: Add host CPU data for Moonshot (RHEL 7.4)
  util: Print architecture name in /proc/cpuinfo parser
  util: Improve CPU frequency parsing
  util: Don't report CPU frequency for ARM hosts

Bjoern Walk (1):
  util: virhostcpu: factor out frequency parsing

 src/Makefile.am                                    |   1 +
 src/util/virhostcpu.c                              | 188 ++++++++++++---------
 .../linux-aarch64-rhel74-moonshot.cpuinfo          |  72 ++++++++
 .../linux-aarch64-rhel74-moonshot.expected         |   1 +
 .../linux-armv6l-raspberrypi.expected              |   2 +-
 .../linux-rhel74-moonshot/cpu/cpu0/node0           |   1 +
 .../linux-rhel74-moonshot/cpu/cpu0/online          |   1 +
 .../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-rhel74-moonshot/cpu/cpu1/node0           |   1 +
 .../linux-rhel74-moonshot/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-rhel74-moonshot/cpu/cpu2/node0           |   1 +
 .../linux-rhel74-moonshot/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-rhel74-moonshot/cpu/cpu3/node0           |   1 +
 .../linux-rhel74-moonshot/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 +
 .../linux-rhel74-moonshot/cpu/cpu4/node0           |   1 +
 .../linux-rhel74-moonshot/cpu/cpu4/online          |   1 +
 .../cpu/cpu4/topology/core_id                      |   1 +
 .../cpu/cpu4/topology/core_siblings                |   1 +
 .../cpu/cpu4/topology/core_siblings_list           |   1 +
 .../cpu/cpu4/topology/physical_package_id          |   1 +
 .../cpu/cpu4/topology/thread_siblings              |   1 +
 .../cpu/cpu4/topology/thread_siblings_list         |   1 +
 .../linux-rhel74-moonshot/cpu/cpu5/node0           |   1 +
 .../linux-rhel74-moonshot/cpu/cpu5/online          |   1 +
 .../cpu/cpu5/topology/core_id                      |   1 +
 .../cpu/cpu5/topology/core_siblings                |   1 +
 .../cpu/cpu5/topology/core_siblings_list           |   1 +
 .../cpu/cpu5/topology/physical_package_id          |   1 +
 .../cpu/cpu5/topology/thread_siblings              |   1 +
 .../cpu/cpu5/topology/thread_siblings_list         |   1 +
 .../linux-rhel74-moonshot/cpu/cpu6/node0           |   1 +
 .../linux-rhel74-moonshot/cpu/cpu6/online          |   1 +
 .../cpu/cpu6/topology/core_id                      |   1 +
 .../cpu/cpu6/topology/core_siblings                |   1 +
 .../cpu/cpu6/topology/core_siblings_list           |   1 +
 .../cpu/cpu6/topology/physical_package_id          |   1 +
 .../cpu/cpu6/topology/thread_siblings              |   1 +
 .../cpu/cpu6/topology/thread_siblings_list         |   1 +
 .../linux-rhel74-moonshot/cpu/cpu7/node0           |   1 +
 .../linux-rhel74-moonshot/cpu/cpu7/online          |   1 +
 .../cpu/cpu7/topology/core_id                      |   1 +
 .../cpu/cpu7/topology/core_siblings                |   1 +
 .../cpu/cpu7/topology/core_siblings_list           |   1 +
 .../cpu/cpu7/topology/physical_package_id          |   1 +
 .../cpu/cpu7/topology/thread_siblings              |   1 +
 .../cpu/cpu7/topology/thread_siblings_list         |   1 +
 .../linux-rhel74-moonshot/cpu/kernel_max           |   1 +
 .../linux-rhel74-moonshot/cpu/offline              |   1 +
 .../linux-rhel74-moonshot/cpu/online               |   1 +
 .../linux-rhel74-moonshot/cpu/possible             |   1 +
 .../linux-rhel74-moonshot/cpu/present              |   1 +
 .../linux-rhel74-moonshot/node/has_cpu             |   1 +
 .../linux-rhel74-moonshot/node/has_memory          |   1 +
 .../linux-rhel74-moonshot/node/has_normal_memory   |   1 +
 .../linux-rhel74-moonshot/node/node0/cpu0          |   1 +
 .../linux-rhel74-moonshot/node/node0/cpu1          |   1 +
 .../linux-rhel74-moonshot/node/node0/cpu2          |   1 +
 .../linux-rhel74-moonshot/node/node0/cpu3          |   1 +
 .../linux-rhel74-moonshot/node/node0/cpu4          |   1 +
 .../linux-rhel74-moonshot/node/node0/cpu5          |   1 +
 .../linux-rhel74-moonshot/node/node0/cpu6          |   1 +
 .../linux-rhel74-moonshot/node/node0/cpu7          |   1 +
 .../linux-rhel74-moonshot/node/node0/cpulist       |   1 +
 .../linux-rhel74-moonshot/node/node0/cpumap        |   1 +
 .../linux-rhel74-moonshot/node/online              |   1 +
 .../linux-rhel74-moonshot/node/possible            |   1 +
 tests/virhostcpudata/linux-x86_64-test1.cpuinfo    |   4 +
 tests/virhostcputest.c                             |   1 +
 91 files changed, 273 insertions(+), 80 deletions(-)
 create mode 100644 tests/virhostcpudata/linux-aarch64-rhel74-moonshot.cpuinfo
 create mode 100644 tests/virhostcpudata/linux-aarch64-rhel74-moonshot.expected
 create mode 120000 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu0/node0
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu0/online
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu0/topology/core_id
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu0/topology/core_siblings
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu0/topology/core_siblings_list
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu0/topology/physical_package_id
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu0/topology/thread_siblings
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu0/topology/thread_siblings_list
 create mode 120000 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu1/node0
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu1/online
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu1/topology/core_id
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu1/topology/core_siblings
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu1/topology/core_siblings_list
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu1/topology/physical_package_id
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu1/topology/thread_siblings
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu1/topology/thread_siblings_list
 create mode 120000 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu2/node0
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu2/online
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu2/topology/core_id
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu2/topology/core_siblings
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu2/topology/core_siblings_list
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu2/topology/physical_package_id
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu2/topology/thread_siblings
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu2/topology/thread_siblings_list
 create mode 120000 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu3/node0
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu3/online
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu3/topology/core_id
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu3/topology/core_siblings
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu3/topology/core_siblings_list
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu3/topology/physical_package_id
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu3/topology/thread_siblings
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu3/topology/thread_siblings_list
 create mode 120000 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu4/node0
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu4/online
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu4/topology/core_id
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu4/topology/core_siblings
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu4/topology/core_siblings_list
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu4/topology/physical_package_id
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu4/topology/thread_siblings
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu4/topology/thread_siblings_list
 create mode 120000 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu5/node0
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu5/online
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu5/topology/core_id
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu5/topology/core_siblings
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu5/topology/core_siblings_list
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu5/topology/physical_package_id
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu5/topology/thread_siblings
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu5/topology/thread_siblings_list
 create mode 120000 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu6/node0
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu6/online
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu6/topology/core_id
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu6/topology/core_siblings
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu6/topology/core_siblings_list
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu6/topology/physical_package_id
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu6/topology/thread_siblings
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu6/topology/thread_siblings_list
 create mode 120000 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu7/node0
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu7/online
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu7/topology/core_id
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu7/topology/core_siblings
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu7/topology/core_siblings_list
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu7/topology/physical_package_id
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu7/topology/thread_siblings
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/cpu7/topology/thread_siblings_list
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/kernel_max
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/offline
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/online
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/possible
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/cpu/present
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/node/has_cpu
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/node/has_memory
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/node/has_normal_memory
 create mode 120000 tests/virhostcpudata/linux-rhel74-moonshot/node/node0/cpu0
 create mode 120000 tests/virhostcpudata/linux-rhel74-moonshot/node/node0/cpu1
 create mode 120000 tests/virhostcpudata/linux-rhel74-moonshot/node/node0/cpu2
 create mode 120000 tests/virhostcpudata/linux-rhel74-moonshot/node/node0/cpu3
 create mode 120000 tests/virhostcpudata/linux-rhel74-moonshot/node/node0/cpu4
 create mode 120000 tests/virhostcpudata/linux-rhel74-moonshot/node/node0/cpu5
 create mode 120000 tests/virhostcpudata/linux-rhel74-moonshot/node/node0/cpu6
 create mode 120000 tests/virhostcpudata/linux-rhel74-moonshot/node/node0/cpu7
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/node/node0/cpulist
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/node/node0/cpumap
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/node/online
 create mode 100644 tests/virhostcpudata/linux-rhel74-moonshot/node/possible

-- 
2.14.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux