libfaults
is library that can generate a fault injection for system calls.
See Getting Started on how to get started with libfaults
.
See Configuration on how to configure libfaults
.
Alternative, take a look at libfiu.
libfaults
requires
dnf install gcc cmake make
Alternative clang can be used.
The following commands will install libfaults
in the /usr/local
hierarchy
and run the default configuration.
git clone https://github.com/jesperpedersen/libfaults.git
cd libfaults
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr/local ..
make
sudo make install
LD_PRELOAD=/usr/local/lib/libfaults.so <your_application>
The following commands will create a DEBUG
version of libfaults
.
git clone https://github.com/jesperpedersen/libfaults.git
cd libfaults
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug ..
make
cd src
LD_PRELOAD=libfaults.so <your_application>
Remember to set the log_level
configuration option to debug5
.
Contributions to libfaults
are managed on github.com
Contributions are most welcome !