|
From: <sv...@va...> - 2008-04-06 13:05:54
|
Author: bart
Date: 2008-04-06 14:05:58 +0100 (Sun, 06 Apr 2008)
New Revision: 7850
Log:
Added bm_get_bitmap2_node_creation_count().
Modified:
trunk/exp-drd/drd_bitmap.c
trunk/exp-drd/drd_bitmap.h
trunk/exp-drd/pub_drd_bitmap.h
Modified: trunk/exp-drd/drd_bitmap.c
===================================================================
--- trunk/exp-drd/drd_bitmap.c 2008-04-06 13:03:49 UTC (rev 7849)
+++ trunk/exp-drd/drd_bitmap.c 2008-04-06 13:05:58 UTC (rev 7850)
@@ -879,6 +879,11 @@
return s_bitmap_creation_count;
}
+ULong bm_get_bitmap2_node_creation_count(void)
+{
+ return s_bitmap2_creation_count;
+}
+
ULong bm_get_bitmap2_creation_count(void)
{
return s_bitmap2_creation_count;
Modified: trunk/exp-drd/drd_bitmap.h
===================================================================
--- trunk/exp-drd/drd_bitmap.h 2008-04-06 13:03:49 UTC (rev 7849)
+++ trunk/exp-drd/drd_bitmap.h 2008-04-06 13:05:58 UTC (rev 7850)
@@ -78,6 +78,7 @@
/* Local variables. */
static ULong s_bitmap2_creation_count;
+static ULong s_node_creation_count;
@@ -386,6 +387,7 @@
struct bitmap2ref* bm2ref;
struct bitmap2* bm2;
+ s_node_creation_count++;
bm2ref = VG_(OSetGen_AllocNode)(bm->oset, sizeof(*bm2ref));
bm2ref->addr = a1;
bm2 = bm2_new(a1);
@@ -409,6 +411,8 @@
tl_assert(bm);
//tl_assert(VG_(OSetGen_Lookup)(bm->oset, &bm2->addr) == 0);
+
+ s_node_creation_count++;
bm2ref = VG_(OSetGen_AllocNode)(bm->oset, sizeof(*bm2ref));
bm2ref->addr = bm2->addr;
bm2ref->bm2 = bm2;
Modified: trunk/exp-drd/pub_drd_bitmap.h
===================================================================
--- trunk/exp-drd/pub_drd_bitmap.h 2008-04-06 13:03:49 UTC (rev 7849)
+++ trunk/exp-drd/pub_drd_bitmap.h 2008-04-06 13:05:58 UTC (rev 7850)
@@ -112,7 +112,9 @@
const struct bitmap* const bm2);
void bm_print(const struct bitmap* bm);
ULong bm_get_bitmap_creation_count(void);
+ULong bm_get_bitmap2_node_creation_count(void);
ULong bm_get_bitmap2_creation_count(void);
+
void bm_test(void);
|