public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug time/28071] New: clock_gettime lost vDSO acceleration on older kernels
@ 2021-07-10 14:01 fweimer at redhat dot com
  2021-07-10 14:01 ` [Bug time/28071] " fweimer at redhat dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: fweimer at redhat dot com @ 2021-07-10 14:01 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=28071

            Bug ID: 28071
           Summary: clock_gettime lost vDSO acceleration on older kernels
           Product: glibc
           Version: 2.34
            Status: NEW
          Severity: normal
          Priority: P2
         Component: time
          Assignee: unassigned at sourceware dot org
          Reporter: fweimer at redhat dot com
  Target Milestone: ---

#include <time.h>
#include <stdio.h>
#include <errno.h>

int
main (void)
{
  struct timespec ts;
  errno = 0;
  clock_gettime (CLOCK_MONOTONIC, &ts);
  printf ("errno = %m (%d)\n", errno);
  errno = 0;
  clock_gettime (CLOCK_MONOTONIC, &ts);
  printf ("errno = %m (%d)\n", errno);
}

strace shows:

[…]
munmap(0xf7f5b000, 11321)               = 0
clock_gettime64(CLOCK_MONOTONIC, 0xffb785dc) = -1 ENOSYS (Function not
implemented)
statx(1, "", AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT|AT_EMPTY_PATH,
STATX_BASIC_STATS, {stx_mask=STATX_BASIC_STATS, stx_attributes=0,
stx_mode=S_IFCHR|0620, stx_size=0, ...}) = 0
brk(NULL)                               = 0x9388000
brk(0x93a9000)                          = 0x93a9000
brk(0x93aa000)                          = 0x93aa000
write(1, "errno = Function not implemented"..., 38errno = Function not
implemented (38)
) = 38
clock_gettime64(CLOCK_MONOTONIC, 0xffb785dc) = -1 ENOSYS (Function not
implemented)
write(1, "errno = Function not implemented"..., 38errno = Function not
implemented (38)
) = 38
exit_group(0)                           = ?
+++ exited with 0 +++

Clobbering

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug time/28071] clock_gettime lost vDSO acceleration on older kernels
  2021-07-10 14:01 [Bug time/28071] New: clock_gettime lost vDSO acceleration on older kernels fweimer at redhat dot com
@ 2021-07-10 14:01 ` fweimer at redhat dot com
  2021-07-10 14:03 ` fweimer at redhat dot com
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: fweimer at redhat dot com @ 2021-07-10 14:01 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=28071

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com
           See Also|                            |https://bugs.openjdk.java.n
                   |                            |et/browse/JDK-8270244

--- Comment #1 from Florian Weimer <fweimer at redhat dot com> ---
Clobbering errno is also undesirable because it exposes application bugs.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug time/28071] clock_gettime lost vDSO acceleration on older kernels
  2021-07-10 14:01 [Bug time/28071] New: clock_gettime lost vDSO acceleration on older kernels fweimer at redhat dot com
  2021-07-10 14:01 ` [Bug time/28071] " fweimer at redhat dot com
@ 2021-07-10 14:03 ` fweimer at redhat dot com
  2021-07-10 14:41 ` [Bug time/28071] clock_gettime, gettimeofday, time " fweimer at redhat dot com
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: fweimer at redhat dot com @ 2021-07-10 14:03 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=28071

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |i686-linux-gnu

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug time/28071] clock_gettime, gettimeofday, time lost vDSO acceleration on older kernels
  2021-07-10 14:01 [Bug time/28071] New: clock_gettime lost vDSO acceleration on older kernels fweimer at redhat dot com
  2021-07-10 14:01 ` [Bug time/28071] " fweimer at redhat dot com
  2021-07-10 14:03 ` fweimer at redhat dot com
@ 2021-07-10 14:41 ` fweimer at redhat dot com
  2021-07-10 14:49 ` fweimer at redhat dot com
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: fweimer at redhat dot com @ 2021-07-10 14:41 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=28071

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|clock_gettime lost vDSO     |clock_gettime,
                   |acceleration on older       |gettimeofday, time lost
                   |kernels                     |vDSO acceleration on older
                   |                            |kernels

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug time/28071] clock_gettime, gettimeofday, time lost vDSO acceleration on older kernels
  2021-07-10 14:01 [Bug time/28071] New: clock_gettime lost vDSO acceleration on older kernels fweimer at redhat dot com
                   ` (2 preceding siblings ...)
  2021-07-10 14:41 ` [Bug time/28071] clock_gettime, gettimeofday, time " fweimer at redhat dot com
@ 2021-07-10 14:49 ` fweimer at redhat dot com
  2021-07-10 14:51 ` fweimer at redhat dot com
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: fweimer at redhat dot com @ 2021-07-10 14:49 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=28071

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at sourceware dot org   |fweimer at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug time/28071] clock_gettime, gettimeofday, time lost vDSO acceleration on older kernels
  2021-07-10 14:01 [Bug time/28071] New: clock_gettime lost vDSO acceleration on older kernels fweimer at redhat dot com
                   ` (3 preceding siblings ...)
  2021-07-10 14:49 ` fweimer at redhat dot com
@ 2021-07-10 14:51 ` fweimer at redhat dot com
  2021-07-10 17:20 ` fweimer at redhat dot com
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: fweimer at redhat dot com @ 2021-07-10 14:51 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=28071

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug time/28071] clock_gettime, gettimeofday, time lost vDSO acceleration on older kernels
  2021-07-10 14:01 [Bug time/28071] New: clock_gettime lost vDSO acceleration on older kernels fweimer at redhat dot com
                   ` (4 preceding siblings ...)
  2021-07-10 14:51 ` fweimer at redhat dot com
@ 2021-07-10 17:20 ` fweimer at redhat dot com
  2021-07-10 17:22 ` fweimer at redhat dot com
  2021-07-12 21:13 ` adhemerval.zanella at linaro dot org
  7 siblings, 0 replies; 9+ messages in thread
From: fweimer at redhat dot com @ 2021-07-10 17:20 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=28071

--- Comment #2 from Florian Weimer <fweimer at redhat dot com> ---
Patch posted: https://sourceware.org/pipermail/libc-alpha/2021-July/128902.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug time/28071] clock_gettime, gettimeofday, time lost vDSO acceleration on older kernels
  2021-07-10 14:01 [Bug time/28071] New: clock_gettime lost vDSO acceleration on older kernels fweimer at redhat dot com
                   ` (5 preceding siblings ...)
  2021-07-10 17:20 ` fweimer at redhat dot com
@ 2021-07-10 17:22 ` fweimer at redhat dot com
  2021-07-12 21:13 ` adhemerval.zanella at linaro dot org
  7 siblings, 0 replies; 9+ messages in thread
From: fweimer at redhat dot com @ 2021-07-10 17:22 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=28071

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://bugzilla.redhat.com
                   |                            |/show_bug.cgi?id=1981013

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug time/28071] clock_gettime, gettimeofday, time lost vDSO acceleration on older kernels
  2021-07-10 14:01 [Bug time/28071] New: clock_gettime lost vDSO acceleration on older kernels fweimer at redhat dot com
                   ` (6 preceding siblings ...)
  2021-07-10 17:22 ` fweimer at redhat dot com
@ 2021-07-12 21:13 ` adhemerval.zanella at linaro dot org
  7 siblings, 0 replies; 9+ messages in thread
From: adhemerval.zanella at linaro dot org @ 2021-07-12 21:13 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=28071

Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
   Target Milestone|---                         |2.34
         Resolution|---                         |FIXED
                 CC|                            |adhemerval.zanella at linaro dot o
                   |                            |rg

--- Comment #3 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
Fixed upstream (72e84d1db22203e01a43268de71ea8669eca2863).

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-07-12 21:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-10 14:01 [Bug time/28071] New: clock_gettime lost vDSO acceleration on older kernels fweimer at redhat dot com
2021-07-10 14:01 ` [Bug time/28071] " fweimer at redhat dot com
2021-07-10 14:03 ` fweimer at redhat dot com
2021-07-10 14:41 ` [Bug time/28071] clock_gettime, gettimeofday, time " fweimer at redhat dot com
2021-07-10 14:49 ` fweimer at redhat dot com
2021-07-10 14:51 ` fweimer at redhat dot com
2021-07-10 17:20 ` fweimer at redhat dot com
2021-07-10 17:22 ` fweimer at redhat dot com
2021-07-12 21:13 ` adhemerval.zanella at linaro dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).