[netperf-dev] netperf4 commit notice r150 - branches/glib_migration/src

raj at netperf.org raj at netperf.org
Wed Apr 12 13:43:07 PDT 2006


Author: raj
Date: 2006-04-12 13:43:06 -0700 (Wed, 12 Apr 2006)
New Revision: 150

Modified:
   branches/glib_migration/src/netsysstats_windows.c
Log:
Add some debugging


Modified: branches/glib_migration/src/netsysstats_windows.c
===================================================================
--- branches/glib_migration/src/netsysstats_windows.c	2006-04-12 20:23:49 UTC (rev 149)
+++ branches/glib_migration/src/netsysstats_windows.c	2006-04-12 20:43:06 UTC (rev 150)
@@ -220,6 +220,32 @@
 				       res[i].user +
 				       res[i].idle);
 
+    if (test->debug) {
+      fprintf(test->where,
+	      "\tTickHz 0x%x ",
+              psd->TickHz.QuadPart);
+      fprintf(test->where,
+	      "\tcalibrate[%d] = 0x%"PRIx64" ",
+	      i,
+	      res[i].calibrate);
+      fprintf(test->where,
+	      "\tidle[%d] = 0x%"PRIx64" ",
+	      i,
+	      res[i].idle);
+      fprintf(test->where,
+	      "user[%d] = 0x%"PRIx64" ",
+	      i,
+	      res[i].user);
+      fprintf(test->where,
+	      "kern[%d] = 0x%"PRIx64" ",
+	      i,
+	      res[i].kernel);
+      fflush(test->where);
+      fprintf(test->where,
+	      "intr[%d] = 0x%"PRIx64"\n",
+	      i,
+	      res[i].interrupt);
+    }
   }
 
   NETPERF_DEBUG_EXIT(test->debug, test->where);



More information about the netperf-dev mailing list