pub unsafe fn clear_thread_hooks()
Expand description

Direct all perf-event system calls on this thread to the real system calls.

All subsequent uses by this crate of the underlying system calls and ioctls from the perf_event_open_sys crate are directed to the underlying Linux operations, without interference.

This affects only the calling thread. Any previously established hooks on that thread are dropped.

Safety

The specified hooks trait object intercepts calls provoked by previously created Counter and Group values, regardless of which hooks were in effect when they were created. Letting values created using hooked system calls suddenly see the real kernel could make a hash of things.