add missing config.h include
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 11 Oct 2007 17:04:23 +0000 (17:04 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 11 Oct 2007 17:04:23 +0000 (17:04 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@2655 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/ltt/event.c
ltt/branches/poly/ltt/event.h
ltt/branches/poly/ltt/marker.c
ltt/branches/poly/ltt/tracefile.c

index 8d1733409d7e6c15396a6e9489bfad5f9024cbc5..f29a2914cae7dba232436346599e0c88d132e210 100644 (file)
@@ -1,3 +1,28 @@
+/* This file is part of the Linux Trace Toolkit viewer
+ * Copyright (C) 2007 Mathieu Desnoyers
+ *
+ * Complete rewrite from the original version made by XangXiu Yang.
+ * 
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License Version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <glib.h>
 
 #include <ltt/event.h>
 #include <ltt/ltt-types.h>
@@ -126,6 +151,9 @@ LttTracefile *ltt_event_position_tracefile(LttEventPosition *ep)
 guint32 ltt_event_get_unsigned(LttEvent *e, struct marker_field *f)
 {
   gboolean reverse_byte_order;
+
+  g_warning("ltt size: %d", sizeof(LttTracefile));
+
   if(unlikely(f->attributes & LTT_ATTRIBUTE_NETWORK_BYTE_ORDER)) {
     reverse_byte_order = (g_ntohs(0x1) != 0x1);
   } else {
index bc9452cffbe9c2f4b0ba9b11a1986f41203be20a..697b400ea4c5a08e1e7a8d2761010bb34870b3fa 100644 (file)
@@ -1,12 +1,12 @@
 #ifndef _LTT_EVENT_H
 #define _LTT_EVENT_H
 
-#include <ltt/time.h>
 #include <glib.h>
 #include <stdint.h>
 #include <sys/types.h>
-#include <ltt/ltt.h>
 #include <endian.h>
+#include <ltt/ltt.h>
+#include <ltt/time.h>
 #include <ltt/marker.h>
 
 /*
@@ -109,6 +109,4 @@ static inline LttCycleCount ltt_event_cycle_count(const LttEvent *e)
   return e->tsc;
 }
 
-
-
 #endif //_LTT_EVENT_H
index 3e2ab3d68cd4c98cbbac008dd31bf662085dc4e6..0ff55f45ef925a115a31d4772c42cda630d1ce40 100644 (file)
@@ -1,10 +1,27 @@
-/*
- * Marker support code.
+/* This file is part of the Linux Trace Toolkit viewer
+ * Copyright (C) 2007 Mathieu Desnoyers
+ *
+ * Complete rewrite from the original version made by XangXiu Yang.
+ * 
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License Version 2.1 as published by the Free Software Foundation.
  *
- * Mathieu Desnoyers, August 2007
- * License: LGPL.
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <glib.h>
 #include <stdio.h>
 #include <string.h>
index 56b103b9c142cf1f4faa36d67f3ed861581f0c45..b026d4e2a35dbdb9f90fd1f56517d47c458e1d1d 100644 (file)
@@ -246,6 +246,8 @@ int parse_trace_header(void *header, LttTracefile *tf, LttTrace *t)
    // t->compact_facilities = NULL;
   }
  
+  printf("init size : %d\n", sizeof(LttTracefile));
+
 
   switch(any->major_version) {
 
This page took 0.0257 seconds and 4 git commands to generate.