diff options
author | Neal H. Walfield <neal@gnu.org> | 2009-02-24 04:05:58 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@gnu.org> | 2009-03-01 21:03:11 +0100 |
commit | c375a71efab7350a4febb0186cd95362b4231cf3 (patch) | |
tree | 73e01a16fc0fe0145db1a12e1da539280bec5ad6 | |
parent | 5b7cdcca8ce9389ccd138c69c72e769a3aea48a8 (diff) |
Disable some debugging output.
-rw-r--r-- | benchmarks/GCbench.c | 5 | ||||
-rw-r--r-- | benchmarks/boehm-gc/patches/05-viengoos-scheduler.patch | 2 | ||||
-rw-r--r-- | ruth/ruth.c | 2 | ||||
-rw-r--r-- | viengoos/object.c | 8 |
4 files changed, 8 insertions, 9 deletions
diff --git a/benchmarks/GCbench.c b/benchmarks/GCbench.c index 4689117..2bdacca 100644 --- a/benchmarks/GCbench.c +++ b/benchmarks/GCbench.c @@ -148,7 +148,7 @@ helper (void *arg) stat_count ++; if (stat_count % 10 == 0) - debug (0, DEBUG_BOLD ("Period %d"), stat_count); + debug (5, DEBUG_BOLD ("Period %d"), stat_count); } if (have_a_hog) @@ -537,7 +537,8 @@ int main() { #define ITERATIONS 100 for (iter = 0; iter < ITERATIONS; iter ++) { - printf ("%s: iteration %d\n", program_name, iter); + if (iter % 10 == 0) + printf ("%s: iteration %d\n", program_name, iter); for (d = kMinTreeDepth; d <= kMaxTreeDepth; d += 2) { TimeConstruction(d); } diff --git a/benchmarks/boehm-gc/patches/05-viengoos-scheduler.patch b/benchmarks/boehm-gc/patches/05-viengoos-scheduler.patch index a9361d5..d9cfb56 100644 --- a/benchmarks/boehm-gc/patches/05-viengoos-scheduler.patch +++ b/benchmarks/boehm-gc/patches/05-viengoos-scheduler.patch @@ -342,7 +342,7 @@ diff -urp -x config.guess -x config.sub -x 'aclocal*' -x configure -x Makefile.i + (uint64_t) old_avail / 1024 / 1024, + (uint64_t) GC_available_bytes / 1024 / 1024, + (uint64_t) THRESHOLD / 1024 / 1024); -+ if (info.event == vg_activity_info_pressure) ++ if (0 && info.event == vg_activity_info_pressure) + printf ("pages to free: %d mb\n", + info.pressure.amount * (PAGESIZE / 1024) / 1024); + } diff --git a/ruth/ruth.c b/ruth/ruth.c index c27fe80..4b1ede6 100644 --- a/ruth/ruth.c +++ b/ruth/ruth.c @@ -346,7 +346,6 @@ main (int argc, char *argv[]) printf ("ok.\n"); } -#if 0 { int done = 0; char stack[0x1000]; @@ -398,7 +397,6 @@ main (int argc, char *argv[]) printf ("ok.\n"); } -#endif { printf ("Checking pthread library... "); diff --git a/viengoos/object.c b/viengoos/object.c index c700784..e21f031 100644 --- a/viengoos/object.c +++ b/viengoos/object.c @@ -1215,7 +1215,7 @@ object_desc_claim (struct activity *activity, struct object_desc *desc, if (desc->activity->free_goal == 0) /* The activity met the free goal! */ { - debug (0, DEBUG_BOLD (OBJECT_NAME_FMT " met goal."), + debug (1, DEBUG_BOLD (OBJECT_NAME_FMT " met goal."), OBJECT_NAME_PRINTF ((struct vg_object *) desc->activity)); struct activity *ancestor = desc->activity; @@ -1260,10 +1260,10 @@ object_desc_claim (struct activity *activity, struct object_desc *desc, { activity->free_bad_karma = 8; - debug (0, DEBUG_BOLD (OBJECT_NAME_FMT - " failed to free %d pages."), + debug (1, DEBUG_BOLD (OBJECT_NAME_FMT + " failed to free "PAGES_FMT"."), OBJECT_NAME_PRINTF ((struct vg_object *) activity), - activity->free_goal); + PAGES_PRINTF (activity->free_goal)); } struct activity *ancestor = activity; |