[PATCH 0/3] processor frequency information on S390

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

 



Since kernel version 4.7, processor frequency information is available
on S390. This patch series extends the parser for both node information
and system information, respectively.

Let's also add a testcase to the test suite for a S390 CPU configuration
running kernel version 4.14 on LPAR.

This goes on top of Andrea's changes in here:
https://www.redhat.com/archives/libvir-list/2017-December/msg00519.html

Bjoern Walk (3):
  util: virhostcpu: parse frequency information on S390
  tests: virhostcputest: testcase for S390 system
  util: virsysinfo: parse frequency information on S390

 src/util/virhostcpu.c                              |  2 +
 src/util/virsysinfo.c                              | 31 +++++++++++++
 .../linux-s390x-with-frequency.cpuinfo             | 52 ++++++++++++++++++++++
 .../linux-s390x-with-frequency.expected            |  1 +
 .../linux-with-frequency/cpu/cpu0/online           |  1 +
 .../linux-with-frequency/cpu/cpu0/topology/book_id |  1 +
 .../cpu/cpu0/topology/book_siblings                |  1 +
 .../cpu/cpu0/topology/book_siblings_list           |  1 +
 .../linux-with-frequency/cpu/cpu0/topology/core_id |  1 +
 .../cpu/cpu0/topology/core_siblings                |  1 +
 .../cpu/cpu0/topology/core_siblings_list           |  1 +
 .../cpu/cpu0/topology/drawer_id                    |  1 +
 .../cpu/cpu0/topology/drawer_siblings              |  1 +
 .../cpu/cpu0/topology/drawer_siblings_list         |  1 +
 .../cpu/cpu0/topology/physical_package_id          |  1 +
 .../cpu/cpu0/topology/thread_siblings              |  1 +
 .../cpu/cpu0/topology/thread_siblings_list         |  1 +
 .../linux-with-frequency/cpu/cpu1/online           |  1 +
 .../linux-with-frequency/cpu/cpu1/topology/book_id |  1 +
 .../cpu/cpu1/topology/book_siblings                |  1 +
 .../cpu/cpu1/topology/book_siblings_list           |  1 +
 .../linux-with-frequency/cpu/cpu1/topology/core_id |  1 +
 .../cpu/cpu1/topology/core_siblings                |  1 +
 .../cpu/cpu1/topology/core_siblings_list           |  1 +
 .../cpu/cpu1/topology/drawer_id                    |  1 +
 .../cpu/cpu1/topology/drawer_siblings              |  1 +
 .../cpu/cpu1/topology/drawer_siblings_list         |  1 +
 .../cpu/cpu1/topology/physical_package_id          |  1 +
 .../cpu/cpu1/topology/thread_siblings              |  1 +
 .../cpu/cpu1/topology/thread_siblings_list         |  1 +
 .../linux-with-frequency/cpu/cpu2/online           |  1 +
 .../linux-with-frequency/cpu/cpu2/topology/book_id |  1 +
 .../cpu/cpu2/topology/book_siblings                |  1 +
 .../cpu/cpu2/topology/book_siblings_list           |  1 +
 .../linux-with-frequency/cpu/cpu2/topology/core_id |  1 +
 .../cpu/cpu2/topology/core_siblings                |  1 +
 .../cpu/cpu2/topology/core_siblings_list           |  1 +
 .../cpu/cpu2/topology/drawer_id                    |  1 +
 .../cpu/cpu2/topology/drawer_siblings              |  1 +
 .../cpu/cpu2/topology/drawer_siblings_list         |  1 +
 .../cpu/cpu2/topology/physical_package_id          |  1 +
 .../cpu/cpu2/topology/thread_siblings              |  1 +
 .../cpu/cpu2/topology/thread_siblings_list         |  1 +
 .../linux-with-frequency/cpu/cpu3/online           |  1 +
 .../linux-with-frequency/cpu/cpu3/topology/book_id |  1 +
 .../cpu/cpu3/topology/book_siblings                |  1 +
 .../cpu/cpu3/topology/book_siblings_list           |  1 +
 .../linux-with-frequency/cpu/cpu3/topology/core_id |  1 +
 .../cpu/cpu3/topology/core_siblings                |  1 +
 .../cpu/cpu3/topology/core_siblings_list           |  1 +
 .../cpu/cpu3/topology/drawer_id                    |  1 +
 .../cpu/cpu3/topology/drawer_siblings              |  1 +
 .../cpu/cpu3/topology/drawer_siblings_list         |  1 +
 .../cpu/cpu3/topology/physical_package_id          |  1 +
 .../cpu/cpu3/topology/thread_siblings              |  1 +
 .../cpu/cpu3/topology/thread_siblings_list         |  1 +
 .../linux-with-frequency/cpu/cpu4/online           |  1 +
 .../linux-with-frequency/cpu/cpu4/topology/book_id |  1 +
 .../cpu/cpu4/topology/book_siblings                |  1 +
 .../cpu/cpu4/topology/book_siblings_list           |  1 +
 .../linux-with-frequency/cpu/cpu4/topology/core_id |  1 +
 .../cpu/cpu4/topology/core_siblings                |  1 +
 .../cpu/cpu4/topology/core_siblings_list           |  1 +
 .../cpu/cpu4/topology/drawer_id                    |  1 +
 .../cpu/cpu4/topology/drawer_siblings              |  1 +
 .../cpu/cpu4/topology/drawer_siblings_list         |  1 +
 .../cpu/cpu4/topology/physical_package_id          |  1 +
 .../cpu/cpu4/topology/thread_siblings              |  1 +
 .../cpu/cpu4/topology/thread_siblings_list         |  1 +
 .../linux-with-frequency/cpu/cpu5/online           |  1 +
 .../linux-with-frequency/cpu/cpu5/topology/book_id |  1 +
 .../cpu/cpu5/topology/book_siblings                |  1 +
 .../cpu/cpu5/topology/book_siblings_list           |  1 +
 .../linux-with-frequency/cpu/cpu5/topology/core_id |  1 +
 .../cpu/cpu5/topology/core_siblings                |  1 +
 .../cpu/cpu5/topology/core_siblings_list           |  1 +
 .../cpu/cpu5/topology/drawer_id                    |  1 +
 .../cpu/cpu5/topology/drawer_siblings              |  1 +
 .../cpu/cpu5/topology/drawer_siblings_list         |  1 +
 .../cpu/cpu5/topology/physical_package_id          |  1 +
 .../cpu/cpu5/topology/thread_siblings              |  1 +
 .../cpu/cpu5/topology/thread_siblings_list         |  1 +
 .../linux-with-frequency/cpu/cpu6/online           |  1 +
 .../linux-with-frequency/cpu/cpu6/topology/book_id |  1 +
 .../cpu/cpu6/topology/book_siblings                |  1 +
 .../cpu/cpu6/topology/book_siblings_list           |  1 +
 .../linux-with-frequency/cpu/cpu6/topology/core_id |  1 +
 .../cpu/cpu6/topology/core_siblings                |  1 +
 .../cpu/cpu6/topology/core_siblings_list           |  1 +
 .../cpu/cpu6/topology/drawer_id                    |  1 +
 .../cpu/cpu6/topology/drawer_siblings              |  1 +
 .../cpu/cpu6/topology/drawer_siblings_list         |  1 +
 .../cpu/cpu6/topology/physical_package_id          |  1 +
 .../cpu/cpu6/topology/thread_siblings              |  1 +
 .../cpu/cpu6/topology/thread_siblings_list         |  1 +
 .../linux-with-frequency/cpu/cpu7/online           |  1 +
 .../linux-with-frequency/cpu/cpu7/topology/book_id |  1 +
 .../cpu/cpu7/topology/book_siblings                |  1 +
 .../cpu/cpu7/topology/book_siblings_list           |  1 +
 .../linux-with-frequency/cpu/cpu7/topology/core_id |  1 +
 .../cpu/cpu7/topology/core_siblings                |  1 +
 .../cpu/cpu7/topology/core_siblings_list           |  1 +
 .../cpu/cpu7/topology/drawer_id                    |  1 +
 .../cpu/cpu7/topology/drawer_siblings              |  1 +
 .../cpu/cpu7/topology/drawer_siblings_list         |  1 +
 .../cpu/cpu7/topology/physical_package_id          |  1 +
 .../cpu/cpu7/topology/thread_siblings              |  1 +
 .../cpu/cpu7/topology/thread_siblings_list         |  1 +
 .../virhostcpudata/linux-with-frequency/cpu/online |  1 +
 .../linux-with-frequency/cpu/present               |  1 +
 tests/virhostcputest.c                             |  1 +
 111 files changed, 193 insertions(+)
 create mode 100644 tests/virhostcpudata/linux-s390x-with-frequency.cpuinfo
 create mode 100644 tests/virhostcpudata/linux-s390x-with-frequency.expected
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu0/online
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu0/topology/book_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu0/topology/book_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu0/topology/book_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu0/topology/core_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu0/topology/core_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu0/topology/core_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu0/topology/drawer_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu0/topology/drawer_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu0/topology/drawer_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu0/topology/physical_package_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu0/topology/thread_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu0/topology/thread_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu1/online
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu1/topology/book_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu1/topology/book_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu1/topology/book_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu1/topology/core_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu1/topology/core_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu1/topology/core_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu1/topology/drawer_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu1/topology/drawer_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu1/topology/drawer_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu1/topology/physical_package_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu1/topology/thread_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu1/topology/thread_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu2/online
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu2/topology/book_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu2/topology/book_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu2/topology/book_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu2/topology/core_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu2/topology/core_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu2/topology/core_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu2/topology/drawer_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu2/topology/drawer_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu2/topology/drawer_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu2/topology/physical_package_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu2/topology/thread_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu2/topology/thread_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu3/online
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu3/topology/book_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu3/topology/book_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu3/topology/book_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu3/topology/core_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu3/topology/core_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu3/topology/core_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu3/topology/drawer_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu3/topology/drawer_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu3/topology/drawer_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu3/topology/physical_package_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu3/topology/thread_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu3/topology/thread_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu4/online
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu4/topology/book_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu4/topology/book_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu4/topology/book_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu4/topology/core_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu4/topology/core_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu4/topology/core_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu4/topology/drawer_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu4/topology/drawer_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu4/topology/drawer_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu4/topology/physical_package_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu4/topology/thread_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu4/topology/thread_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu5/online
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu5/topology/book_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu5/topology/book_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu5/topology/book_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu5/topology/core_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu5/topology/core_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu5/topology/core_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu5/topology/drawer_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu5/topology/drawer_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu5/topology/drawer_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu5/topology/physical_package_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu5/topology/thread_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu5/topology/thread_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu6/online
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu6/topology/book_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu6/topology/book_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu6/topology/book_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu6/topology/core_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu6/topology/core_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu6/topology/core_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu6/topology/drawer_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu6/topology/drawer_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu6/topology/drawer_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu6/topology/physical_package_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu6/topology/thread_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu6/topology/thread_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu7/online
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu7/topology/book_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu7/topology/book_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu7/topology/book_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu7/topology/core_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu7/topology/core_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu7/topology/core_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu7/topology/drawer_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu7/topology/drawer_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu7/topology/drawer_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu7/topology/physical_package_id
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu7/topology/thread_siblings
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/cpu7/topology/thread_siblings_list
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/online
 create mode 100644 tests/virhostcpudata/linux-with-frequency/cpu/present

-- 
2.13.4

--
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