Re: [PATCH] intel_pstate: track and export frequency residency stats via sysfs.

2014-09-10 Thread Anup Chenthamarakshan
On Thu, Sep 11, 2014 at 12:49:48AM +0200, Rafael J. Wysocki wrote: > On Wednesday, September 10, 2014 03:15:08 PM Anup Chenthamarakshan wrote: > > > > Tools like powertop and turbostat are not present by default on all systems, > > so it is not always possible to use them

Re: [PATCH] intel_pstate: track and export frequency residency stats via sysfs.

2014-09-10 Thread Anup Chenthamarakshan
On Wed, Sep 10, 2014 at 09:39:30AM -0700, Dirk Brandewie wrote: > On 09/09/2014 04:22 PM, Anup Chenthamarakshan wrote: > >On Tue, Sep 09, 2014 at 08:15:13AM -0700, Dirk Brandewie wrote: > >>On 09/08/2014 05:10 PM, Anup Chenthamarakshan wrote: > >>>Exported stats appe

Re: [PATCH] intel_pstate: track and export frequency residency stats via sysfs.

2014-09-10 Thread Anup Chenthamarakshan
On Wed, Sep 10, 2014 at 09:39:30AM -0700, Dirk Brandewie wrote: On 09/09/2014 04:22 PM, Anup Chenthamarakshan wrote: On Tue, Sep 09, 2014 at 08:15:13AM -0700, Dirk Brandewie wrote: On 09/08/2014 05:10 PM, Anup Chenthamarakshan wrote: Exported stats appear in sysfs/devices/system/cpu

Re: [PATCH] intel_pstate: track and export frequency residency stats via sysfs.

2014-09-10 Thread Anup Chenthamarakshan
On Thu, Sep 11, 2014 at 12:49:48AM +0200, Rafael J. Wysocki wrote: On Wednesday, September 10, 2014 03:15:08 PM Anup Chenthamarakshan wrote: Tools like powertop and turbostat are not present by default on all systems, so it is not always possible to use them :( Which systems are you

Re: [PATCH] intel_pstate: track and export frequency residency stats via sysfs.

2014-09-09 Thread Anup Chenthamarakshan
On Tue, Sep 09, 2014 at 11:56:18AM +0530, Viresh Kumar wrote: > On Tue, Sep 9, 2014 at 11:02 AM, Anup Chenthamarakshan > wrote: > > I had initially tried reusing cpufreq_stats.c to export stats. > > Calling cpufreq_stats_update() via the cpufreq notifier added > > some

Re: [PATCH] intel_pstate: track and export frequency residency stats via sysfs.

2014-09-09 Thread Anup Chenthamarakshan
On Tue, Sep 09, 2014 at 08:15:13AM -0700, Dirk Brandewie wrote: > On 09/08/2014 05:10 PM, Anup Chenthamarakshan wrote: > > Exported stats appear in > > /devices/system/cpu/intel_pstate/time_in_state as follows: > > > > ## CPU 0 > > 40 3647 > > 50 24

Re: [PATCH] intel_pstate: track and export frequency residency stats via sysfs.

2014-09-09 Thread Anup Chenthamarakshan
On Tue, Sep 09, 2014 at 08:15:13AM -0700, Dirk Brandewie wrote: On 09/08/2014 05:10 PM, Anup Chenthamarakshan wrote: Exported stats appear in sysfs/devices/system/cpu/intel_pstate/time_in_state as follows: ## CPU 0 40 3647 50 24342 60 144150 70 202469 ## CPU 1

Re: [PATCH] intel_pstate: track and export frequency residency stats via sysfs.

2014-09-09 Thread Anup Chenthamarakshan
On Tue, Sep 09, 2014 at 11:56:18AM +0530, Viresh Kumar wrote: On Tue, Sep 9, 2014 at 11:02 AM, Anup Chenthamarakshan an...@chromium.org wrote: I had initially tried reusing cpufreq_stats.c to export stats. Calling cpufreq_stats_update() via the cpufreq notifier added some amount

Re: [PATCH] intel_pstate: track and export frequency residency stats via sysfs.

2014-09-08 Thread Anup Chenthamarakshan
On Mon, Sep 8, 2014 at 10:03 PM, Viresh Kumar wrote: > On 9 September 2014 05:40, Anup Chenthamarakshan wrote: >> Exported stats appear in >> /devices/system/cpu/intel_pstate/time_in_state as follows: >> >> ## CPU 0 >> 40 3647 >> 50 24342 >&g

[PATCH] intel_pstate: track and export frequency residency stats via sysfs.

2014-09-08 Thread Anup Chenthamarakshan
Exported stats appear in /devices/system/cpu/intel_pstate/time_in_state as follows: ## CPU 0 40 3647 50 24342 60 144150 70 202469 ## CPU 1 40 4813 50 22628 60 149564 70 211885 80 173890 Signed-off-by: Anup Chenthamarakshan --- drivers/cpufreq/intel_pstate.c

[PATCH] intel_pstate: track and export frequency residency stats via sysfs.

2014-09-08 Thread Anup Chenthamarakshan
Exported stats appear in sysfs/devices/system/cpu/intel_pstate/time_in_state as follows: ## CPU 0 40 3647 50 24342 60 144150 70 202469 ## CPU 1 40 4813 50 22628 60 149564 70 211885 80 173890 Signed-off-by: Anup Chenthamarakshan an...@chromium.org --- drivers

Re: [PATCH] intel_pstate: track and export frequency residency stats via sysfs.

2014-09-08 Thread Anup Chenthamarakshan
On Mon, Sep 8, 2014 at 10:03 PM, Viresh Kumar viresh.ku...@linaro.org wrote: On 9 September 2014 05:40, Anup Chenthamarakshan an...@chromium.org wrote: Exported stats appear in sysfs/devices/system/cpu/intel_pstate/time_in_state as follows: ## CPU 0 40 3647 50 24342 60 144150