[Pvfs2-cvs] commit by kunkel in pvfs2/src/io/trove/trove-dbpf: dbpf-bstream.c dbpf-dspace.c dbpf.h

CVS commit program cvs at parl.clemson.edu
Mon Dec 18 10:46:08 EST 2006


Update of /projects/cvsroot/pvfs2/src/io/trove/trove-dbpf
In directory parlweb1:/tmp/cvs-serv4149/src/io/trove/trove-dbpf

Modified Files:
      Tag: kunkel-hint-branch
	dbpf-bstream.c dbpf-dspace.c dbpf.h 
Log Message:
Incorporate written size into event value (for event starts) for DBPF ops.


Index: dbpf-bstream.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/io/trove/trove-dbpf/dbpf-bstream.c,v
diff -p -u -r1.72.2.4 -r1.72.2.5
--- dbpf-bstream.c	2 Dec 2006 11:20:30 -0000	1.72.2.4
+++ dbpf-bstream.c	18 Dec 2006 15:46:08 -0000	1.72.2.5
@@ -936,7 +936,14 @@ inline int dbpf_bstream_rw_list(TROVE_co
                         flags,
                         context_id);
 
-    DBPF_EVENT_START(event_type, q_op_p->op.id, hints);
+    {
+    PVFS_size count_mem = 0;
+    for(i = 0; i < mem_count; ++i)
+    {
+        count_mem += mem_size_array[i];
+    }
+    DBPF_EVENT_START(event_type, q_op_p->op.id, hints, count_mem);
+    }
 
     if(gossip_debug_enabled(GOSSIP_TROVE_DEBUG))
     {

Index: dbpf-dspace.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/io/trove/trove-dbpf/dbpf-dspace.c,v
diff -p -u -r1.136.4.4 -r1.136.4.5
--- dbpf-dspace.c	2 Dec 2006 11:20:30 -0000	1.136.4.4
+++ dbpf-dspace.c	18 Dec 2006 15:46:08 -0000	1.136.4.5
@@ -156,7 +156,7 @@ static int dbpf_dspace_create(TROVE_coll
         return -TROVE_EINVAL;
     }
 
-    DBPF_EVENT_START(PVFS_EVENT_TROVE_DSPACE_CREATE, op_p->id, hints);
+    DBPF_EVENT_START(PVFS_EVENT_TROVE_DSPACE_CREATE, op_p->id, hints, 0);
 
     /* this array is freed in dbpf-op.c:dbpf_queued_op_free */
     op_p->u.d_create.extent_array.extent_count =

Index: dbpf.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/io/trove/trove-dbpf/dbpf.h,v
diff -p -u -r1.74.4.4 -r1.74.4.5
--- dbpf.h	2 Dec 2006 11:20:30 -0000	1.74.4.4
+++ dbpf.h	18 Dec 2006 15:46:08 -0000	1.74.4.5
@@ -63,8 +63,8 @@ extern "C" {
 (((__id << ((sizeof(__id) - 1) * 8)) | __handle) %                       \
    DBPF_BSTREAM_MAX_NUM_BUCKETS)
 
-#define DBPF_EVENT_START(__op, __id, __hint)                             \
- PINT_event_timestamp_hint(PVFS_EVENT_API_TROVE, __op, 0, __id,          \
+#define DBPF_EVENT_START(__op, __id, __hint, __value)                    \
+ PINT_event_timestamp_hint(PVFS_EVENT_API_TROVE, __op, __value, __id,    \
  PVFS_EVENT_FLAG_START, __hint)
 
 #define DBPF_EVENT_END(__op, __id, __hint)                               \



More information about the Pvfs2-cvs mailing list