freebsd-dev/sys/dev/hwpmc
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
..
hwpmc_amd.c hwpmc amd_pcpu_fini: fix a bug in code locked under DEBUG 2012-09-18 13:33:39 +00:00
hwpmc_amd.h
hwpmc_arm.c Remove all the checks on curthread != NULL with the exception of some MD 2012-09-13 22:26:22 +00:00
hwpmc_core.c Add in missing events for Sandy Bridge Xeon. 2013-08-18 06:08:52 +00:00
hwpmc_core.h Add Intel Ivy Bridge support to hwpmc(9). 2012-09-06 13:54:01 +00:00
hwpmc_ia64.c
hwpmc_intel.c Complete r250097: 2013-04-30 14:56:41 +00:00
hwpmc_logging.c Add software PMC support. 2012-03-28 20:58:30 +00:00
hwpmc_mips24k.c Rework MIPS PMC code: 2012-03-22 18:01:23 +00:00
hwpmc_mips.c Fix class malloc init for mips and powerpc that was not converted 2012-04-23 08:58:01 +00:00
hwpmc_mod.c Rename the kld_unload event handler to kld_unload_try, and add a new 2013-08-24 21:13:38 +00:00
hwpmc_octeon.c Add Octeon PMC hardware backend 2012-03-23 00:09:27 +00:00
hwpmc_pentium.c
hwpmc_pentium.h
hwpmc_piv.c Add software PMC support. 2012-03-28 20:58:30 +00:00
hwpmc_piv.h
hwpmc_powerpc.c Fix class malloc init for mips and powerpc that was not converted 2012-04-23 08:58:01 +00:00
hwpmc_ppro.c Add software PMC support. 2012-03-28 20:58:30 +00:00
hwpmc_ppro.h
hwpmc_soft.c malloc(9) cannot return NULL if M_WAITOK flag is specified. 2013-04-30 15:59:22 +00:00
hwpmc_soft.h Add software PMC support. 2012-03-28 20:58:30 +00:00
hwpmc_sparc64.c
hwpmc_tsc.c Add software PMC support. 2012-03-28 20:58:30 +00:00
hwpmc_tsc.h
hwpmc_uncore.c Trailing whitespace cleanup along with 80 column enforcemnt. 2013-04-03 21:34:35 +00:00
hwpmc_uncore.h - Add support for the Intel Sandy Bridge microarchitecture (both core and uncore counting events) 2012-03-01 21:23:26 +00:00
hwpmc_x86.c Remove all the checks on curthread != NULL with the exception of some MD 2012-09-13 22:26:22 +00:00
hwpmc_xscale.c Add software PMC support. 2012-03-28 20:58:30 +00:00
hwpmc_xscale.h
pmc_events.h Change the name of this particular event to reflect the name used in 2013-08-21 21:47:56 +00:00