]> rtime.felk.cvut.cz Git - linux-imx.git/commit
cpupower: Make monitor command -c/--cpu aware
authorThomas Renninger <trenn@suse.de>
Thu, 11 Aug 2011 23:11:38 +0000 (01:11 +0200)
committerDominik Brodowski <linux@dominikbrodowski.net>
Mon, 15 Aug 2011 18:03:16 +0000 (20:03 +0200)
commit9ee31f618a3c8209b2bd4bedd71fd5f2be7786bd
tree7bd67ee5efdded1de122a334217ef1b553b00de5
parent7c74d2bc5a9d43d33d6f16c1e706147162e2bc52
cpupower: Make monitor command -c/--cpu aware

This allows for example:
cpupower -c 2-4,6 monitor -m Mperf
              |Mperf
PKG |CORE|CPU | C0   | Cx   | Freq
   0|   8|   4|  2.42| 97.58|  1353
   0|  16|   2| 14.38| 85.62|  1928
   0|  24|   6|  1.76| 98.24|  1442
   1|  16|   3| 15.53| 84.47|  1650

CPUs always get resorted for package, core then cpu id if it could get read out
(or however you name these topology levels...).
Still this is a nice way to keep the overview if a test binary is bound to
a specific CPU or if one wants to show all CPUs inside a package or similar.

Still missing: Do not measure not available cores to reduce the overhead
and achieve better results.

Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c