Skip to content

Commit

Permalink
providers/efa: Add EFA op_type to post_send trace point
Browse files Browse the repository at this point in the history
This is essential to distinguish between send, read, and write.

Signed-off-by: Yehuda Yitschak <[email protected]>
Signed-off-by: Michael Margolin <[email protected]>
  • Loading branch information
Yehuda Yitschak authored and mrgolin committed Nov 19, 2023
1 parent c61eb23 commit 7bde7f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions providers/efa/efa_trace.h
Expand Up @@ -52,6 +52,7 @@ LTTNG_UST_TRACEPOINT_EVENT(
LTTNG_UST_TP_ARGS(
char *, dev_name,
uint64_t, wr_id,
uint8_t, op_type,
uint32_t, src_qp_num,
uint32_t, dst_qp_num,
uint16_t, ah_num
Expand All @@ -61,6 +62,7 @@ LTTNG_UST_TRACEPOINT_EVENT(
LTTNG_UST_TP_FIELDS(
lttng_ust_field_string(dev_name, dev_name)
lttng_ust_field_integer(uint64_t, wr_id, wr_id)
lttng_ust_field_integer(uint8_t, op_type, op_type)
lttng_ust_field_integer(uint32_t, src_qp_num, src_qp_num)
lttng_ust_field_integer(uint32_t, dst_qp_num, dst_qp_num)
lttng_ust_field_integer(uint16_t, ah_num, ah_num)
Expand Down
3 changes: 2 additions & 1 deletion providers/efa/verbs.c
Expand Up @@ -1863,7 +1863,7 @@ int efa_post_send(struct ibv_qp *ibvqp, struct ibv_send_wr *wr,
mmio_wc_start();
}
rdma_tracepoint(rdma_core_efa, post_send, qp->dev->name, wr->wr_id,
ibvqp->qp_num, meta_desc->dest_qp_num, ah->efa_ah);
EFA_IO_SEND, ibvqp->qp_num, meta_desc->dest_qp_num, ah->efa_ah);
wr = wr->next;
}

Expand Down Expand Up @@ -2144,6 +2144,7 @@ static void efa_send_wr_set_addr(struct ibv_qp_ex *ibvqpx,
tx_wqe->meta.qkey = remote_qkey;

rdma_tracepoint(rdma_core_efa, post_send, qp->dev->name, ibvqpx->wr_id,
EFA_GET(&tx_wqe->meta.ctrl1, EFA_IO_TX_META_DESC_OP_TYPE),
ibvqpx->qp_base.qp_num, remote_qpn, ah->efa_ah);
}

Expand Down

0 comments on commit 7bde7f5

Please sign in to comment.