Restartable Sequences Library

Clone this repo:


  1. 4a97c05 Modernize autotools setup by Michael Jeanson · 5 weeks ago master
  2. d1cdec9 Skip the tests if the rseq syscall is unavailable by Michael Jeanson · 9 months ago
  3. 544cdc8 Convert test suite to the TAP test protocol by Michael Jeanson · 10 months ago
  4. 6a84165 Remove __rseq_handled declaration by Mathieu Desnoyers · 9 months ago
  5. 31b44ba Add parametrized tests by Mathieu Desnoyers · 10 months ago

Library for Restartable Sequences

by Mathieu Desnoyers



This source tree is based on the Autotools suite from GNU to simplify portability. Here are some things you should have on your system in order to compile the Git repository tree:

  • GNU Autotools (Automake >= 1.10, Autoconf >= 2.50, Autoheader >= 2.50; make sure your system-wide automake points to a recent version!)
  • GNU Libtool >= 2.2
  • Linux kernel headers from kernel >= 4.18 to build on x86, arm, ppc, and mips and from kernel >= 4.19 to build on s390.

Building steps

If you get the tree from the Git repository, you will need to run


in its root. It calls all the GNU tools needed to prepare the tree configuration.

To build and install, do:

sudo make install
sudo ldconfig

Note: the configure script sets /usr/local as the default prefix for files it installs. However, this path is not part of most distributions' default library path, which will cause builds depending on librseq to fail unless -L/usr/local/lib is added to LDFLAGS. You may provide a custom prefix to configure by using the --prefix switch (e.g., --prefix=/usr).

Building against a local version of the kernel headers

cd /path/to/kernel/sources
make headers_install
cd /path/to/librseq
CPPFLAGS=-I/path/to/kernel/sources/usr/include ./configure
sudo make install
sudo ldconfig