freebsd-dev/sys/cddl/dev
Mark Johnston 29f4e216f2 Rename the kld_unload event handler to kld_unload_try, and add a new
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
2013-08-24 21:13:38 +00:00
..
cyclic Mark MALLOC_DEFINEs static that have no corresponding MALLOC_DECLAREs. 2011-11-07 06:44:47 +00:00
dtmalloc The dtmalloc provider uses the short description of a malloc type as the 2013-06-28 03:14:40 +00:00
dtrace Rename the kld_unload event handler to kld_unload_try, and add a new 2013-08-24 21:13:38 +00:00
fbt fbt: drop a local write-only variable 2013-08-23 14:41:27 +00:00
lockstat Implement DTrace for PowerPC. This includes both 32-bit and 64-bit. 2012-11-07 23:45:09 +00:00
profile Implement DTrace for PowerPC. This includes both 32-bit and 64-bit. 2012-11-07 23:45:09 +00:00
sdt Rename the kld_unload event handler to kld_unload_try, and add a new 2013-08-24 21:13:38 +00:00
systrace Correct the types of the arguments to return probes of the syscall 2011-11-11 03:49:42 +00:00
prototype.c