tracers-libstapsdt-sys

Exposes libstapsdt to Rust code for programmatic creation of SystemTap user mode probes. Never use this crate directly; use `tracers` and let it determine the correct implementation at build time.


License
MIT

Documentation

tracers - Rust instrumentation library

Build Status

Summary

tracers is intended to be an easy to use and cross-platform Rust crate which makes it easy to add high-performance low-overhead probes to Rust programs. Underneath it will use each platform's native probing mechanism, like System Tap on Linux, DTrace on BSD, and ETW on Windows. Those platforms without a supported probing mechanism will fall back to a no-op implementation.

A key goal of this crate is to be able to drop it in to any Rust project, create and fire probes wherever it makes sense, and leave those probes in place all the time. When probes are disabled at compile time, there should be zero runtime impact, and when probes are compiled in but not enabled at runtime the probe impact should be no more than one or two CPU instructions.

Status

IMPORTANT: tracers is still in the early experimental stages. The author hereby guarantees it will not work on your system, may cause data loss, and definitely contributes to premature hair loss. Do not use it.

License

Except where otherwise indicated, this project is licensed under either of

at your option.

However, the following -sys crates have the license corresponding to the third-party code which they wrap:

  • libelf-sys - Wraps elfutils libraries and thus is licensed LGPLv3
  • libstapsdt-sys - Wraps libstapsdt and thus is licensed MIT

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in tracers by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.