Babeltrace 2 C API  2.0.6
Open-source trace manipulation framework
Build Babeltrace 2 for development

If you are developing a Babeltrace 2 plugin or an application which uses libbabeltrace2, we recommend that:

To build Babeltrace 2 from source in developer mode and using TRACE as the minimal logging level:

  1. Download the Babeltrace 2 tarball and extract it.

    See the project's README for build-time requirements and detailed build instructions.

  2. Configure the build in developer mode and with the TRACE minimal logging level:

    1 $ BABELTRACE_DEV_MODE=1 BABELTRACE_MINIMAL_LOG_LEVEL=TRACE ./configure
  3. Build and install the project:

    1 $ make
    2 # make install

Babeltrace 2 developer mode build configuration command line examples:

1 $ BABELTRACE_DEV_MODE=1 BABELTRACE_MINIMAL_LOG_LEVEL=TRACE ./configure \
2  --enable-python-bindings --enable-python-plugins
1 $ BABELTRACE_DEV_MODE=1 BABELTRACE_MINIMAL_LOG_LEVEL=TRACE ./configure \
2  --prefix="$PWD/install" --disable-man-pages --disable-debug-info
Note

The development build creates a libbabeltrace2 library which is slower to execute than a production (default) build.

We believe that, during the development process, a less efficient, but more strict library is more desirable than the opposite.