Re: [PATCH v3] Remove sys/user time in -ftime-report

2024-11-06 Thread Andi Kleen
On Fri, Nov 01, 2024 at 02:01:18PM -0400, John David Anglin wrote: > This breaks build on hppa64-hp-hpux11.11. This target has clock_gettime > but it doesn't have CLOCK_MONOTONIC. It has CLOCK_REALTIME. I modified > timevar.cc as follows to restore build. Alternative would be to check for CLOCK

Re: [PATCH v3] Remove sys/user time in -ftime-report

2024-11-01 Thread John David Anglin
This breaks build on hppa64-hp-hpux11.11. This target has clock_gettime but it doesn't have CLOCK_MONOTONIC. It has CLOCK_REALTIME. I modified timevar.cc as follows to restore build. Dave --- diff --git a/gcc/timevar.cc b/gcc/timevar.cc index e12775e6ff3..412d9b62a8f 100644 --- a/gcc/timevar.c

Re: [PATCH v3] Remove sys/user time in -ftime-report

2024-10-31 Thread Andi Kleen
> I'm getting a build failure: > > timevar.cc:163: undefined reference to `clock_gettime' > > Our frozen build tools are intended to produce binaries that work > "everywhere", so they're a few years old, but apparently something didn't > configure correctly. > > I see that libbacktrace configure

Re: [PATCH v3] Remove sys/user time in -ftime-report

2024-10-31 Thread Andrew Stubbs
On 30/10/2024 16:06, Andi Kleen wrote: On Wed, Oct 23, 2024 at 02:56:51PM +0200, Richard Biener wrote: On Wed, Oct 9, 2024 at 6:18 PM Andi Kleen wrote: From: Andi Kleen Retrieving sys/user time in timevars is quite expensive because it always needs a system call. Only getting the wall time

Re: [PATCH v3] Remove sys/user time in -ftime-report

2024-10-30 Thread Andi Kleen
On Wed, Oct 23, 2024 at 02:56:51PM +0200, Richard Biener wrote: > On Wed, Oct 9, 2024 at 6:18 PM Andi Kleen wrote: > > > > From: Andi Kleen > > > > Retrieving sys/user time in timevars is quite expensive because it > > always needs a system call. Only getting the wall time is much > > cheaper bec

Re: [PATCH v3] Remove sys/user time in -ftime-report

2024-10-23 Thread Richard Biener
On Wed, Oct 9, 2024 at 6:18 PM Andi Kleen wrote: > > From: Andi Kleen > > Retrieving sys/user time in timevars is quite expensive because it > always needs a system call. Only getting the wall time is much > cheaper because operating systems have optimized paths for this. > > The sys time isn't t