Skip to content

Commit c1fd3ae

Browse files
committed
NA OFI: add some missing debug log
Fix print format of MR key
1 parent fd37d9a commit c1fd3ae

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

src/na/na_ofi.c

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6661,8 +6661,8 @@ na_ofi_rma_post(
66616661
NA_LOG_SUBSYS_DEBUG(rma,
66626662
"Posting %s(iov_count=%zu, desc[0]=%p, msg_iov[0].iov_base=%p, "
66636663
"msg_iov[0].iov_len=%zu, addr=%" PRIu64
6664-
", rma_iov_count=%zu, rma_iov[0].addr=%" PRIu64
6665-
", rma_iov[0].len=%zu, rma_iov[0].key=%" PRIu64
6664+
", rma_iov_count=%zu, rma_iov[0].addr=0x%" PRIx64
6665+
", rma_iov[0].len=%zu, rma_iov[0].key=0x%" PRIx64
66666666
", context=%p, data=%" PRIu64 ")",
66676667
rma_info->fi_rma_op_string, fi_msg_rma.iov_count, fi_msg_rma.desc[0],
66686668
fi_msg_rma.msg_iov[0].iov_base, fi_msg_rma.msg_iov[0].iov_len,
@@ -6680,8 +6680,8 @@ na_ofi_rma_post(
66806680
NA_LOG_SUBSYS_ERROR(rma,
66816681
"%s(iov_count=%zu, desc[0]=%p, "
66826682
"msg_iov[0].iov_base=%p, msg_iov[0].iov_len=%zu, addr=%" PRIu64
6683-
", rma_iov_count=%zu, rma_iov[0].addr=%" PRIu64
6684-
", rma_iov[0].len=%zu, rma_iov[0].key=%" PRIu64
6683+
", rma_iov_count=%zu, rma_iov[0].addr=0x%" PRIx64
6684+
", rma_iov[0].len=%zu, rma_iov[0].key=0x%" PRIx64
66856685
", context=%p, data=%" PRIu64 ") failed, rc: %zd (%s)",
66866686
rma_info->fi_rma_op_string, fi_msg_rma.iov_count,
66876687
fi_msg_rma.desc[0], fi_msg_rma.msg_iov[0].iov_base,
@@ -7124,8 +7124,8 @@ na_ofi_cq_process_error(
71247124
"error event on operation ID %p (%s), "
71257125
"%s(iov_count=%zu, desc[0]=%p, "
71267126
"msg_iov[0].iov_base=%p, msg_iov[0].iov_len=%zu, addr=%" PRIu64
7127-
", rma_iov_count=%zu, rma_iov[0].addr=%" PRIu64
7128-
", rma_iov[0].len=%zu, rma_iov[0].key=%" PRIu64
7127+
", rma_iov_count=%zu, rma_iov[0].addr=0x%" PRIx64
7128+
", rma_iov[0].len=%zu, rma_iov[0].key=0x%" PRIx64
71297129
", context=%p, data=%" PRIu64 ") failed, rc: %d (%s)",
71307130
(void *) na_ofi_op_id, na_cb_type_to_string(na_ofi_op_id->type),
71317131
rma_info->fi_rma_op_string, fi_msg_rma.iov_count,
@@ -9103,6 +9103,13 @@ na_ofi_mem_handle_create(na_class_t NA_UNUSED *na_class, void *buf,
91039103
na_ofi_mem_handle->desc.info.flags = flags & 0xff;
91049104
na_ofi_mem_handle->desc.info.len = buf_size;
91059105

9106+
NA_LOG_SUBSYS_DEBUG(mem,
9107+
"Created mem handle %p (iov_base=%p, iov_len=%zu, iovcnt=1, "
9108+
"flags=0x%lx, len=%zu)",
9109+
(void *) na_ofi_mem_handle, na_ofi_mem_handle->desc.iov.s[0].iov_base,
9110+
na_ofi_mem_handle->desc.iov.s[0].iov_len,
9111+
na_ofi_mem_handle->desc.info.flags, na_ofi_mem_handle->desc.info.len);
9112+
91069113
*mem_handle_p = (na_mem_handle_t *) na_ofi_mem_handle;
91079114

91089115
return NA_SUCCESS;
@@ -9436,6 +9443,14 @@ na_ofi_mem_handle_deserialize(na_class_t NA_UNUSED *na_class,
94369443
NA_DECODE_ARRAY(error, ret, buf_ptr, buf_size_left, iov, struct iovec,
94379444
na_ofi_mem_handle->desc.info.iovcnt);
94389445

9446+
NA_LOG_SUBSYS_DEBUG(mem,
9447+
"Deserialized mem handle %p (iov_base=%p, iov_len=%zu, iovcnt=%zu, "
9448+
"flags=0x%lx, len=%zu)",
9449+
(void *) na_ofi_mem_handle, na_ofi_mem_handle->desc.iov.s[0].iov_base,
9450+
na_ofi_mem_handle->desc.iov.s[0].iov_len,
9451+
na_ofi_mem_handle->desc.info.iovcnt, na_ofi_mem_handle->desc.info.flags,
9452+
na_ofi_mem_handle->desc.info.len);
9453+
94399454
*mem_handle_p = (na_mem_handle_t *) na_ofi_mem_handle;
94409455

94419456
return NA_SUCCESS;

0 commit comments

Comments
 (0)