mirror of
https://sourceware.org/git/glibc.git
synced 2025-10-15 17:46:41 +03:00
On POWER8, unaligned memory accesses to cached memory has little impact on performance as opposed to its ancestors. It is disabled by default and will only be available when the tunable glibc.tune.cached_memopt is set to 1. __memcpy_power8_cached __memcpy_power7 ============================================================ max-size=4096: 33325.70 ( 12.65%) 38153.00 max-size=8192: 32878.20 ( 11.17%) 37012.30 max-size=16384: 33782.20 ( 11.61%) 38219.20 max-size=32768: 33296.20 ( 11.30%) 37538.30 max-size=65536: 33765.60 ( 10.53%) 37738.40 * manual/tunables.texi (Hardware Capability Tunables): Document glibc.tune.cached_memopt. * sysdeps/powerpc/cpu-features.c: New file. * sysdeps/powerpc/cpu-features.h: New file. * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add _dl_powerpc_cpu_features. * sysdeps/powerpc/dl-tunables.list: New file. * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h. * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h (INIT_ARCH): Initialize use_aligned_memopt. * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED && IS_IN(rtld))]: Restrict dl_platform_init availability and initialize CPU features used by tunables. * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines): Add memcpy-power8-cached. * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add __memcpy_power8_cached. * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S: New file. Reviewed-by: Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
70 lines
2.5 KiB
C
70 lines
2.5 KiB
C
/* Run-time dynamic linker data structures for loaded ELF shared objects.
|
|
Copyright (C) 1995-2017 Free Software Foundation, Inc.
|
|
This file is part of the GNU C Library.
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU Lesser General Public
|
|
License as published by the Free Software Foundation; either
|
|
version 2.1 of the License, or (at your option) any later version.
|
|
|
|
The GNU C Library is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
License along with the GNU C Library; if not, see
|
|
<http://www.gnu.org/licenses/>. */
|
|
|
|
#ifndef _POWERPC_LDSODEFS_H
|
|
#define _POWERPC_LDSODEFS_H 1
|
|
|
|
#include <elf.h>
|
|
#include <cpu-features.h>
|
|
|
|
struct La_ppc32_regs;
|
|
struct La_ppc32_retval;
|
|
struct La_ppc64_regs;
|
|
struct La_ppc64_retval;
|
|
struct La_ppc64v2_regs;
|
|
struct La_ppc64v2_retval;
|
|
|
|
#define ARCH_PLTENTER_MEMBERS \
|
|
Elf32_Addr (*ppc32_gnu_pltenter) (Elf32_Sym *, unsigned int, uintptr_t *, \
|
|
uintptr_t *, struct La_ppc32_regs *, \
|
|
unsigned int *, const char *name, \
|
|
long int *framesizep); \
|
|
Elf64_Addr (*ppc64_gnu_pltenter) (Elf64_Sym *, unsigned int, uintptr_t *, \
|
|
uintptr_t *, struct La_ppc64_regs *, \
|
|
unsigned int *, const char *name, \
|
|
long int *framesizep); \
|
|
Elf64_Addr (*ppc64v2_gnu_pltenter) (Elf64_Sym *, unsigned int, \
|
|
uintptr_t *, uintptr_t *, \
|
|
struct La_ppc64v2_regs *, \
|
|
unsigned int *, const char *name, \
|
|
long int *framesizep)
|
|
|
|
#define ARCH_PLTEXIT_MEMBERS \
|
|
unsigned int (*ppc32_gnu_pltexit) (Elf32_Sym *, unsigned int, \
|
|
uintptr_t *, \
|
|
uintptr_t *, \
|
|
const struct La_ppc32_regs *, \
|
|
struct La_ppc32_retval *, \
|
|
const char *); \
|
|
unsigned int (*ppc64_gnu_pltexit) (Elf64_Sym *, unsigned int, \
|
|
uintptr_t *, \
|
|
uintptr_t *, \
|
|
const struct La_ppc64_regs *, \
|
|
struct La_ppc64_retval *, \
|
|
const char *); \
|
|
unsigned int (*ppc64v2_gnu_pltexit) (Elf64_Sym *, unsigned int, \
|
|
uintptr_t *, \
|
|
uintptr_t *, \
|
|
const struct La_ppc64v2_regs *,\
|
|
struct La_ppc64v2_retval *, \
|
|
const char *)
|
|
|
|
#include_next <ldsodefs.h>
|
|
|
|
#endif
|