svn commit: r358921 - stable/12/sys/dev/hwpmc
Matt Macy
mmacy at FreeBSD.org
Thu Mar 12 20:59:01 UTC 2020
Author: mmacy
Date: Thu Mar 12 20:59:00 2020
New Revision: 358921
URL: https://svnweb.freebsd.org/changeset/base/358921
Log:
Fix sample check in hwpmc
Don't drop samples with callchain pending
Tested by: mjg@
MFC of r353483
Modified:
stable/12/sys/dev/hwpmc/hwpmc_mod.c
Modified: stable/12/sys/dev/hwpmc/hwpmc_mod.c
==============================================================================
--- stable/12/sys/dev/hwpmc/hwpmc_mod.c Thu Mar 12 20:51:04 2020 (r358920)
+++ stable/12/sys/dev/hwpmc/hwpmc_mod.c Thu Mar 12 20:59:00 2020 (r358921)
@@ -4828,7 +4828,7 @@ pmc_capture_user_callchain(int cpu, int ring, struct t
nfree++;
#endif
if (ps->ps_td != td ||
- ps->ps_nsamples == PMC_USER_CALLCHAIN_PENDING ||
+ ps->ps_nsamples != PMC_USER_CALLCHAIN_PENDING ||
ps->ps_pmc->pm_state != PMC_STATE_RUNNING)
continue;
More information about the svn-src-stable-12
mailing list