No description
  • C 83.6%
  • M4 8.4%
  • C++ 3.8%
  • Shell 3.4%
  • Makefile 0.8%
Find a file
Michael Jeanson 39315fc1dc Relicense support file to the main MIT license
Rather than introduce a new license for this minor script, relicense it
to the main MIT license, we can do this since it was authored by
Olivier.

Change-Id: I49afcdebe1ca5de20b897d896e8cbe37cbfd2bd3
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
2026-02-27 15:46:28 -05:00
include Expand SIDE name to "Specification for Instrumentation Data Encoding" 2026-02-11 11:39:13 -05:00
LICENSES Remove unused license file for CC-BY-4.0 2026-02-27 15:45:30 -05:00
m4 fix: m4: ensure newline after the no-op command 2025-06-09 11:00:48 -04:00
src Add missing copyright tags 2026-02-27 15:45:58 -05:00
tests Add missing copyright tags 2026-02-27 15:45:58 -05:00
.gitignore Rename libside-tracer.pc to libside-console-tracer.pc 2026-02-05 14:54:41 -05:00
.gitreview Add git-review config 2024-07-23 16:38:23 -04:00
bootstrap Add autotools build system 2022-11-25 15:24:44 -05:00
configure.ac Rename libside-tracer.pc to libside-console-tracer.pc 2026-02-05 14:54:41 -05:00
LICENSE Initial commit 2022-10-12 11:36:23 +01:00
Makefile.am Remove unused license file for CC-BY-4.0 2026-02-27 15:45:30 -05:00
pre-inst-env.in Relicense support file to the main MIT license 2026-02-27 15:46:28 -05:00
README.md Expand SIDE name to "Specification for Instrumentation Data Encoding" 2026-02-11 11:39:13 -05:00

libside

Specification for Instrumentation Data Encoding

Dependencies

Building

Prerequisites

This source tree is based on the Autotools suite from GNU to simplify portability. Here are some things you should have on your system in order to compile the Git repository tree:

Building steps

If you get the tree from the Git repository, you will need to run

./bootstrap

in its root. It calls all the GNU tools needed to prepare the tree configuration.

To build and install, do:

./configure
make
sudo make install
sudo ldconfig

Console Tracer

libside includes a console tracer library (libside-console-tracer) for debugging and testing instrumented applications. When linked with an application, it registers as a tracer, enables all side events, and prints them to stdout in a human-readable format.

Usage

Preload the console tracer at runtime using LD_PRELOAD without modifying or relinking the application:

LD_PRELOAD=libside-console-tracer.so ./myapp

Or link your application with -lside-console-tracer in addition to -lside:

gcc -o myapp myapp.c -lside -Wl,--no-as-needed -lside-console-tracer

Or use pkg-config(1):

gcc -o myapp myapp.c					\
$(pkg-config --cflags --libs libside)			\
$(pkg-config --cflags --libs libside-console-tracer)

Example output

provider: myprovider, event: myevent, fields: { abc: { value: 42 } def: { value: -500 } }