Function usdt::register_probes[][src]

pub fn register_probes() -> Result<(), Error>
Expand description

Register an application’s probes with DTrace.

This function collects the probes defined in an application, and forwards them to the DTrace kernel module. This must be done for the probes to be visible via the dtrace(1) tool. See probe_test_macro for a detailed example.

Notes

This function registers all probes in a process’s binary image, regardless of which crate actually defines the probes. It’s also safe to call this function multiple times, even in concurrent situations. Probes will be registered at most once.