libstapsdt - Runtime USDT probes on Linux!

libstapsdt is a library which allows creating and firing Systemtap’s USDT probes at runtime. It’s inspired on chrisa/libusdt. The goal of this library is to add USDT probes functionality to dynamic languages.

Motivation

Systemtap’s USDT implementation allows only statically defined probes because they are set as ELF notes by the compiler. To create probes at runtime, libstapsdt takes advantage of shared libraries: it creates a small library with an ELF note and links it at runtime. This way, most existing tools will keep working as expected.