Skip to content

Latest commit

 

History

History
136 lines (112 loc) · 6.46 KB

README.md

File metadata and controls

136 lines (112 loc) · 6.46 KB

Re-Animator LTTng - an LTTng fork designed for re-animation

This is the orchestrator for Re-Animator LTTng, an LTTng fork designed for re-animation.

For more information on the Re-Animator project, please see our paper Re-Animator: Versatile High-Fidelity Storage-System Tracing and Replaying.

Re-Animator LTTng is under development by Ibrahim Umit Akgun of the File Systems and Storage Lab (FSL) at Stony Brook University under Professor Erez Zadok.

Table of Contents

Setup

Installing Re-Animator Linux Kernel Modifications

Re-Animator LTTng requires Linux kernel modifications to function. We recommend allocating at least 25 GiB of disk space before beginning the installation process.

  1. Clone the Linux kernel stable tree repository.
    git clone https://github.com/gregkh/linux.git
    cd linux
  2. Checkout version 4.19.51
    git checkout 7aa823a959e1f50c0dab9e01c1940235eccc04cc
  3. Download linux_kernel.patch. Alternatively, the patch can be copied over from the root of this repository.
    wget https://raw.githubusercontent.com/SNIA/reanimator-lttng/master/linux_kernel.patch
  4. Apply the kernel patch. Ignore any whitespace errors that may occur—they do not affect whether or not the patch is successfully applied.
    git apply linux_kernel.patch
  5. Install the following packages
    git fakeroot build-essential ncurses-dev xz-utils libssl-dev bc flex libelf-dev bison
    
  6. Install the modified kernel as normal. No changes are required for make menuconfig
    cp /boot/config-$(uname -r) .config
    make menuconfig
    make -j$(nproc)
    sudo make modules_install -j$(nproc)
    sudo make install -j$(nproc)
  7. Restart your machine
    sudo reboot
    
  8. Confirm that you now have Linux version 4.19.51+ installed
    uname -a

Install Re-Animator LTTng

  1. Ensure you have the Re-Animator Linux kernel patch installed. To install the Re-Animator Linux kernel patch, visit the Installing Re-Animator Linux Kernel Modifications section
  2. Install the following required programs and libraries:
    asciidoc autoconf automake bison build-essential cmake flex g++ gcc git libaio-dev libboost-dev libboost-program-options-dev libboost-thread-dev libdw-dev libelf-dev libgtk2.0-dev libnuma-dev libpopt-dev libtool libxml2-dev libxml2-dev make perl uuid-dev zlib1g-dev
    
    All of the above requirements are available through the APT package manager on Ubuntu 16 and 18.
  3. Clone this repository
    git clone https://github.com/SNIA/reanimator-lttng.git
    cd reanimator-lttng
  4. Build Re-Animator LTTng with build-reanimator-lttng.sh. Run with --install-packages to install any missing packages
    ./build-reanimator-lttng.sh
  5. Disable sudo prompts. Alternatively, one may remove all instances of sudo, recompile, and run as root. Re-Animator LTTng components call system(3) with sudo, and thus cannot function correctly without sudo prompts disabled.
  6. The lttng-client executable will be located under the build directory

Usage

Generic options:
  -h [ --help ]                   lttng-client [-s, -d] -e [COMMAND]

Configuration:
  -v [ --verbose ]                prints execution logs
  -s [ --session-directory ] arg  lttng session directory path
  -e [ --exec ] arg               executable string which is going to be run 
                                  through lttng
  -d [ --ds-output ] arg          ds output file path

Example

In this example, we trace and replay /bin/ls in the Re-Animator LTTng build directory.

Tracing

$ ./lttng-client -s /tmp/session-capture/ -d /tmp/ls-example.ds -e /bin/ls
CMakeCache.txt  Makefile  cmake_install.cmake  lttng-client.log   oneTBB                 reanimator-library        reanimator-lttng-tools  reanimator-replayer       report.txt
CMakeFiles      Tests     lttng-client         lttng-read-buffer  reanimator-babeltrace  reanimator-lttng-modules  reanimator-lttng-ust    reanimator-userspace-rcu
>>>>>>>>>>>    babeltrace timing                       :    176  
>>>>>>>>>>>    tracing total timing                    :    933  
>>>>>>>>>>>    tracing just for execution period timing:    7    

Replaying

$ reanimator-replayer/build/system-call-replayer /tmp/ls-example.ds 
CMakeCache.txt  Makefile  cmake_install.cmake  lttng-client.log   oneTBB                 reanimator-library        reanimator-lttng-tools  reanimator-replayer       report.txt
CMakeFiles      Tests     lttng-client         lttng-read-buffer  reanimator-babeltrace  reanimator-lttng-modules  reanimator-lttng-ust    reanimator-userspace-rcu

Contribute Traces to IOTTA

We strongly encourage you to submit traces taken with Re-Animator LTTng to the SNIA IOTTA Repository. For more information, visit FAQs for Contributing Trace Files.

Dependencies and Support

Ubuntu 16 and 18 are officially supported.

Re-Animator LTTng depends on forks of LTTng components:

As well as the following Re-Animator components: