Skip to content
Snippets Groups Projects
  1. Sep 23, 2024
  2. Sep 13, 2024
  3. Sep 06, 2024
  4. Sep 04, 2024
  5. Aug 09, 2024
    • Aboorva Devarajan's avatar
      tools/cpupower: display residency value in idle-info · 76fb981a
      Aboorva Devarajan authored
      
      Update cpuidle tool to display the residency value of cpuidle
      states. This addition provides a clearer and more detailed view
      of idle state information when using cpuidle-info.
      
       --------------------------------
       Before Patch:
       --------------------------------
       $ cpupower idle-info
       CPUidle driver: intel_idle
       CPUidle governor: menu
       analyzing CPU 28:
      
       Number of idle states: 3
       Available idle states: POLL C1 C1E
       POLL:
       Flags/Description: CPUIDLE CORE POLL IDLE
       Latency: 0
       Usage: 7448
       Duration: 207170
       C1:
       Flags/Description: MWAIT 0x00
       Latency: 2
       Usage: 7023
       Duration: 3736853
       C1E:
       Flags/Description: MWAIT 0x01
       Latency: 10
       Usage: 18468
       Duration: 11396212
      
       --------------------------------
       After Patch:
       --------------------------------
       $ cpupower idle-info
       CPUidle driver: intel_idle
       CPUidle governor: menu
       analyzing CPU 12:
      
       Number of idle states: 3
       Available idle states: POLL C1 C1E
       POLL:
       Flags/Description: CPUIDLE CORE POLL IDLE
       Latency: 0
       Residency: 0
       Usage: 1950
       Duration: 38458
       C1:
       Flags/Description: MWAIT 0x00
       Latency: 2
       Residency: 2
       Usage: 10688
       Duration: 7133020
       C1E:
       Flags/Description: MWAIT 0x01
       Latency: 10
       Residency: 20
       Usage: 22356
       Duration: 15687259
       --------------------------------
      
      Signed-off-by: default avatarAboorva Devarajan <aboorvad@linux.ibm.com>
      Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
      76fb981a
  6. Jul 26, 2024
  7. Jul 09, 2024
  8. Jul 07, 2024
  9. Jul 02, 2024
    • Roman Storozhenko's avatar
      cpupower: fix lib default installation path · 3a5bb506
      Roman Storozhenko authored
      Invocation the tool built with the default settings fails:
      $ cpupower
      cpupower: error while loading shared libraries: libcpupower.so.1: cannot
      open shared object file: No such file or directory
      
      The issue is that Makefile puts the library to "/usr/lib64" dir for a 64
      bit machine. This is wrong. According to the "File hierarchy standard
      specification:
      https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard
      https://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.pdf
      
      
      
      "/usr/lib<qual>" dirs are intended for alternative-format libraries
      (e.g., "/usr/lib32" for 32-bit libraries on a 64-bit machine (optional)).
      
      The utility is built for the current machine and doesn't handle
      'CROSS_COMPILE' and 'ARCH' env variables. It also doesn't change bit
      depth. So the result is always the same - binary for x86_64
      architecture. Therefore the library should be put in the '/usr/lib'
      dir regardless of the build options.
      This is the case for all the distros that comply with the
      'File Hierarchy Standard 3.0" by Linux Foundation. Most of the distros
      comply with it. For example, one can check this by examining the
      "/usr/lb64" dir on debian-based distros and find that it contains only
      "/usr/lib64/ld-linux-x86-64.so.2". And examine that "/usr/lib" contains
      both 32 and 64 bit code:
      find /usr/lib -name "*.so*" -type f | xargs file | grep 32-bit
      find /usr/lib -name "*.so*" -type f | xargs file | grep 64-bit
      
      Fix the issue by changing library destination dir to "/usr/lib".
      
      Signed-off-by: default avatarRoman Storozhenko <romeusmeister@gmail.com>
      Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
      3a5bb506
  10. Jun 28, 2024
  11. Jun 20, 2024
  12. Jun 18, 2024
  13. Jun 07, 2024
  14. May 28, 2024
Loading