svn commit: r353483 - head/sys/dev/hwpmc
Matt Macy
mmacy at FreeBSD.org
Sun Oct 13 22:26:56 UTC 2019
Author: mmacy
Date: Sun Oct 13 22:26:55 2019
New Revision: 353483
URL: https://svnweb.freebsd.org/changeset/base/353483
Log:
Fix sample check in hwpmc
Don't drop samples with callchain pending
Tested by: mjg@
Submitted by: Rajeeb Barman at amd.com
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D17011
Modified:
head/sys/dev/hwpmc/hwpmc_mod.c
Modified: head/sys/dev/hwpmc/hwpmc_mod.c
==============================================================================
--- head/sys/dev/hwpmc/hwpmc_mod.c Sun Oct 13 19:58:37 2019 (r353482)
+++ head/sys/dev/hwpmc/hwpmc_mod.c Sun Oct 13 22:26:55 2019 (r353483)
@@ -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-all
mailing list