3541d8b143
kld_unload event handler which gets invoked after a linker file has been successfully unloaded. The kld_unload and kld_load event handlers are now invoked with the shared linker lock held, while kld_unload_try is invoked with the lock exclusively held. Convert hwpmc(4) to use these event handlers instead of having kern_kldload() and kern_kldunload() invoke hwpmc(4) hooks whenever files are loaded or unloaded. This has no functional effect, but simplifes the linker code somewhat. Reviewed by: jhb |
||
---|---|---|
.. | ||
cyclic | ||
dtmalloc | ||
dtrace | ||
fbt | ||
lockstat | ||
profile | ||
sdt | ||
systrace | ||
prototype.c |