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;
 
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to