update
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Mon, 27 Oct 2008 21:29:12 +0000 (21:29 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Mon, 27 Oct 2008 21:29:12 +0000 (21:29 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@3136 04897980-b3bd-0310-b5e0-8ef037075253

trunk/lttv/ltt/ltt-private.h
trunk/lttv/ltt/tracefile.c

index 4b2b4a3275638b4e6bcec14a7e5598cb612a6826..357a4cc713512f5f55fa239759811088c0b20de1 100644 (file)
@@ -88,11 +88,13 @@ struct ltt_subbuffer_header_2_2 {
        uint32_t buf_size;              /* Size of this subbuffer */
        uint32_t events_lost;           /*
                                         * Events lost in this subbuffer since
-                                        * last subbuffer switch.
+                                        * the beginning of the trace.
+                                        * (may overflow)
                                         */
        uint32_t subbuf_corrupt;        /*
                                         * Corrupted (lost) subbuffers since
                                         * the begginig of the trace.
+                                        * (may overflow)
                                         */
        char header_end[0];             /* End of header */
 };
index 7aaf232c08a701ee73d4d0f66d5eab6837ac74d7..c33e1877e9011ab21098d73984b1239d842f4fbb 100644 (file)
@@ -1387,16 +1387,18 @@ static gint map_block(LttTracefile * tf, guint block_num)
   tf->event.block = block_num;
   tf->event.offset = 0;
   
-  if (tf->events_lost != header->events_lost) {
-    g_warning("%d events lost in tracefile %s",
+  if (header->events_lost) {
+    g_warning("%d events lost so far in tracefile %s at block %u",
       tf->events_lost - header->events_lost,
-      g_quark_to_string(tf->long_name));
+      g_quark_to_string(tf->long_name),
+      block_num);
     tf->events_lost = header->events_lost;
   }
-  if (tf->subbuf_corrupt != header->subbuf_corrupt) {
-    g_warning("%d subbuffer(s) corrupted in tracefile %s",
+  if (header->subbuf_corrupt) {
+    g_warning("%d subbuffer(s) corrupted so far in tracefile %s at block %u",
       tf->subbuf_corrupt - header->subbuf_corrupt,
-      g_quark_to_string(tf->long_name));
+      g_quark_to_string(tf->long_name),
+      block_num);
     tf->subbuf_corrupt = header->subbuf_corrupt;
   }
 
This page took 0.026846 seconds and 4 git commands to generate.