Add new command to view the event queue

Fixes to fake poll events to improve fairness
This commit is contained in:
Mark Riddoch
2014-10-17 08:36:32 +01:00
parent fe0e7c74d0
commit f459bdfe04
4 changed files with 59 additions and 7 deletions

View File

@ -1389,6 +1389,12 @@ dprintDCB(DCB *pdcb, DCB *dcb)
dcb->stats.n_high_water);
dcb_printf(pdcb, "\t\tNo. of Low Water Events: %d\n",
dcb->stats.n_low_water);
if (DCB_POLL_BUSY(dcb))
{
dcb_printf(pdcb, "\t\tPending events in the queue: %x %s\n",
dcb->evq.pending_events, dcb->evq.processing ? "(processing)" : "");
}
if (dcb->flags & DCBF_CLONE)
dcb_printf(pdcb, "\t\tDCB is a clone.\n");
#if SPINLOCK_PROFILE