Displaying 6 results from an estimated 6 matches for "cputime64_add".
2007 Aug 20
0
[PATCH 3/4] modify account_system_time() to update guest time in cpustat and task_struct
...tr
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->stime, cputime);
=
/* Add system time to cpustat. */
- tmp =3D cputime_to_cputime64(cputime);
if (hardirq_c...
2007 Aug 20
0
[PATCH 3/4] modify account_system_time() to update guest time in cpustat and task_struct
...tr
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->stime, cputime);
=
/* Add system time to cpustat. */
- tmp =3D cputime_to_cputime64(cputime);
if (hardirq_c...
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
...tat *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_time(steal);
+}
+
+/*
+ * Account for involuntary wait time for this cpu.
+ * @steal: the cpu time spent in invo...
2007 Apr 18
0
[RFC, PATCH 23/24] i386 Vmi timer patch
...tat *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_time(steal);
+}
+
+/*
+ * Account for involuntary wait time for this cpu.
+ * @steal: the cpu time spent in invo...