RE: [PATCH] cputime: fix invalid gtime

2015-09-17 Thread Hiroshi Shimamoto
> Subject: Re: [PATCH] cputime: fix invalid gtime > > On Thu, Sep 03, 2015 at 12:45:50AM +, Hiroshi Shimamoto wrote: > > From: Hiroshi Shimamoto > > > > /proc/stats shows invalid gtime when the thread is running in guest. > > Why is this a problem? In ho

Re: [PATCH] cputime: fix invalid gtime

2015-09-17 Thread Peter Zijlstra
On Thu, Sep 03, 2015 at 12:45:50AM +, Hiroshi Shimamoto wrote: > From: Hiroshi Shimamoto > > /proc/stats shows invalid gtime when the thread is running in guest. Why is this a problem? > When vtime accounting is not enabled, we cannot get a valid delta. > Just return gtime when vtime accoun

RE: [PATCH] cputime: fix invalid gtime

2015-09-17 Thread Hiroshi Shimamoto
Hi, have you had to time to see it? thanks, Hiroshi > Subject: [PATCH] cputime: fix invalid gtime > > From: Hiroshi Shimamoto > > /proc/stats shows invalid gtime when the thread is running in guest. > When vtime accounting is not enabled, we cannot get a valid delta. >

[PATCH] cputime: fix invalid gtime

2015-09-02 Thread Hiroshi Shimamoto
From: Hiroshi Shimamoto /proc/stats shows invalid gtime when the thread is running in guest. When vtime accounting is not enabled, we cannot get a valid delta. Just return gtime when vtime accounting is not enabled in task_gtime(). Before 10987 (qemu-kvm) S 1 10923 10923 0 -1 138428608 7521 0 9