mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-01 17:30:07 +00:00
2e94e2f5d2
Old Linux kernels disable SVE after every system call. Calling the SVE-optimized memcpy afterwards will then cause a trap to reenable SVE. As a result, applications with a high use of syscalls may run slower with the SVE memcpy. This is true for kernels between 4.15.0 and before 6.2.0, except for 5.14.0 which was patched. Avoid this by checking the kernel version and selecting the SVE ifunc on modern kernels. Parse the kernel version reported by uname() into a 24-bit kernel.major.minor value without calling any library functions. If uname() is not supported or if the version format is not recognized, assume the kernel is modern. Tested-by: Florian Weimer <fweimer@redhat.com> Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com> |
||
---|---|---|
.. | ||
dl-symbol-redir-ifunc.h | ||
ifunc-impl-list.c | ||
init-arch.h | ||
Makefile | ||
memchr_generic.S | ||
memchr_nosimd.S | ||
memchr.c | ||
memcpy_a64fx.S | ||
memcpy_generic.S | ||
memcpy_mops.S | ||
memcpy_sve.S | ||
memcpy_thunderx2.S | ||
memcpy_thunderx.S | ||
memcpy.c | ||
memmove_mops.S | ||
memmove.c | ||
memset_a64fx.S | ||
memset_emag.S | ||
memset_generic.S | ||
memset_kunpeng.S | ||
memset_mops.S | ||
memset_zva64.S | ||
memset.c | ||
strlen_asimd.S | ||
strlen_generic.S | ||
strlen.c |