xenpm tool enhancements
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 8 Jan 2009 11:21:23 +0000 (11:21 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 8 Jan 2009 11:21:23 +0000 (11:21 +0000)
commit6df92ebc3022fa27c6bcf5bbcda1c2ccd24c1c17
treed77e1691efff559f9a6ada50300d93086b31bc64
parent51f2134fab26bce424ee30711b194f700234c13d
xenpm tool enhancements

Two enhancements are made in this patch:

1. Make cpuid in command line optional: if user does not provide
cpuid, xenpm will operate on all the CPUs. this will easy the xenpm
usage. e.g. to set the cpufreq governor, user usually want to set the
governor on all CPUs. User can accomplish this easily with this
enhancement.

2. Add another option "xenpm start" to calculate the Cx/Px state
residency percentage during specified period. when user issue "xenpm
start", xenpm will start to record the Cx/Px state residency. when
user issue CTRL-C, xenpm will stop and show the Cx/Px state residency
and percentage of this period. this is helpful to measure the xenpm
effect for speficied workload.

Signed-off-by: Guanqun Lu <guanqun.lu@intel.com>Signed-off-by: Ke Yu <ke.yu@intel.com>
tools/misc/xenpm.c