public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/16431] New: PowerPC: gettimeofday calling from glibc internal symbol redirects to system call version
@ 2014-01-10 16:53 azanella at linux dot vnet.ibm.com
  2014-01-10 16:54 ` [Bug libc/16431] " azanella at linux dot vnet.ibm.com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: azanella at linux dot vnet.ibm.com @ 2014-01-10 16:53 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 16431
           Summary: PowerPC: gettimeofday calling from glibc internal
                    symbol redirects to system call version
           Product: glibc
           Version: 2.19
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: azanella at linux dot vnet.ibm.com
                CC: drepper.fsp at gmail dot com

The PowerPC gettimeofday implementation
(sysdeps/unix/sysv/linux/powerpc/gettimeofday.c) relies on IFUNC selection to
use the vDSO implementation (if it is provided by kernel) or a fallback symbol
that uses a system call.

The IFUNC selector for gettimeofday runs before _libc_vdso_platform_setup where
__vdso_gettimeofday is set. The selector then sets __gettimeofday (the internal
version used within GLIBC) to use the system call version instead of the vDSO
one.

Although this does not lead to wrong behavior, a possible performance leverage
would be to change the way IFUNC resolver get the vDSO to call _dl_vdso_vsym
directly instead of relying in __vdso_gettimeofday value (much like as x86_64
does).

-- 
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-13  9:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-10 16:53 [Bug libc/16431] New: PowerPC: gettimeofday calling from glibc internal symbol redirects to system call version azanella at linux dot vnet.ibm.com
2014-01-10 16:54 ` [Bug libc/16431] " azanella at linux dot vnet.ibm.com
2014-01-10 16:55 ` adconrad at 0c3 dot net
2014-01-10 17:07 ` azanella at linux dot vnet.ibm.com
2014-01-10 19:51 ` azanella at linux dot vnet.ibm.com
2014-01-12 13:52 ` neleai at seznam dot cz
2014-01-12 14:28 ` azanella at linux dot vnet.ibm.com
2014-01-20 18:52 ` azanella at linux dot vnet.ibm.com
2014-06-13  9:01 ` 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).