1. 02 6月, 2018 20 次提交
  2. 18 10月, 2017 1 次提交
  3. 25 6月, 2017 3 次提交
  4. 24 6月, 2017 2 次提交
  5. 13 4月, 2017 5 次提交
  6. 05 3月, 2017 1 次提交
  7. 01 3月, 2017 8 次提交
    • L
      tools/power turbostat: version 17.02.24 · e3942ed8
      Len Brown 提交于
      The turbostat before this last set of changes is obsolete.
      This new version can do a lot more, but it also has
      some different defaults, that might catch some off-guard.
      So it seems a good time to give a new version number.
      Signed-off-by: NLen Brown <len.brown@intel.com>
      e3942ed8
    • L
      tools/power turbostat: bugfix: --add u32 was printed as u64 · 5f3aea57
      Len Brown 提交于
      When the "u32" keyword is used with --add, it means that
      the output should be truncated to 32-bits.  This was not
      happening and all 64-bits were printed.
      
      Also, when no column name was used for an added MSR,
      The default column name was in deximal, eg. MSR16.
      Users report that they tend to use hex MSR numbers,
      so print them in hex.  To always fit into the columns,
      use the syntax M0x10.  Note that the user can always
      supply any column header that they want.
      
      eg --add msr0x10,MY_TSC
      Signed-off-by: NLen Brown <len.brown@intel.com>
      5f3aea57
    • L
      tools/power turbostat: show error on exec · 0815a3d0
      Len Brown 提交于
      When turbostat is run in one-shot command mode,
      the parent takes the 'before' counter snapshot,
      fork/exec/wait for the child to exit,
      takes the 'after' counter snapshot,
      and prints the results.
      
      however, if the child fails to exec the command,
      it immediately returns, without indicating that
      anythign was wrong.
      
      Add an error message showing that exec failed:
      
      sudo turbostat sleeeep 4
      ...
      turbostat: exec sleeeep: No such file or directory
      ...
      
      Note that the parent will still print out the statistics,
      because it can't tell the difference between the failed
      exec and a command that is purposefully returning
      the same status.  Unfortunately, this may obscure the
      error message.  However, if the --out parameter is used,
      the error message is evident on stderr.
      Reported-by: NWendy Wang <wendy.wang@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      0815a3d0
    • L
      tools/power turbostat: dump p-state software config · 7293fccd
      Len Brown 提交于
      cpu1: cpufreq driver: acpi-cpufreq
      cpu1: cpufreq governor: ondemand
      cpufreq boost: 1
      
      or
      
      cpu0: cpufreq driver: intel_pstate
      cpu0: cpufreq governor: powersave
      cpufreq intel_pstate no_turbo: 0
      Signed-off-by: NLen Brown <len.brown@intel.com>
      7293fccd
    • L
      tools/power turbostat: show package number, even without --debug · 7da6e3e2
      Len Brown 提交于
      On multi-package systems, the "Package" column was being displayed
      only if --debug was used.  Show it always.
      Signed-off-by: NLen Brown <len.brown@intel.com>
      7da6e3e2
    • L
      tools/power turbostat: support "--hide C1" etc. · dd778a5e
      Len Brown 提交于
      Originally, the only way to hide the sysfs C-state statistics columns
      was with "--hide sysfs".  This was because we process "--hide" before
      we probe for those columns.
      
      hack --hide to remember deferred hide requests, and apply
      them when sysfs is probed.
      
      "--hide sysfs" is still available as short-hand to refer to
      the entire group of counters.
      
      The down-side of this change is that we no longer error check for
      bogus --hide column names.  But the user will quickly figure that
      out if a column they mean to hide is still there...
      Signed-off-by: NLen Brown <len.brown@intel.com>
      dd778a5e
    • L
      tools/power turbostat: move --Package and --processor into the --cpu option · 4e4e1e7c
      Len Brown 提交于
      --Package is now "--cpu package",
      which will display just the 1st CPU in each package
      
      --processor is not "--cpu core"
      which will display just the 1st CPU in each core
      Signed-off-by: NLen Brown <len.brown@intel.com>
      4e4e1e7c
    • L
      tools/power turbostat: update --list feature · 6168c2e0
      Len Brown 提交于
      Make it possible to take the entire un-edited output
      from `turbostat --list` and feed it to "turbostat --show"
      or "turbostat --hide".
      
      To do this, the leading comma was removed
      (no mater what columns are active)
      and also they dynamic C-state "C1, C2, C3" etc are replaced
      by the string "sysfs", which refers to them as a group.
      Signed-off-by: NLen Brown <len.brown@intel.com>
      6168c2e0