since page fault and general protection fault handling depends on it, and that
is needed for safe memory access support in DTrace.
Work around an apparent bug in Xen where an invalid opcode fault is delivered
as a general protection failure instead.
Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
* the first provider causing the core to be loaded.
*/
#endif
+ dtrace_enable();
mutex_unlock(&dtrace_provider_lock);
mutex_unlock(&dtrace_lock);
void dtrace_dev_exit(void)
{
+ dtrace_disable();
+
kmem_cache_destroy(dtrace_state_cache);
misc_deregister(&dtrace_dev);