Re: [PATCH 02/24] cputime: Generic on-demand virtual cputime accounting

2012-12-29 Thread Frederic Weisbecker
2012/12/26 Li Zhong : > On Thu, 2012-12-20 at 19:32 +0100, Frederic Weisbecker wrote: >> diff --git a/init/Kconfig b/init/Kconfig >> index 60579d6..a64b3e8 100644 >> --- a/init/Kconfig >> +++ b/init/Kconfig >> @@ -340,7 +340,9 @@ config TICK_CPU_ACCOUNTING >> >> config VIRT_CPU_ACCOUNTING >>

Re: [PATCH 02/24] cputime: Generic on-demand virtual cputime accounting

2012-12-26 Thread Li Zhong
On Thu, 2012-12-20 at 19:32 +0100, Frederic Weisbecker wrote: > If we want to stop the tick further idle, we need to be > able to account the cputime without using the tick. > > Virtual based cputime accounting solves that problem by > hooking into kernel/user boundaries. > > However implementing

Re: [PATCH 02/24] cputime: Generic on-demand virtual cputime accounting

2012-12-20 Thread Steven Rostedt
On Thu, 2012-12-20 at 19:32 +0100, Frederic Weisbecker wrote: > diff --git a/kernel/sched/cputime.c b/kernel/sched/cputime.c > index 293b202..da0a9e7 100644 > --- a/kernel/sched/cputime.c > +++ b/kernel/sched/cputime.c > @@ -3,6 +3,7 @@ > #include > #include > #include > +#include > #inclu

[PATCH 02/24] cputime: Generic on-demand virtual cputime accounting

2012-12-20 Thread Frederic Weisbecker
If we want to stop the tick further idle, we need to be able to account the cputime without using the tick. Virtual based cputime accounting solves that problem by hooking into kernel/user boundaries. However implementing CONFIG_VIRT_CPU_ACCOUNTING require to set low level hooks and involves more