mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-03 10:21:05 +00:00
a092ca9453
Add #include <sched.h> int getcpu (unsigned int *cpu, unsigned int *node); to return currently used CPU and NUMA node. Tested on x86-64, x32 and i686 as well as with build-many-glibcs.py. * NEWS: Mention getcpu. * include/sched.h (__getcpu): New libc_hidden_proto. * manual/resource.texi: Document getcpu. * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu. * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu. * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu. * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype. * sysdeps/unix/sysv/linux/getcpu.c: New file. * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size): Also check getcpu. |
||
---|---|---|
.. | ||
be | ||
fpu | ||
le | ||
____longjmp_chk.S | ||
brk.S | ||
c++-types.data | ||
clone.S | ||
configure | ||
configure.ac | ||
dl-cache.h | ||
getcontext.S | ||
Implies | ||
jmp_buf-macros.h | ||
kernel_stat.h | ||
ld-le.abilist | ||
ld.abilist | ||
ldsodefs.h | ||
libanl-le.abilist | ||
libanl.abilist | ||
libBrokenLocale-le.abilist | ||
libBrokenLocale.abilist | ||
libc-le.abilist | ||
libc.abilist | ||
libcrypt-le.abilist | ||
libcrypt.abilist | ||
libdl-le.abilist | ||
libdl.abilist | ||
libm-le.abilist | ||
libm.abilist | ||
libnsl-le.abilist | ||
libnsl.abilist | ||
libpthread-le.abilist | ||
libpthread.abilist | ||
libresolv-le.abilist | ||
libresolv.abilist | ||
librt-le.abilist | ||
librt.abilist | ||
libthread_db-le.abilist | ||
libthread_db.abilist | ||
libutil-le.abilist | ||
libutil.abilist | ||
localplt.data | ||
makecontext.S | ||
setcontext.S | ||
shlib-versions | ||
swapcontext.S | ||
sysdep.h | ||
timer_create.c | ||
timer_delete.c | ||
timer_getoverr.c | ||
timer_gettime.c | ||
timer_settime.c | ||
ucontext_i.sym | ||
Versions | ||
vfork.S |