This library connects the strace code (written in C) to the DataSeries API (written in C++). It acts as a glue so that C++ functions are made callable from C code. Our fork of strace, reanimator-strace, takes advantage of this library to output traces in the DataSeries format.
Currently, only Ubuntu 16 and 18 are officially supported.
- Lintel - general utility library for DataSeries
- DataSeries - data format for structured serial data
- tcmalloc - high-performance, multi-threaded
malloc()implementation - libtool
- libboost-dev (v1.58 only)
- libboost-thread-dev (v1.58 only)
- libboost-program-options-dev (v1.58 only)
- build-essential
- libxml2-dev
- zlib1g-dev
Install the following required programs and libraries. On Ubuntu 16 and 18, all the above requirements are available through the APT package manager.:
git cmake perl autoconf automake gcc g++ libtool libboost-dev libboost-thread-dev libboost-program-options-dev build-essential libxml2-dev zlib1g-dev
After installing the required programs and libraries, run build-reanimator-library.sh to automatically build strace2ds. All arguments are optional:
| Argument | Description |
|---|---|
--install |
Install libraries and binaries under /usr/local |
--install-dir DIR |
Install libraries and binaries to DIR (ignored if --install) |
--config-args ARGS |
Append ARGS to every ./configure command |
-h, --help |
Display a help message |
Manually building strace2ds closely resembles the steps taken in build-reanimator-library.sh.
-
Install Lintel by running cmake . && make && make install at the root of the Lintel repository.
-
Install DataSeries by running cmake . && make && make install at the root of the DataSeries repository.
-
Install tcmalloc from the gperftools repository. See the gperftools
INSTALLfile for detailed instructions. -
Navigate to the
tables/subdirectory and runperl gen-xml-enums.plto update the .xml files. -
Create a subdirectory named
buildin the strace2ds-library directory and navigate to it. Runcp -r ../xml ./to copy the xml folder into the build directory. -
cdinto your build directory and runcmake -DCMAKE_INSTALL_PREFIX:PATH=<Install Here> ../. Specifying a custom install directory formake installvia-DCMAKE_INSTALL_PREFIX:PATH=<Install Here>is optional. -
Run
makeandmake installto build and install strace2ds.