From 8cd47181988b586eed255c1bab451c6164dfbff5 Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Mon, 26 Jun 2006 18:57:55 +0000 Subject: [PATCH] Generate the PERUSE PERUSE_COMM_REQ_XFER_BEGIN event only when there is some data to transfer. This commit was SVN r10498. --- ompi/mca/pml/ob1/pml_ob1_recvreq.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ompi/mca/pml/ob1/pml_ob1_recvreq.h b/ompi/mca/pml/ob1/pml_ob1_recvreq.h index 1cafcb98ed..358bda77f8 100644 --- a/ompi/mca/pml/ob1/pml_ob1_recvreq.h +++ b/ompi/mca/pml/ob1/pml_ob1_recvreq.h @@ -245,11 +245,11 @@ do { } \ ompi_convertor_get_unpacked_size( &(request)->req_recv.req_convertor, \ &(request)->req_bytes_delivered ); \ + PERUSE_TRACE_COMM_EVENT (PERUSE_COMM_REQ_XFER_BEGIN, \ + &((request)->req_recv.req_base), PERUSE_RECV); \ } else { \ (request)->req_bytes_delivered = (request)->req_recv.req_bytes_packed; \ } \ - PERUSE_TRACE_COMM_EVENT (PERUSE_COMM_REQ_XFER_BEGIN, \ - &((request)->req_recv.req_base), PERUSE_RECV); \ } while (0)