Babeltrace 2 C API  2.1.1
Open-source trace manipulation framework
Compile and link an application which uses libbabeltrace2

To compile and link an application which uses libbabeltrace2:

  1. Compile your C/C++ files as usual.

  2. Link the resulting object files with the Babeltrace 2 library:

    1 $ ld my-app.o analysis.o -o my-app $(pkg-config --libs babeltrace2)