Update of /projects/cvsroot/pvfs2/src/io/flow/flowproto-bmi-trove
In directory parlweb:/tmp/cvs-serv3174/src/io/flow/flowproto-bmi-trove
Modified Files:
Tag: dbpf-changes-branch
flowproto-multiqueue.c
Log Message:
merging changes from HEAD to dbpf branch
Index: flowproto-multiqueue.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/io/flow/flowproto-bmi-trove/flowproto-multiqueue.c,v
diff -p -u -r1.103 -r1.103.2.1
--- flowproto-multiqueue.c 14 Dec 2005 21:50:26 -0000 1.103
+++ flowproto-multiqueue.c 12 Jan 2006 19:43:15 -0000 1.103.2.1
@@ -50,6 +50,8 @@ struct result_chain_entry
struct PINT_thread_mgr_trove_callback trove_callback;
};
+extern struct PINT_perf_counter* PINT_server_pc;
+
/* fp_queue_item describes an individual buffer being used within the flow */
struct fp_queue_item
{
@@ -997,7 +999,10 @@ static int bmi_send_callback_fn(void *us
return(0);
}
- PINT_perf_count(PINT_PERF_READ, actual_size, PINT_PERF_ADD);
+ PINT_perf_count(PINT_server_pc,
+ PINT_PERF_READ,
+ actual_size,
+ PINT_PERF_ADD);
flow_data->parent->total_transferred += actual_size;
@@ -1230,7 +1235,10 @@ static void trove_write_callback_fn(void
result_tmp = &q_item->result_chain;
do{
q_item->parent->total_transferred += result_tmp->result.bytes;
- PINT_perf_count(PINT_PERF_WRITE, result_tmp->result.bytes,
+ PINT_perf_count(
+ PINT_server_pc,
+ PINT_PERF_WRITE,
+ result_tmp->result.bytes,
PINT_PERF_ADD);
old_result_tmp = result_tmp;
result_tmp = result_tmp->next;