public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/14438] New: clock_gettime CLOCK_THREAD_CPUTIME_ID doesn't delegate to vsyscall
@ 2012-08-06 19:03 arun@sharma-home.net
  2013-05-10 13:02 ` [Bug libc/14438] " siddhesh at redhat dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: arun@sharma-home.net @ 2012-08-06 19:03 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=14438

             Bug #: 14438
           Summary: clock_gettime CLOCK_THREAD_CPUTIME_ID doesn't delegate
                    to vsyscall
           Product: glibc
           Version: 2.17
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: unassigned@sourceware.org
        ReportedBy: arun@sharma-home.net
                CC: drepper.fsp@gmail.com
    Classification: Unclassified


Created attachment 6566
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6566
clock_gettime() makes syscalls, but __vdso_clock_gettime doesn't.

clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts) seems to always make a syscall,
even on kernels that provide a vdso. Although upstream kernels don't have the
patches we're running with, I find this behavior surprising.

Why doesn't glibc always call __vdso_clock_gettime() and let the kernel decide
on the best implementation regardless of the clock id?

Relevant patches:

http://thread.gmane.org/gmane.linux.kernel/1231015/focus=1231016

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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:[~2014-06-17 18:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-06 19:03 [Bug libc/14438] New: clock_gettime CLOCK_THREAD_CPUTIME_ID doesn't delegate to vsyscall arun@sharma-home.net
2013-05-10 13:02 ` [Bug libc/14438] " siddhesh at redhat dot com
2013-05-10 14:09 ` arun@sharma-home.net
2013-05-16  6:48 ` siddhesh at redhat dot com
2013-07-26 18:24 ` neleai at seznam dot cz
2013-07-26 18:37 ` arun@sharma-home.net
2013-07-27  2:45 ` siddhesh at redhat dot com
2013-10-04 15:53 ` arun@sharma-home.net
2014-06-17 18:47 ` fweimer at redhat dot com

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