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
This commit is contained in:
mmacy 2019-10-13 22:26:55 +00:00
parent aefa767a80
commit 8078d0b567

View File

@ -4828,7 +4828,7 @@ pmc_capture_user_callchain(int cpu, int ring, struct trapframe *tf)
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;