Re: [RFC PATCH] kbuild: add -fno-PIE

2016-10-29 Thread Tomas Janousek
On Sat, Oct 29, 2016 at 07:03:30PM +0200, Sven Joachim wrote: > I cannot reproduce that, FWIW. Also, arch/x86/entry/vdso/Makefile seems > to explicitly filter out -mfentry from the compiler flags, but maybe I > misunderstand something. Compiler flags, yes; assembler flags, no. Perhaps adding

Re: [RFC PATCH] kbuild: add -fno-PIE

2016-10-29 Thread Tomas Janousek
On Sat, Oct 29, 2016 at 07:03:30PM +0200, Sven Joachim wrote: > I cannot reproduce that, FWIW. Also, arch/x86/entry/vdso/Makefile seems > to explicitly filter out -mfentry from the compiler flags, but maybe I > misunderstand something. Compiler flags, yes; assembler flags, no. Perhaps adding

Re: [RFC PATCH] kbuild: add -fno-PIE

2016-10-29 Thread Tomas Janousek
Hi Sven, On Mon, Oct 24, 2016 at 07:32:30PM +0200, Sven Joachim wrote: > The attached patch works for me with Debian's gcc-6 package. I tried your patch when building 4.8.5 on an up-to-date Debian testing and still got this: AS arch/x86/entry/vdso/vdso32/note.o

Re: [RFC PATCH] kbuild: add -fno-PIE

2016-10-29 Thread Tomas Janousek
Hi Sven, On Mon, Oct 24, 2016 at 07:32:30PM +0200, Sven Joachim wrote: > The attached patch works for me with Debian's gcc-6 package. I tried your patch when building 4.8.5 on an up-to-date Debian testing and still got this: AS arch/x86/entry/vdso/vdso32/note.o

Re: [PATCH] Use boot based time for process start time and boot time in /proc

2007-05-11 Thread Tomas Janousek
Hi, On Fri, May 11, 2007 at 12:51:32PM -0700, Andrew Morton wrote: > On Fri, 11 May 2007 10:45:31 +0200 > Tomas Janousek <[EMAIL PROTECTED]> wrote: > > > Hello, > > > > On Thu, May 10, 2007 at 04:40:47PM -0700, Andrew Morton wrote: > > >

Re: [PATCH] Use boot based time for process start time and boot time in /proc

2007-05-11 Thread Tomas Janousek
Hi, On Thu, May 10, 2007 at 04:40:47PM -0700, Andrew Morton wrote: > On Thu, 10 May 2007 19:10:42 +0200 > Tomas Janousek <[EMAIL PROTECTED]> wrote: > > @@ -918,7 +918,7 @@ struct task_struct { > > unsigned int rt_priority; > > cputime_t utime, stime; >

Re: [PATCH] Use boot based time for process start time and boot time in /proc

2007-05-11 Thread Tomas Janousek
Hello, On Thu, May 10, 2007 at 04:40:47PM -0700, Andrew Morton wrote: > Tomas Janousek <[EMAIL PROTECTED]> wrote: > > @@ -445,12 +445,14 @@ static int show_stat(struct seq_file *p, void *v) > > unsigned long jif; > > cputime64_t user, nice, system, idle,

Re: [PATCH] Use boot based time for process start time and boot time in /proc

2007-05-11 Thread Tomas Janousek
Hello, On Thu, May 10, 2007 at 04:40:47PM -0700, Andrew Morton wrote: Tomas Janousek [EMAIL PROTECTED] 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

Re: [PATCH] Use boot based time for process start time and boot time in /proc

2007-05-11 Thread Tomas Janousek
Hi, On Thu, May 10, 2007 at 04:40:47PM -0700, Andrew Morton wrote: On Thu, 10 May 2007 19:10:42 +0200 Tomas Janousek [EMAIL PROTECTED] wrote: @@ -918,7 +918,7 @@ struct task_struct { unsigned int rt_priority; cputime_t utime, stime; unsigned long nvcsw, nivcsw; /* context

Re: [PATCH] Use boot based time for process start time and boot time in /proc

2007-05-11 Thread Tomas Janousek
Hi, On Fri, May 11, 2007 at 12:51:32PM -0700, Andrew Morton wrote: On Fri, 11 May 2007 10:45:31 +0200 Tomas Janousek [EMAIL PROTECTED] wrote: Hello, On Thu, May 10, 2007 at 04:40:47PM -0700, Andrew Morton wrote: Tomas Janousek [EMAIL PROTECTED] wrote: @@ -445,12 +445,14

Re: [PATCH] Introduce boot based time

2007-05-10 Thread Tomas Janousek
Hi Ingo, On Thu, May 10, 2007 at 09:48:59PM +0200, Ingo Oeser wrote: > > +static unsigned long total_sleep_time; > > Could you make that a ktime_t (or struct ktime)? > There are machines, which sleep more than they are awake. > Just imagine a surveillance camera triggered by door entrance. > >

[PATCH] Introduce boot based time

2007-05-10 Thread Tomas Janousek
and process start time calculations then. Also, the uptime no longer increases during suspend. I add a variable to track the wall_to_monotonic changes, a function to get the real boot time and a function to get the boot based time from the monotonic one. Signed-off-by: Tomas Janousek <[EMAIL PROTEC

[PATCH] Use boot based time for uptime in /proc

2007-05-10 Thread Tomas Janousek
Commit 411187fb05cd11676b0979d9fbf3291db69dbce2 caused uptime not to increase during suspend. This may cause confusion so I restore the old behaviour by using the boot based time instead of monotonic for uptime. Signed-off-by: Tomas Janousek <[EMAIL PROTECTED]> --- fs/proc/proc_misc.c

[PATCH] Use boot based time for process start time and boot time in /proc

2007-05-10 Thread Tomas Janousek
Commit 411187fb05cd11676b0979d9fbf3291db69dbce2 caused boot time to move and process start times to become invalid after suspend. Using boot based time for those restores the old behaviour and fixes the issue. Signed-off-by: Tomas Janousek <[EMAIL PROTECTED]> Cc: Tomas Smetana <[EMAIL

[PATCH] Use boot based time for process start time and boot time in /proc

2007-05-10 Thread Tomas Janousek
Commit 411187fb05cd11676b0979d9fbf3291db69dbce2 caused boot time to move and process start times to become invalid after suspend. Using boot based time for those restores the old behaviour and fixes the issue. Signed-off-by: Tomas Janousek [EMAIL PROTECTED] Cc: Tomas Smetana [EMAIL PROTECTED] Cc

[PATCH] Use boot based time for uptime in /proc

2007-05-10 Thread Tomas Janousek
Commit 411187fb05cd11676b0979d9fbf3291db69dbce2 caused uptime not to increase during suspend. This may cause confusion so I restore the old behaviour by using the boot based time instead of monotonic for uptime. Signed-off-by: Tomas Janousek [EMAIL PROTECTED] --- fs/proc/proc_misc.c |1

[PATCH] Introduce boot based time

2007-05-10 Thread Tomas Janousek
and process start time calculations then. Also, the uptime no longer increases during suspend. I add a variable to track the wall_to_monotonic changes, a function to get the real boot time and a function to get the boot based time from the monotonic one. Signed-off-by: Tomas Janousek [EMAIL PROTECTED] Cc

Re: [PATCH] Introduce boot based time

2007-05-10 Thread Tomas Janousek
Hi Ingo, On Thu, May 10, 2007 at 09:48:59PM +0200, Ingo Oeser wrote: +static unsigned long total_sleep_time; Could you make that a ktime_t (or struct ktime)? There are machines, which sleep more than they are awake. Just imagine a surveillance camera triggered by door entrance. Yes,

Re: Broken process startup times after suspend (regression)

2007-05-04 Thread Tomas Janousek
Hi, On Fri, May 04, 2007 at 11:18:52AM -0700, john stultz wrote: > > diff --git a/kernel/fork.c b/kernel/fork.c > > index 6af959c..b10d9b7 100644 > > --- a/kernel/fork.c > > +++ b/kernel/fork.c > > @@ -1056,6 +1056,7 @@ static struct task_struct *copy_process(unsigned long > > clone_flags, > >

Re: Broken process startup times after suspend (regression)

2007-05-04 Thread Tomas Janousek
r we can provide both smooth > monotonic and monotonic w/ sleep. Ok, thanks for the comment, I did so. And here's new patch: From: Tomas Janousek <[EMAIL PROTECTED]> Subject: [PATCH] Fix boot time and process startup times after suspend The commi

Re: Broken process startup times after suspend (regression)

2007-05-04 Thread Tomas Janousek
for the comment, I did so. And here's new patch: From: Tomas Janousek [EMAIL PROTECTED] Subject: [PATCH] Fix boot time and process startup times after suspend The commits 411187fb05cd11676b0979d9fbf3291db69dbce2 (GTOD: persistent clock support) c1d370e167d66b10bca3b602d3740405469383de (i386: use GTOD

Re: Broken process startup times after suspend (regression)

2007-05-04 Thread Tomas Janousek
Hi, On Fri, May 04, 2007 at 11:18:52AM -0700, john stultz wrote: diff --git a/kernel/fork.c b/kernel/fork.c index 6af959c..b10d9b7 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -1056,6 +1056,7 @@ static struct task_struct *copy_process(unsigned long clone_flags,

Broken process startup times after suspend (regression)

2007-05-03 Thread Tomas Janousek
ll_to_monotonic.tv_sec -= sleep_length; + total_sleep_time += sleep_length; } /* re-base the last cycle value */ clock->cycle_last = clocksource_read(clock); Regards, -- Tomas Janousek, SW Engineer, Red Hat, Inc. --- procps-3.2.7/ps/output.c.jitter 2007-04-26 13:15:47.000

Broken process startup times after suspend (regression)

2007-05-03 Thread Tomas Janousek
; + total_sleep_time += sleep_length; } /* re-base the last cycle value */ clock-cycle_last = clocksource_read(clock); Regards, -- Tomas Janousek, SW Engineer, Red Hat, Inc. --- procps-3.2.7/ps/output.c.jitter 2007-04-26 13:15:47.0 +0200 +++ procps-3.2.7/ps/output.c