IB/hfi1: Add the counter n_tidwait
This patch adds the counter n_tidwait to count the number of times the TID resource allocator has to wait for TID resources. Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com> Signed-off-by: Kaike Wan <kaike.wan@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
@@ -495,6 +495,7 @@ static void queue_qp_for_tid_wait(struct hfi1_ctxtdata *rcd,
|
||||
qp->s_flags |= HFI1_S_WAIT_TID_SPACE;
|
||||
list_add_tail(&priv->tid_wait, &queue->queue_head);
|
||||
priv->tid_enqueue = ++queue->enqueue;
|
||||
rcd->dd->verbs_dev.n_tidwait++;
|
||||
trace_hfi1_qpsleep(qp, HFI1_S_WAIT_TID_SPACE);
|
||||
rvt_get_qp(qp);
|
||||
}
|
||||
@@ -1569,3 +1570,11 @@ static void hfi1_init_trdma_req(struct rvt_qp *qp,
|
||||
req->qp = qp;
|
||||
req->rcd = qpriv->rcd;
|
||||
}
|
||||
|
||||
u64 hfi1_access_sw_tid_wait(const struct cntr_entry *entry,
|
||||
void *context, int vl, int mode, u64 data)
|
||||
{
|
||||
struct hfi1_devdata *dd = context;
|
||||
|
||||
return dd->verbs_dev.n_tidwait;
|
||||
}
|
||||
|
Reference in New Issue
Block a user