Skip to content
Snippets Groups Projects
  1. Feb 03, 2023
  2. Feb 02, 2023
    • Ross Zwisler's avatar
      PM: tools: use canonical ftrace path · cf3e0251
      Ross Zwisler authored
      
      The canonical location for the tracefs filesystem is at /sys/kernel/tracing.
      
      But, from Documentation/trace/ftrace.rst:
      
        Before 4.1, all ftrace tracing control files were within the debugfs
        file system, which is typically located at /sys/kernel/debug/tracing.
        For backward compatibility, when mounting the debugfs file system,
        the tracefs file system will be automatically mounted at:
      
        /sys/kernel/debug/tracing
      
      A few scripts in tools/power still refer to this older debugfs path, so
      let's update them to avoid confusion.
      
      Signed-off-by: default avatarRoss Zwisler <zwisler@google.com>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      cf3e0251
  3. Dec 06, 2022
  4. Dec 01, 2022
    • Thomas Renninger's avatar
      cpupower: rapl monitor - shows the used power consumption in uj for each rapl domain · 8c37df3d
      Thomas Renninger authored
      
      This CPU power monitor shows the power consumption
      as exposed by the powercap subsystem, cmp with:
      Documentation/power/powercap/powercap.rst
      
      cpupower monitor -m RAPL
          | RAPL
       CPU| pack | core | unco
         0|6853926|967832|442381
         8|6853926|967832|442381
         1|6853926|967832|442381
         9|6853926|967832|442381
      
      Unfortunately RAPL domains cannot be directly mapped to the corresponding
      CPU socket/package, core it belongs to.
      Not sure this is possible at all with the current data exposed from the
      kernel.
      
      Still it can be worthful information for developers trying to optimize
      power consumption of workloads or their system in general.
      
      Signed-off-by: default avatarThomas Renninger <trenn@suse.de>
      CC: Zhang Rui <rui.zhang@intel.com>
      CC: Shuah Khan <skhan@linuxfoundation.org>
      Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
      8c37df3d
    • Thomas Renninger's avatar
      cpupower: Introduce powercap intel-rapl library and powercap-info command · c2294c14
      Thomas Renninger authored
      
      Read out powercap zone information via:
      cpupower powercap-info
      and show the zone hierarchy to the user:
      
      ./cpupower powercap-info
      Driver: intel-rapl
      Powercap domain hierarchy:
      
      Zone: package-0 (enabled)
      Power consumption can be monitored in micro Watts
      
              Zone: core (disabled)
              Power consumption can be monitored in micro Watts
      
              Zone: uncore (disabled)
              Power consumption can be monitored in micro Watts
      
              Zone: dram (disabled)
              Power consumption can be monitored in micro Watts
      
      There is a dummy -a option for powercap-info which can/should be used to
      show more detailed info later. Like that other args can be added easily
      later as well.
      
      A enable/disable option via powercap-set subcommand is also an enhancement
      for later.
      
      Also not all RAPL domains are shown. The func walking through RAPL
      subdomains is restricted and hardcoded to: "intel-rapl/intel-rapl:0"
      On my system above powercap domains map to:
      intel-rapl/intel-rapl:0
      -> pack (age-0)
      intel-rapl/intel-rapl:0/intel-rapl:0:0
      -> core
      intel-rapl/intel-rapl:0/intel-rapl:0:1
      -> uncore
      
      Missing ones on my system are:
      intel-rapl-mmio/intel-rapl-mmio:0
      -> pack (age-0)
      
      intel-rapl/intel-rapl:1
      -> psys
      
      This could get enhanced in:
      struct powercap_zone *powercap_init_zones()
      and adopted to walk through all intel-rapl zones, but
      also to other powercap drivers like dtpm
      (Dynamic Thermal Power Management framework),
      cmp with: drivers/powercap/dtpm_*
      
      Signed-off-by: default avatarThomas Renninger <trenn@suse.de>
      CC: Shuah Khan <skhan@linuxfoundation.org>
      Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
      c2294c14
    • Zurab Kargareteli's avatar
      cpupower: Add Georgian translation · 4680b734
      Zurab Kargareteli authored
      
      Add Georgian language for cpupower
      
      Signed-off-by: default avatarZurab Kargareteli <zuraxt@gmail.com>
      Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
      4680b734
  5. Nov 25, 2022
    • Saket Kumar Bhaskar's avatar
      tools/cpupower: Choose base_cpu to display default cpupower details · 5975e255
      Saket Kumar Bhaskar authored
      
      The default output of cpupower info utils shows unexpected output
      when CPU 0 is disabled.
      
      Considering a case where CPU 0 is disabled, output of cpupower idle-info:
      
      Before change:
      cpupower idle-info
      CPUidle driver: pseries_idle
      CPUidle governor: menu
      analyzing CPU 0:
       *is offline
      
      After change:
      ./cpupower idle-info
      CPUidle driver: pseries_idle
      CPUidle governor: menu
      analyzing CPU 50:
      
      Number of idle states: 2
      Available idle states: snooze CEDE
      snooze:
      Flags/Description: snooze
      Latency: 0
      Usage: 101748
      Duration: 2724058
      CEDE:
      Flags/Description: CEDE
      Latency: 12
      Usage: 270004
      Duration: 283019526849
      
      If -c option is not passed, CPU 0 was chosen as the default chosen CPU to
      display details. However when CPU 0 is offline, it results in showing
      unexpected output. This commit chooses the base_cpu
      instead of CPU 0, hence keeping the output more relevant in all cases.
      The base_cpu is the number of CPU on which the calling thread is
      currently executing.
      
      Signed-off-by: default avatarSaket Kumar Bhaskar <skb99@linux.vnet.ibm.com>
      Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
      5975e255
  6. Nov 08, 2022
  7. Oct 28, 2022
  8. Oct 25, 2022
    • Todd Brandt's avatar
      pm-graph v5.10 · 9bfb0977
      Todd Brandt authored
      
      sleepgraph:
      - add -wifitrace argument for tracing all the way to wifi reconnect
      - include more data in ftrace to mark the end of kernel resume
      - add async_synchronize_full to the list of funcs to chart
      - add thermal zone info to the log data
      - include a check for s0ix support (s2idle is the default mem_sleep)
      - if s2idle does not support s0ix, remove the SYS%LPI turbostat var
      - fix -dev crash when kprobe caller is just an address (not a symbol)
      - fix the cpuexec data in -proc to display in resume
      
      sleepgraph.8:
      - add -wifitrace documentation
      
      README:
      - change links from 01.org to developer.intel.com
      
      Signed-off-by: default avatarTodd Brandt <todd.e.brandt@intel.com>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      9bfb0977
  9. Oct 04, 2022
  10. Sep 15, 2022
  11. Sep 03, 2022
Loading