Go to file
Mathieu Desnoyers 6e29cb3f61 Linux: Use rseq in sched_getcpu if available
When available, use the cpu_id field from __rseq_abi on Linux to
implement sched_getcpu().  Fall-back on the vgetcpu vDSO if unavailable.

Benchmarks:

x86-64: Intel E5-2630 v3@2.40GHz, 16-core, hyperthreading

glibc sched_getcpu():                     13.7 ns (baseline)
glibc sched_getcpu() using rseq:           2.5 ns (speedup:  5.5x)
inline load cpuid from __rseq_abi TLS:     0.8 ns (speedup: 17.1x)
2020-07-06 10:21:32 +02:00
argp
assert
benchtests benchtests: Add exp10f benchmark 2020-06-19 10:48:15 -03:00
bits
catgets
ChangeLog.old
conform
crypt
csu
ctype
debug
dirent
dlfcn
elf Linux: Perform rseq registration at C startup and thread creation 2020-07-06 10:21:16 +02:00
gmon
gnulib
grp
gshadow
hesiod
htl htl: Move cleanup stack to variable shared between libc and pthread 2020-06-14 15:53:04 +00:00
hurd hurd: Add remaining cancelation points 2020-06-28 22:46:21 +00:00
iconv
iconvdata
include <libc-symbols.h>: Add libpthread hidden alias support 2020-05-20 20:29:56 +02:00
inet
intl
io
libio
locale
localedata Set width of JUNGSEONG/JONGSEONG characters from UD7B0 to UD7FB to 0 [BZ #26120] 2020-06-26 09:54:43 +02:00
login y2038: Replace __clock_gettime with __clock_gettime64 2020-05-20 16:45:16 +02:00
mach
malloc
manual Linux: Perform rseq registration at C startup and thread creation 2020-07-06 10:21:16 +02:00
math New exp10f version without SVID compat wrapper 2020-06-19 12:08:47 -03:00
mathvec
misc
nis y2038: Replace __clock_gettime with __clock_gettime64 2020-05-20 16:45:16 +02:00
nptl Linux: Perform rseq registration at C startup and thread creation 2020-07-06 10:21:16 +02:00
nptl_db
nscd
nss
po
posix
pwd
resolv
resource
rt
scripts Use Linux 5.7 in build-many-glibcs.py. 2020-06-10 22:53:55 +00:00
setjmp
shadow
signal signal: Deprecate additional legacy signal handling functions 2020-05-25 18:32:28 +02:00
socket
soft-fp
stdio-common
stdlib Fix typo in comment in bug 26137 fix. 2020-07-01 14:53:30 +00:00
string
sunrpc
support support: Fix detecting hole support on >2KB-block filesystems 2020-06-04 21:27:05 +02:00
sysdeps Linux: Use rseq in sched_getcpu if available 2020-07-06 10:21:32 +02:00
sysvipc
termios
time
timezone
wcsmbs mbstowcs: Document, test, and fix null pointer dst semantics (Bug 25219) 2020-06-01 12:26:32 -04:00
wctype
.gitattributes
.gitignore
abi-tags
aclocal.m4
config.h.in
config.make.in
configure
configure.ac
COPYING
COPYING.LIB
extra-lib.mk
gen-locales.mk
INSTALL
libc-abis
libof-iterator.mk
LICENSES
MAINTAINERS
Makeconfig
Makefile
Makefile.help
Makefile.in
Makerules
NEWS Linux: Perform rseq registration at C startup and thread creation 2020-07-06 10:21:16 +02:00
o-iterator.mk
README
Rules
shlib-versions
test-skeleton.c
version.h

This directory contains the sources of the GNU C Library.
See the file "version.h" for what release version you have.

The GNU C Library is the standard system C library for all GNU systems,
and is an important part of what makes up a GNU system.  It provides the
system API for all programs written in C and C-compatible languages such
as C++ and Objective C; the runtime facilities of other programming
languages use the C library to access the underlying operating system.

In GNU/Linux systems, the C library works with the Linux kernel to
implement the operating system behavior seen by user applications.
In GNU/Hurd systems, it works with a microkernel and Hurd servers.

The GNU C Library implements much of the POSIX.1 functionality in the
GNU/Hurd system, using configurations i[4567]86-*-gnu.

When working with Linux kernels, this version of the GNU C Library
requires Linux kernel version 3.2 or later.

Also note that the shared version of the libgcc_s library must be
installed for the pthread library to work correctly.

The GNU C Library supports these configurations for using Linux kernels:

	aarch64*-*-linux-gnu
	alpha*-*-linux-gnu
	arm-*-linux-gnueabi
	csky-*-linux-gnuabiv2
	hppa-*-linux-gnu
	i[4567]86-*-linux-gnu
	x86_64-*-linux-gnu	Can build either x86_64 or x32
	ia64-*-linux-gnu
	m68k-*-linux-gnu
	microblaze*-*-linux-gnu
	mips-*-linux-gnu
	mips64-*-linux-gnu
	powerpc-*-linux-gnu	Hardware or software floating point, BE only.
	powerpc64*-*-linux-gnu	Big-endian and little-endian.
	s390-*-linux-gnu
	s390x-*-linux-gnu
	riscv64-*-linux-gnu
	sh[34]-*-linux-gnu
	sparc*-*-linux-gnu
	sparc64*-*-linux-gnu

If you are interested in doing a port, please contact the glibc
maintainers; see https://www.gnu.org/software/libc/ for more
information.

See the file INSTALL to find out how to configure, build, and install
the GNU C Library.  You might also consider reading the WWW pages for
the C library at https://www.gnu.org/software/libc/.

The GNU C Library is (almost) completely documented by the Texinfo manual
found in the `manual/' subdirectory.  The manual is still being updated
and contains some known errors and omissions; we regret that we do not
have the resources to work on the manual as much as we would like.  For
corrections to the manual, please file a bug in the `manual' component,
following the bug-reporting instructions below.  Please be sure to check
the manual in the current development sources to see if your problem has
already been corrected.

Please see https://www.gnu.org/software/libc/bugs.html for bug reporting
information.  We are now using the Bugzilla system to track all bug reports.
This web page gives detailed information on how to report bugs properly.

The GNU C Library is free software.  See the file COPYING.LIB for copying
conditions, and LICENSES for notices about a few contributions that require
these additional notices to be distributed.  License copyright years may be
listed using range notation, e.g., 1996-2015, indicating that every year in
the range, inclusive, is a copyrightable year that would otherwise be listed
individually.