public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: libc-alpha@sourceware.org
Subject: [PATCH 0/6] More libpthread removal preparations
Date: Wed, 17 Feb 2021 18:21:20 +0100	[thread overview]
Message-ID: <cover.1613582255.git.fweimer@redhat.com> (raw)

These commits clean up some things and move low-level libpthread
infrastructure into libc.

The final patch consolidates the elision infrastructure, except the
actual elision implementation routines.  It looks like a reasonable
cleanup to me.

Thanks,
Florian

Florian Weimer (6):
  nptl: Split libpthread-routines into one routine per line
  nptl: Reformat Versions
  nptl: Move futex-internal.c into main nptl directory
  nptl: Move lowlevellock into libc
  nptl: Move futex-internal into libc
  nptl: Move elision implementations into libc

 elf/libc_early_init.c                         |   6 +
 nptl/Makefile                                 | 247 +++++----
 nptl/Versions                                 | 474 +++++++++++-------
 .../elision-conf.c                            |   9 +-
 .../elision-lock.c                            |   9 +-
 .../elision-timed.c                           |   9 +-
 .../elision-trylock.c                         |   9 +-
 nptl/elision-unlock.c                         |  17 +
 {sysdeps/nptl => nptl}/futex-internal.c       |   4 +-
 nptl/libc-lowlevellock.c                      |  20 -
 nptl/lowlevellock.c                           |   9 +-
 nptl/pthread_mutex_lock.c                     |  13 -
 nptl/pthread_mutex_timedlock.c                |  13 -
 nptl/pthread_mutex_trylock.c                  |   8 -
 nptl/pthread_mutex_unlock.c                   |   4 -
 sysdeps/nptl/Makefile                         |   3 +-
 sysdeps/nptl/futex-internal.h                 |   4 +-
 sysdeps/nptl/lowlevellock.h                   | 108 +++-
 .../elision-conf.h}                           |  17 +-
 sysdeps/riscv/nptl/libc-lowlevellock.c        |   8 -
 sysdeps/unix/sysv/linux/powerpc/Makefile      |   2 -
 .../unix/sysv/linux/powerpc/elision-conf.c    |  26 +-
 .../unix/sysv/linux/powerpc/elision-conf.h    |   8 +-
 .../unix/sysv/linux/powerpc/elision-lock.c    |   7 +-
 .../unix/sysv/linux/powerpc/elision-trylock.c |   1 +
 .../unix/sysv/linux/powerpc/elision-unlock.c  |   1 +
 .../unix/sysv/linux/powerpc/force-elision.h   |  62 ---
 .../unix/sysv/linux/powerpc/lowlevellock.h    |  49 --
 .../linux/powerpc/pthread_mutex_cond_lock.c   |  22 -
 .../linux/powerpc/pthread_mutex_timedlock.c   |  22 -
 sysdeps/unix/sysv/linux/s390/Makefile         |   3 -
 sysdeps/unix/sysv/linux/s390/elision-conf.c   |  27 +-
 sysdeps/unix/sysv/linux/s390/elision-conf.h   |   8 +-
 sysdeps/unix/sysv/linux/s390/elision-lock.c   |   7 +-
 .../unix/sysv/linux/s390/elision-trylock.c    |   1 +
 sysdeps/unix/sysv/linux/s390/elision-unlock.c |   1 +
 sysdeps/unix/sysv/linux/s390/force-elision.h  |  62 ---
 sysdeps/unix/sysv/linux/s390/lowlevellock.h   |  49 --
 .../sysv/linux/s390/pthread_mutex_cond_lock.c |  22 -
 .../sysv/linux/s390/pthread_mutex_timedlock.c |  22 -
 sysdeps/unix/sysv/linux/x86/Makefile          |   2 -
 sysdeps/unix/sysv/linux/x86/elision-conf.c    |  25 +-
 sysdeps/unix/sysv/linux/x86/elision-conf.h    |   8 +-
 sysdeps/unix/sysv/linux/x86/elision-lock.c    |   7 +-
 sysdeps/unix/sysv/linux/x86/elision-trylock.c |   1 +
 sysdeps/unix/sysv/linux/x86/elision-unlock.c  |   1 +
 sysdeps/unix/sysv/linux/x86/force-elision.h   |  62 ---
 sysdeps/unix/sysv/linux/x86/lowlevellock.h    |  24 -
 .../sysv/linux/x86/pthread_mutex_cond_lock.c  |  22 -
 .../sysv/linux/x86/pthread_mutex_timedlock.c  |  22 -
 .../sysv/linux/x86/pthread_mutex_trylock.c    |  22 -
 51 files changed, 630 insertions(+), 959 deletions(-)
 rename sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c => nptl/elision-conf.c (79%)
 rename sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c => nptl/elision-lock.c (79%)
 rename sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c => nptl/elision-timed.c (78%)
 rename sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c => nptl/elision-trylock.c (79%)
 create mode 100644 nptl/elision-unlock.c
 rename {sysdeps/nptl => nptl}/futex-internal.c (97%)
 delete mode 100644 nptl/libc-lowlevellock.c
 rename sysdeps/{unix/sysv/linux/powerpc/pthread_mutex_trylock.c => pthread/elision-conf.h} (64%)
 delete mode 100644 sysdeps/riscv/nptl/libc-lowlevellock.c
 delete mode 100644 sysdeps/unix/sysv/linux/powerpc/force-elision.h
 delete mode 100644 sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
 delete mode 100644 sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c
 delete mode 100644 sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c
 delete mode 100644 sysdeps/unix/sysv/linux/s390/force-elision.h
 delete mode 100644 sysdeps/unix/sysv/linux/s390/lowlevellock.h
 delete mode 100644 sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c
 delete mode 100644 sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c
 delete mode 100644 sysdeps/unix/sysv/linux/x86/force-elision.h
 delete mode 100644 sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c
 delete mode 100644 sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c
 delete mode 100644 sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c

-- 
2.29.2


             reply	other threads:[~2021-02-17 17:20 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-17 17:21 Florian Weimer [this message]
2021-02-17 17:21 ` [PATCH 1/6] nptl: Split libpthread-routines into one routine per line Florian Weimer
2021-02-22 14:23   ` Adhemerval Zanella
2021-02-17 17:21 ` [PATCH 2/6] nptl: Reformat Versions Florian Weimer
2021-02-22 16:31   ` Adhemerval Zanella
2021-02-17 17:21 ` [PATCH 3/6] nptl: Move futex-internal.c into main nptl directory Florian Weimer
2021-02-22 16:34   ` Adhemerval Zanella
2021-02-17 17:21 ` [PATCH 4/6] nptl: Move lowlevellock into libc Florian Weimer
2021-02-22 16:38   ` Adhemerval Zanella
2021-02-22 16:46     ` Florian Weimer
2021-02-17 17:21 ` [PATCH 5/6] nptl: Move futex-internal " Florian Weimer
2021-02-22 16:39   ` Adhemerval Zanella
2021-02-17 17:22 ` [PATCH 6/6] nptl: Move elision implementations " Florian Weimer
2021-02-22 16:53   ` Adhemerval Zanella
2021-02-22 17:02     ` Florian Weimer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1613582255.git.fweimer@redhat.com \
    --to=fweimer@redhat.com \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).