search for: cputime_add

Displaying 10 results from an estimated 10 matches for "cputime_add".

Did you mean: cputime64_add
2007 Aug 16
0
[PATCH/RFC 2/4]Introduce a new field "guest" in task_struct
...= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kvm.orig/kernel/exit.c 2007-08-16 15:23:52.000000000 +0200 +++ kvm/kernel/exit.c 2007-08-16 15:36:54.000000000 +0200 @@ -120,6 +120,7 @@ */ sig->utime =3D cputime_add(sig->utime, tsk->utime); sig->stime =3D cputime_add(sig->stime, tsk->stime); + sig->gtime =3D cputime_add(sig->gtime, tsk->gtime); sig->min_flt +=3D tsk->min_flt; sig->maj_flt +=3D tsk->maj_flt; sig->nvcsw +=3D tsk->nvcsw; @@ -1255,6 +1256,11 @...
2007 Aug 16
0
[PATCH/RFC 2/4]Introduce a new field "guest" in task_struct
...= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kvm.orig/kernel/exit.c 2007-08-16 15:23:52.000000000 +0200 +++ kvm/kernel/exit.c 2007-08-16 15:36:54.000000000 +0200 @@ -120,6 +120,7 @@ */ sig->utime =3D cputime_add(sig->utime, tsk->utime); sig->stime =3D cputime_add(sig->stime, tsk->stime); + sig->gtime =3D cputime_add(sig->gtime, tsk->gtime); sig->min_flt +=3D tsk->min_flt; sig->maj_flt +=3D tsk->maj_flt; sig->nvcsw +=3D tsk->nvcsw; @@ -1255,6 +1256,11 @...
2007 Aug 20
3
[PATCH 2/4] Introduce a new fields "gtime" and "cgtime" in task_struct and signal_struct
...=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kvm.orig/kernel/exit.c 2007-08-20 11:11:30.000000000 +0200 +++ kvm/kernel/exit.c 2007-08-20 12:32:08.000000000 +0200 @@ -120,6 +120,9 @@ static void __exit_signal(struct task_st */ sig->utime =3D cputime_add(sig->utime, tsk->utime); sig->stime =3D cputime_add(sig->stime, tsk->stime); +#ifdef CONFIG_GUEST_ACCOUNTING + sig->gtime =3D cputime_add(sig->gtime, tsk->gtime); +#endif sig->min_flt +=3D tsk->min_flt; sig->maj_flt +=3D tsk->maj_flt; sig->nvcsw +...
2007 Aug 20
3
[PATCH 2/4] Introduce a new fields "gtime" and "cgtime" in task_struct and signal_struct
...=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kvm.orig/kernel/exit.c 2007-08-20 11:11:30.000000000 +0200 +++ kvm/kernel/exit.c 2007-08-20 12:32:08.000000000 +0200 @@ -120,6 +120,9 @@ static void __exit_signal(struct task_st */ sig->utime =3D cputime_add(sig->utime, tsk->utime); sig->stime =3D cputime_add(sig->stime, tsk->stime); +#ifdef CONFIG_GUEST_ACCOUNTING + sig->gtime =3D cputime_add(sig->gtime, tsk->gtime); +#endif sig->min_flt +=3D tsk->min_flt; sig->maj_flt +=3D tsk->maj_flt; sig->nvcsw +...
2007 Aug 20
0
[PATCH 3/4] modify account_system_time() to update guest time in cpustat and task_struct
...vm/kernel/sched.c 2007-08-20 13:21:24.000000000 +0200 @@ -3246,10 +3246,24 @@ void account_system_time(struct task_str struct rq *rq =3D this_rq(); cputime64_t tmp; = + tmp =3D cputime_to_cputime64(cputime); +#ifdef CONFIG_GUEST_ACCOUNTING + if (p->flags & PF_VCPU) { + p->utime =3D cputime_add(p->utime, cputime); + p->gtime =3D cputime_add(p->gtime, cputime); + + cpustat->guest =3D cputime64_add(cpustat->guest, tmp); + cpustat->user =3D cputime64_add(cpustat->user, tmp); + + p->flags &=3D ~PF_VCPU; + + return; + } +#endif + p->stime =3D cputime_add(p...
2007 Aug 20
0
[PATCH 3/4] modify account_system_time() to update guest time in cpustat and task_struct
...vm/kernel/sched.c 2007-08-20 13:21:24.000000000 +0200 @@ -3246,10 +3246,24 @@ void account_system_time(struct task_str struct rq *rq =3D this_rq(); cputime64_t tmp; = + tmp =3D cputime_to_cputime64(cputime); +#ifdef CONFIG_GUEST_ACCOUNTING + if (p->flags & PF_VCPU) { + p->utime =3D cputime_add(p->utime, cputime); + p->gtime =3D cputime_add(p->gtime, cputime); + + cpustat->guest =3D cputime64_add(cpustat->guest, tmp); + cpustat->user =3D cputime64_add(cpustat->user, tmp); + + p->flags &=3D ~PF_VCPU; + + return; + } +#endif + p->stime =3D cputime_add(p...
2007 Aug 20
4
[PATCH 0/4] Virtual Machine Time Accounting
The aim of these four patches is to introduce Virtual Machine time accounting. _Ingo_, as these patches modify files of the scheduler, could you have a look to them, please ? [PATCH 1/4] as recent CPUs introduce a third running state, after "user" and "system", we need a new field, "guest", in cpustat to store the time used by the CPU to run virtual CPU. Modify
2007 Aug 20
4
[PATCH 0/4] Virtual Machine Time Accounting
The aim of these four patches is to introduce Virtual Machine time accounting. _Ingo_, as these patches modify files of the scheduler, could you have a look to them, please ? [PATCH 1/4] as recent CPUs introduce a third running state, after "user" and "system", we need a new field, "guest", in cpustat to store the time used by the CPU to run virtual CPU. Modify
2007 Apr 18
0
[RFC, PATCH 23/24] i386 Vmi timer patch
...cpustat = &kstat_this_cpu.cpustat; - cputime64_t tmp = cputime_to_cputime64(steal); + struct cpu_usage_stat *cpustat; + cputime64_t tmp; runqueue_t *rq = this_rq(); if (p == rq->idle) { + cpustat = &kstat_this_cpu.cpustat; + tmp = cputime_to_cputime64(steal); + p->stime = cputime_add(p->stime, steal); if (atomic_read(&rq->nr_iowait) > 0) cpustat->iowait = cputime64_add(cpustat->iowait, tmp); else cpustat->idle = cputime64_add(cpustat->idle, tmp); } else - cpustat->steal = cputime64_add(cpustat->steal, tmp); + account_cpu_steal_ti...
2007 Apr 18
0
[RFC, PATCH 23/24] i386 Vmi timer patch
...cpustat = &kstat_this_cpu.cpustat; - cputime64_t tmp = cputime_to_cputime64(steal); + struct cpu_usage_stat *cpustat; + cputime64_t tmp; runqueue_t *rq = this_rq(); if (p == rq->idle) { + cpustat = &kstat_this_cpu.cpustat; + tmp = cputime_to_cputime64(steal); + p->stime = cputime_add(p->stime, steal); if (atomic_read(&rq->nr_iowait) > 0) cpustat->iowait = cputime64_add(cpustat->iowait, tmp); else cpustat->idle = cputime64_add(cpustat->idle, tmp); } else - cpustat->steal = cputime64_add(cpustat->steal, tmp); + account_cpu_steal_ti...