Skip to content

Commit

Permalink
prov/efa: Adjust the location of tracepoint
Browse files Browse the repository at this point in the history
send_begin_msg_context should be moved to the
beginning of generic_send as msg is already
constructed at that time, before the txe construction.

Such moving allows us to measure the delay of the txe allocation
and construction.

Signed-off-by: Shi Jin <[email protected]>
  • Loading branch information
shijin-aws authored and j-xiong committed Nov 23, 2024
1 parent f12f5ea commit 5713d82
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions prov/efa/src/rdm/efa_rdm_msg.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ ssize_t efa_rdm_msg_generic_send(struct efa_rdm_ep *ep, struct efa_rdm_peer *pee
struct efa_rdm_ope *txe;
struct util_srx_ctx *srx_ctx;

efa_rdm_tracepoint(send_begin_msg_context,
(size_t) msg->context, (size_t) msg->addr);

srx_ctx = efa_rdm_ep_get_peer_srx_ctx(ep);

assert(msg->iov_count <= ep->base_ep.info->tx_attr->iov_limit);
Expand Down Expand Up @@ -192,8 +195,6 @@ ssize_t efa_rdm_msg_generic_send(struct efa_rdm_ep *ep, struct efa_rdm_peer *pee

efa_rdm_tracepoint(send_begin, txe->msg_id,
(size_t) txe->cq_entry.op_context, txe->total_len);
efa_rdm_tracepoint(send_begin_msg_context,
(size_t) msg->context, (size_t) msg->addr);

err = efa_rdm_msg_post_rtm(ep, txe);
if (OFI_UNLIKELY(err)) {
Expand Down

0 comments on commit 5713d82

Please sign in to comment.