1. 14 4月, 2015 2 次提交
  2. 12 3月, 2015 1 次提交
    • J
      Revert "cpupower Makefile change to help run the tool without 'make install'" · b8ea351b
      Josh Boyer 提交于
      This reverts commit 5c1de006.
      
      While the original commit makes it easier to run cpupower from the
      local build directory, it also leaves the binary with a rather poor
      rpath of './' in it after it is installed on a system via 'make install'.
      
      This is considered bad practice and can cause cpupower to fail in
      rpmbuild with the following error:
      
      ERROR   0004: file '/usr/bin/cpupower' contains an insecure rpath './' in [./]
      error: Bad exit status from /var/tmp/rpm-tmp.A6u26r (%install)
          Bad exit status from /var/tmp/rpm-tmp.A6u26r (%install)
      
      Developers should be able to use LD_LIBRARY_PATH to achieve the same
      effect and not introduce rpath into the binary.
      Signed-off-by: NJosh Boyer <jwboyer@feoraproject.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      b8ea351b
  3. 11 2月, 2015 1 次提交
  4. 10 2月, 2015 6 次提交
    • L
      tools/power turbostat: update parameters, documentation · d8af6f5f
      Len Brown 提交于
      Long format options added, though the short ones should still work.
      eg. the new "--Counter 0x10" is the same as the old "-C 0x10"
      
      Note this Incompatibility:
      Old:
      -v displayed verbose debug output
      
      New:
      -v and --version simpaly display version
      
      Additional parameters:
      -d and --debug display verbose debug output
      -h and --help display a help message
      
      Updated turbosat.8 man page accordingly.
      Signed-off-by: NLen Brown <len.brown@intel.com>
      d8af6f5f
    • L
      tools/power turbostat: Skip printing disabled package C-states · ee7e38e3
      Len Brown 提交于
      Replaced previously open-coded Package C-state Limit decoding
      with table-driven decoding.  In doing so, updated to match January 2015
      "Intel(R) 64 and IA-23 Architectures Software Developer's Manual".
      
      In the past, turbostat would print package C-state residency columns
      for all package states supported by the model's architecture, even though
      a particular SKU may not support them, or they may be disabled by the BIOS.
      Now turbostat will skip printing colunns if MSRs indicate that they are not enabled.
      eg. many SKUs don't support PC7, and so that column will no longer be printed.
      Signed-off-by: NLen Brown <len.brown@intel.com>
      ee7e38e3
    • L
      tools/power turbostat: relax dependency on APERF_MSR · a729617c
      Len Brown 提交于
      While turbostat is significantly less useful on systems
      with no APERF_MSR, it seems more friendly
      to run on such systems and report what we can,
      rather than refusing to run.
      
      Update man page to reflect recent changes.
      Signed-off-by: NLen Brown <len.brown@intel.com>
      a729617c
    • L
      tools/power turbostat: relax dependency on invariant TSC · d7899447
      Len Brown 提交于
      Turbostat can be useful on systems that do not support invariant TSC,
      so allow it to run on those systgems.
      
      All arithmetic in turbostat using the TSC value is per-processsor,
      so it does not depend on the TSC values being in sync acrosss processors.
      
      Turbostat uses gettimeofday() for the measurement interval
      rather than using the TSC directly, so that key metric
      is also immune from variable TSC.
      
      Turbostat prints a TSC sanity check column:
      
      TSC_MHz = TSC_delta/interval
      
      If this column is constant and is close to the processor
      base frequency, then the TSC is behaving properly.
      
      The other key turbostat columns are calculated this way:
      
      Avg_Mhz = APERF_delta/interval
      
      %Busy = MPERF_delta/TSC_delta
      
      Bzy_MHz = TSC_delta/APERF_delta/MPERF_delta/interval
      
      Tested on Core2 and Core2-Xeon, and so this patch includes
      a few other changes to remove the assumption that target
      systems are Nehalem and newer.
      Signed-off-by: NLen Brown <len.brown@intel.com>
      d7899447
    • L
      tools/power turbostat: decode MSR_*_PERF_LIMIT_REASONS · 3a9a941d
      Len Brown 提交于
      The Processor generation code-named Haswell
      added MSR_{CORE | GFX | RING}_PERF_LIMIT_REASONS
      to explain when and how the processor limits frequency.
      
      turbostat -v
      will now decode these bits.
      
      Each MSR has an "Active" set of bits which describe
      current conditions, and a "Logged" set of bits,
      which describe what has happened since last cleared.
      
      Turbostat currently doesn't clear the log bits.
      Signed-off-by: NLen Brown <len.brown@intel.com>
      3a9a941d
    • L
      tools/power turbostat: relax dependency on root permission · 98481e79
      Len Brown 提交于
      For turbostat to run as non-root, it needs to permissions:
      
      1. read access to /dev/cpu/*/msr
      	via standard user/group/world file permissions
      
      2. CAP_SYS_RAWIO
      	eg.  # setcap cap_sys_rawio=ep turbostat
      
      Yes, running as root still works.
      Signed-off-by: NLen Brown <len.brown@intel.com>
      98481e79
  5. 05 2月, 2015 1 次提交
  6. 30 1月, 2015 1 次提交
  7. 20 12月, 2014 2 次提交
  8. 15 12月, 2014 1 次提交
  9. 05 12月, 2014 1 次提交
    • P
      tools: cpupower: fix return checks for sysfs_get_idlestate_count() · 16b7c275
      Prarit Bhargava 提交于
      Red Hat and Fedora use a bug reporting tool that gathers data about
      "broken" systems called sosreport.  Among other things, it includes the
      output of 'cpupower idle-info'.  Executing 'cpupower idle-info' on a
      system that has cpuidle disabled via 'cpuidle.off=1' results in a 300
      second hang in the cpupower application.
      
      ie)
      [root@intel-brickland-05]# cpupower idle-info
      Could not determine cpuidle driver
      
      Analyzing CPU 0:
      Number of idle states: -19
      [hang]
      
      The problem is that the cpupower code only checks for a zero return from
      sysfs_get_idlestate_count().  The function can return -ENODEV (-19) as
      above.  This patch fixes callers to sysfs_get_idlestate_count() to check
      the right return values.
      Signed-off-by: NPrarit Bhargava <prarit@redhat.com>
      Signed-off-by: NThomas Renninger <trenn@suse.de>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      16b7c275
  10. 21 10月, 2014 2 次提交
  11. 16 8月, 2014 1 次提交
  12. 30 7月, 2014 3 次提交
  13. 20 7月, 2014 1 次提交
  14. 08 7月, 2014 14 次提交
  15. 29 5月, 2014 1 次提交
  16. 17 5月, 2014 2 次提交
新手
引导
客服 返回
顶部