From: Andrew Morton <akpm@linux-foundation.org>
To: Tomas Janousek <tjanouse@redhat.com>
Cc: john stultz <johnstul@us.ibm.com>,
linux-kernel@vger.kernel.org, tsmetana@redhat.com,
riel@redhat.com
Subject: Re: [PATCH] Use boot based time for process start time and boot time in /proc
Date: Fri, 11 May 2007 12:51:32 -0700 [thread overview]
Message-ID: <20070511125132.93a4abdd.akpm@linux-foundation.org> (raw)
In-Reply-To: <20070511084531.GA31854@redhat.com>
On Fri, 11 May 2007 10:45:31 +0200
Tomas Janousek <tjanouse@redhat.com> wrote:
> Hello,
>
> On Thu, May 10, 2007 at 04:40:47PM -0700, Andrew Morton wrote:
> > Tomas Janousek <tjanouse@redhat.com> wrote:
> > > @@ -445,12 +445,14 @@ static int show_stat(struct seq_file *p, void *v)
> > > unsigned long jif;
> > > cputime64_t user, nice, system, idle, iowait, irq, softirq, steal;
> > > u64 sum = 0;
> > > + struct timespec boottime;
> > >
> > > user = nice = system = idle = iowait =
> > > irq = softirq = steal = cputime64_zero;
> > > - jif = - wall_to_monotonic.tv_sec;
> > > - if (wall_to_monotonic.tv_nsec)
> > > - --jif;
> > > + getboottime(&boottime);
> > > + jif = boottime.tv_sec;
> > > + if (boottime.tv_nsec)
> > > + ++jif;
> > >
> >
> > Is the switch from --jif to ++jif a functional change? If so, how come?
>
> Yes, I'm afraid it was.
>
> -----------------------
> From: Tomas Janousek <tjanouse@redhat.com>
> Date: Fri, 11 May 2007 10:34:55 +0200
> Subject: [PATCH] Lower the boot time to seconds, not ceil
>
> Restores the original behaviour of boot time calculation.
>
> Signed-off-by: Tomas Janousek <tjanouse@redhat.com>
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Cc: Tomas Smetana <tsmetana@redhat.com>
> Cc: John Stultz <johnstul@us.ibm.com>
> ---
> fs/proc/proc_misc.c | 2 --
> 1 files changed, 0 insertions(+), 2 deletions(-)
>
> diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c
> index d84956c..60b6210 100644
> --- a/fs/proc/proc_misc.c
> +++ b/fs/proc/proc_misc.c
> @@ -452,8 +452,6 @@ static int show_stat(struct seq_file *p, void *v)
> irq = softirq = steal = cputime64_zero;
> getboottime(&boottime);
> jif = boottime.tv_sec;
> - if (boottime.tv_nsec)
> - ++jif;
>
> for_each_possible_cpu(i) {
> int j;
So we've gone from --jif to ++jif to no change at all.
Are you sure that this net removal of --jif is correct?
next prev parent reply other threads:[~2007-05-11 19:55 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-03 15:03 Broken process startup times after suspend (regression) Tomas Janousek
2007-05-03 19:59 ` john stultz
2007-05-04 16:13 ` Tomas Janousek
2007-05-04 18:18 ` john stultz
2007-05-04 19:09 ` Tomas Janousek
2007-05-10 17:10 ` [PATCH] Introduce boot based time Tomas Janousek
2007-05-10 17:10 ` [PATCH] Use boot based time for process start time and boot time in /proc Tomas Janousek
2007-05-10 18:44 ` john stultz
2007-05-10 23:40 ` Andrew Morton
2007-05-11 8:45 ` Tomas Janousek
2007-05-11 19:51 ` Andrew Morton [this message]
2007-05-11 23:37 ` Tomas Janousek
2007-05-11 8:46 ` Tomas Janousek
2007-05-10 17:10 ` [PATCH] Use boot based time for uptime " Tomas Janousek
2007-05-10 18:47 ` john stultz
2007-05-10 18:42 ` [PATCH] Introduce boot based time john stultz
2007-05-10 19:48 ` Ingo Oeser
2007-05-10 20:00 ` Tomas Janousek
2007-05-10 20:02 ` john stultz
2007-05-10 22:22 ` Ingo Oeser
2007-05-10 23:40 ` Andrew Morton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070511125132.93a4abdd.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=johnstul@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=riel@redhat.com \
--cc=tjanouse@redhat.com \
--cc=tsmetana@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.