commit | 05ab5dd36afb2f21b6acd9aff5b48cfe815d32c2 | [log] [tgz] |
---|---|---|
author | Tiancong Wang <tcwang@google.com> | Fri May 17 12:10:53 2019 -0700 |
committer | chrome-bot <chrome-bot@chromium.org> | Wed May 22 15:40:06 2019 -0700 |
tree | d3d41ff0a1cf01ff80b14b35336836a414223e9f | |
parent | 3f06bf5fa1c53aa42959d351accc8888eb329343 [diff] |
crosperf: Add check core online in PinGovernerFrequency(). Due to Hyper-Threading is disabled, not all cpus in /sys/devices/system/cpu/cpu* are online on the x86 DUTs. Our PinGovernerFrequency() functions need to write performance to scaling_governor and it fails if the cpu is offline. This patches adds checks before writing to make sure the core is not offline. BUG=None TEST=Local tests. Change-Id: I5dee6851848c18ff9caac0fb5bf5a6a18741a3c8 Reviewed-on: https://chromium-review.googlesource.com/1618095 Commit-Ready: Tiancong Wang <tcwang@google.com> Tested-by: Tiancong Wang <tcwang@google.com> Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org> Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
toolchain-utils
Various utilities used by the Chrome OS toolchain team.
To run Python scripts in this directory, first run:
export PYTHONPATH=$(readlink -f .):$PYTHONPATH
from this directory.
Then you can run any script.
To get help on any script, type in python <script> --help
, or refer to the header of the script for more information.