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:
parent
aefa767a80
commit
8078d0b567
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user