A library wrapping the crictl
With the probe!
macro, programmers can place static instrumentation
points in their code to mark events of interest. These are compiled into
platform-specific implementations, e.g. SystemTap SDT on Linux. Probes are
designed to have negligible overhead during normal operation, so they can
be present in all builds, and only activated using those external tools.
libcrio
is available on crates.io.
The recommended way to use it is to add a line into your Cargo.toml such as:
toml
[dependencies]
libcrio = "0.1"
Then use libcrio::Cli;
in your code wherever you want
to call the crictl client.