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

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).