freebsd-skq/sys/dev/hwpmc
kib 3d9fc3cca3 Do not run pmclog_configure_log() without pmc_sx protection.
The r195005 unlocked pmc_sx before calling into pmclog_configure_log()
to avoid the LOR, but it allows flush or closelog to run in parallel
with the configuration, causing many failure modes.

Revert r195005.  Pre-create the logging process, allowing it to run
after the set up succeeded, otherwise the process terminates itself.

Reported and tested by:	pho
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D12882
2017-11-01 11:43:39 +00:00
..
hwpmc_amd.c hwpmc(4): Add support for extended AMD events 2017-10-04 23:35:10 +00:00
hwpmc_amd.h hwpmc(4): Actually use a sufficiently wide type 2017-10-11 15:13:40 +00:00
hwpmc_arm64_md.c
hwpmc_arm64.c
hwpmc_arm64.h
hwpmc_arm.c Fix arm stack frame walking support: 2017-03-14 16:06:57 +00:00
hwpmc_armv7.c Fix HWPMC interrupt handling in Counting Mode 2017-06-13 18:51:23 +00:00
hwpmc_armv7.h
hwpmc_core.c o Support for Kabylake CPU PMCs (fall down to PMC_CPU_INTEL_SKYLAKE). 2017-10-13 15:02:29 +00:00
hwpmc_core.h
hwpmc_e500.c
hwpmc_intel.c o Support for Kabylake CPU PMCs (fall down to PMC_CPU_INTEL_SKYLAKE). 2017-10-13 15:02:29 +00:00
hwpmc_logging.c Do not run pmclog_configure_log() without pmc_sx protection. 2017-11-01 11:43:39 +00:00
hwpmc_mips24k.c
hwpmc_mips74k.c
hwpmc_mips.c
hwpmc_mod.c Do not run pmclog_configure_log() without pmc_sx protection. 2017-11-01 11:43:39 +00:00
hwpmc_mpc7xxx.c
hwpmc_octeon.c
hwpmc_pentium.c
hwpmc_pentium.h
hwpmc_piv.c Fix logic error in the the assert, causing the condition to be always true. 2017-08-08 15:46:29 +00:00
hwpmc_piv.h
hwpmc_powerpc.c
hwpmc_powerpc.h
hwpmc_ppc970.c
hwpmc_ppro.c
hwpmc_ppro.h
hwpmc_riscv.h
hwpmc_soft.c
hwpmc_soft.h
hwpmc_sparc64.c
hwpmc_tsc.c
hwpmc_tsc.h
hwpmc_uncore.c
hwpmc_uncore.h
hwpmc_x86.c
hwpmc_xscale.c
hwpmc_xscale.h
pmc_events.h o Support for Kabylake CPU PMCs (fall down to PMC_CPU_INTEL_SKYLAKE). 2017-10-13 15:02:29 +00:00