Re: [Xen-devel] [PATCH] xenpm: Add option to report average CPU frequency

2016-01-19 Thread Malcolm Crossley
On 19/01/16 11:35, Ian Campbell wrote: > On Tue, 2016-01-19 at 11:10 +, Malcolm Crossley wrote: >> On 19/01/16 11:06, Ian Campbell wrote: >>> On Tue, 2016-01-19 at 10:50 +, Malcolm Crossley wrote: The average is calculated over the period of time from the last xenpm report of the

Re: [Xen-devel] [PATCH] xenpm: Add option to report average CPU frequency

2016-01-19 Thread Ian Campbell
On Tue, 2016-01-19 at 11:10 +, Malcolm Crossley wrote: > On 19/01/16 11:06, Ian Campbell wrote: > > On Tue, 2016-01-19 at 10:50 +, Malcolm Crossley wrote: > > > The average is calculated over the period of time from the last > > > xenpm report of the average CPU frequency. > > > > > > Repo

Re: [Xen-devel] [PATCH] xenpm: Add option to report average CPU frequency

2016-01-19 Thread Andrew Cooper
On 19/01/16 10:50, Malcolm Crossley wrote: > @@ -343,10 +348,44 @@ void pxstat_func(int argc, char *argv[]) > show_pxstat_by_cpuid(xc_handle, cpuid); > } > > +static int show_cpufreq_by_cpuid(xc_interface *xc_handle, int cpuid) > +{ > +int ret = 0; > + > +ret = get_avgfreq_by_cp

Re: [Xen-devel] [PATCH] xenpm: Add option to report average CPU frequency

2016-01-19 Thread Malcolm Crossley
On 19/01/16 11:06, Ian Campbell wrote: > On Tue, 2016-01-19 at 10:50 +, Malcolm Crossley wrote: >> The average is calculated over the period of time from the last >> xenpm report of the average CPU frequency. >> >> Reporting the average CPU frequency helps confirm the level of turbo >> boost be

Re: [Xen-devel] [PATCH] xenpm: Add option to report average CPU frequency

2016-01-19 Thread Ian Campbell
On Tue, 2016-01-19 at 10:50 +, Malcolm Crossley wrote: > The average is calculated over the period of time from the last > xenpm report of the average CPU frequency. > > Reporting the average CPU frequency helps confirm the level of turbo > boost being achieved per CPU. > > Signed-off-by: Mal

[Xen-devel] [PATCH] xenpm: Add option to report average CPU frequency

2016-01-19 Thread Malcolm Crossley
The average is calculated over the period of time from the last xenpm report of the average CPU frequency. Reporting the average CPU frequency helps confirm the level of turbo boost being achieved per CPU. Signed-off-by: Malcolm Crossley --- tools/misc/xenpm.c | 42 +