Add config.h support : will fix the LARGEFILE problem
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 26 Jul 2005 22:17:47 +0000 (22:17 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 26 Jul 2005 22:17:47 +0000 (22:17 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@984 04897980-b3bd-0310-b5e0-8ef037075253

45 files changed:
ltt/branches/poly/doc/developer/ltt-experimental-rewrite.html
ltt/branches/poly/libltt/libltt.c
ltt/branches/poly/ltt/convert/convert.c
ltt/branches/poly/ltt/event.c
ltt/branches/poly/ltt/facility.c
ltt/branches/poly/ltt/parser.c
ltt/branches/poly/ltt/tracefile.c
ltt/branches/poly/ltt/type.c
ltt/branches/poly/lttctl/lttctl.c
ltt/branches/poly/lttd/lttd.c
ltt/branches/poly/lttv/lttv/attribute.c
ltt/branches/poly/lttv/lttv/batchtest.c
ltt/branches/poly/lttv/lttv/filter.c
ltt/branches/poly/lttv/lttv/hook.c
ltt/branches/poly/lttv/lttv/iattribute.c
ltt/branches/poly/lttv/lttv/main.c
ltt/branches/poly/lttv/lttv/module.c
ltt/branches/poly/lttv/lttv/option.c
ltt/branches/poly/lttv/lttv/state.c
ltt/branches/poly/lttv/lttv/stats.c
ltt/branches/poly/lttv/lttv/tracecontext.c
ltt/branches/poly/lttv/lttv/traceset.c
ltt/branches/poly/lttv/modules/examples/sampledep.c
ltt/branches/poly/lttv/modules/examples/samplemodule.c
ltt/branches/poly/lttv/modules/examples/samplemodule2.c
ltt/branches/poly/lttv/modules/gui/controlflow/cfv.c
ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c
ltt/branches/poly/lttv/modules/gui/controlflow/drawitem.c
ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c
ltt/branches/poly/lttv/modules/gui/controlflow/module.c
ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c
ltt/branches/poly/lttv/modules/gui/controlflow/test.c
ltt/branches/poly/lttv/modules/gui/detailedevents/events.c
ltt/branches/poly/lttv/modules/gui/filter/filter.c
ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/computetrace.c
ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/gtkdirsel.c
ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/gtkmultivpaned.c
ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c
ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindowtraces.c
ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/menu.c
ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/toolbar.c
ltt/branches/poly/lttv/modules/gui/statistics/statistics.c
ltt/branches/poly/lttv/modules/text/batchAnalysis.c
ltt/branches/poly/lttv/modules/text/textDump.c
ltt/branches/poly/lttv/modules/text/textFilter.c

index 463ab96cbb3209ca8e2992a35b77ee2ae7d05fcb..aa3f79c1f7fb3b8f75264c277bc82bec46f30179 100644 (file)
@@ -13,16 +13,26 @@ Use per cpu spinlock on trace list.<br>
 Finish the control module, libltt and lttctl : netlink interface<br>
 Finish integrating lttctl with lttd.<br>
 fix lttctl signal waiting : use a flag.<br>
-<br>
-<br>
-* TODO<br>
+Add ltt_write_commit_counter call to genevent.<br>
 Add information in the buffer header : buffer size, etc etc...<br>
        -> this information is so small that we can repeat it. Makes flight recorder
        easier to decode.<br>
-Add trace start structure to facility channel.<br>
+Add trace start structure to buffer start header.<br>
 fix genevent : take no lock if num traces active is 0.<br>
 <br>
 <br>
+* TODO<br>
+Add type information per facility : it will help having a standard way
+to understand information coming from both kernel space and user space, and deal
+easily with 64 bits kernel with 64 and 32 bits processes (and with size_t know
+at compile time which can differ inside the same process from one library to
+another).<br>
+fix structures alignment, array and sequences too. -> trace dynamic.<br>
+add per facility alignment (inside structures).<br>
+add control of alignment.<br>
+add user space tracing.<br>
+<br>
+<br>
 <br>
 * TODO (low priority)<br>
 Integrate header generation (genevent) in kernel build system.<br>
index 24d4484e765fbff7f92bab3f0103509340ea1998..5363f843f33eb3c75cb3df8fffac603b7f95a019 100644 (file)
  *     
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <libltt/libltt.h>
 #include <errno.h>
 #include <stdio.h>
index 7b4403ea5b0df11c5b2571116a646cb654605a9c..b9812cc5f2745815e14d9153b65edd04bfae73e7 100644 (file)
@@ -1,3 +1,7 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdio.h>
 #include <unistd.h>
 #include <fcntl.h>
index b7da64e5d7362a10bc04486f5f658329bddfce16..02ecf271de2ab614df1201bd569e24dbed514004 100644 (file)
  * MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
index 1aa6b432e6089e074b2ff4209cff7637c6f5dc49..84baac98421ce92a6c4a5907015e908b90bba2b7 100644 (file)
  * MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdlib.h> 
 #include <string.h>
 #include <stdio.h>
index 5c90c983631f60215933ce681cce90ea397ab044..8e409aa927736ac2f9334a58d14e55e23f928626 100644 (file)
@@ -34,6 +34,10 @@ This program is distributed in the hope that it will be useful,
    all types is maintained to facilitate the freeing of all type 
    information when the processing of an ".xml" file is finished. */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdlib.h> 
 #include <string.h>
 #include <stdio.h>
index 0a649b5e6e3ff312fde89ec4b6255e0a3bcc8a83..a111e41fd3a706c323636ed24e366f833f2c6fb1 100644 (file)
  * MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdio.h>
 #include <fcntl.h>
 #include <string.h>
index 34eeb4e01ac356eb78acf891e927a9d57bee1487..7f134eda1908101cfdb15a3f3049481a0783fa7d 100644 (file)
  * MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdio.h>
 #include <glib.h>
 
index e4e2908e8df5ce12642742fbe974be5f225edafb..d392e8fa74eb31c7da57584f722763f93d6c2705 100644 (file)
@@ -8,6 +8,10 @@
  *     Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <libltt/libltt.h>
 #include <errno.h>
 #include <stdio.h>
index 63d483b6e67b9f7946818b4f0af98272761f323d..fda5de5174a32082fb29878a92bf8e4ae5a65b9b 100644 (file)
  *     Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
  */
 
-#define _GNU_SOURCE
+#ifdef HAVE_CONFIG_H
 #include <config.h>
+#endif
+
+#define _GNU_SOURCE
 #include <stdio.h>
 #include <unistd.h>
 #include <errno.h>
index 57f4330fc804374a778c0c55dbbfc92097e3a7f7..b4402b25921f5073d4a74d6027eeea85dc45242e 100644 (file)
  * MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <string.h>
 #include <lttv/attribute.h>
 #include <ltt/ltt.h>
index ab50262c708de894bb146ee0551d6bd2aada09d1..3a4a256583fbb7f30c226ef90ceb98990e697282 100644 (file)
 /* This module inserts a hook in the program main loop. This hook processes 
    all the events in the main tracefile while testing the speed and
    functionality of the state and stats computations. */
-#include <string.h>
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <string.h>
 #include <lttv/lttv.h>
 #include <lttv/attribute.h>
 #include <lttv/hook.h>
index daa00769234964c14c9226f8764d1b46af5d75fd..f0eca9cb991323bccfd7add62433ff207beec80f 100644 (file)
  *  - remove the idle expressions in the tree 
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 //#define TEST
 #ifdef TEST
 #include <time.h>
index 926e5fd0b8d670929132170f758dfbaccb7dd144..04d1a7486d16821aa8389be9731826a07b63afcf 100644 (file)
@@ -16,6 +16,9 @@
  * MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 
 #include <lttv/hook.h>
 #include <ltt/compiler.h>
index ef357dd5b050e87fc95e59e809232c98b3ce26d9..a447192e9c20b4fa2d8d1dcb6ad2dac728034c1c 100644 (file)
@@ -16,6 +16,9 @@
  * MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 
 #include <lttv/iattribute.h>
 
index 16c0126f621ee4f2e7212c1eeff40fb929f756b6..2c4a9f0aca676c45ba59451503d82a66e628160b 100644 (file)
@@ -16,6 +16,9 @@
  * MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 
 #include <lttv/hook.h>
 #include <lttv/module.h>
index e2d4d2caafa3d1d6a5767e7f620a1dbeb28d1bb6..bc4f3de0c941ad923c040345795d8818c6bc1616 100644 (file)
 
 /* module.c : Implementation of the module loading/unloading mechanism. */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <lttv/module.h>
 #include <gmodule.h>
 
index f4b34275af4f9097bc74c9a0d7fd09fb6c80dc44..f0d44254577565d404e1720acb88a30d7b7b6479 100644 (file)
@@ -16,6 +16,9 @@
  * MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 
 #include <popt.h>
 #include <glib.h>
index dc5c9806bfcadd63270d47828e2c7c8606b97f30..148b17bb5035310707c19c86fc2db34d6c1af3dd 100644 (file)
@@ -16,6 +16,9 @@
  * MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 
 #include <lttv/lttv.h>
 #include <lttv/module.h>
index c2fca6840c3757792621916a3e8cc99f190838a1..4f476d93d9d1ee74c33467a4ed55fb1f78b4b71e 100644 (file)
@@ -16,6 +16,9 @@
  * MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 
 #include <stdio.h>
 #include <lttv/module.h>
index af39ffdcb57c6c2f51152c3ae618404e3444ed21..6179f95ecd4b5516afc395341e5bbc50b55ab2fc 100644 (file)
  * MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <string.h>
 #include <lttv/tracecontext.h>
 #include <ltt/event.h>
index bfd7510715c8c3b616c31506f04911b27342f957..181bdd53430de5739316262bc618ebc1e29a2d40 100644 (file)
@@ -16,6 +16,9 @@
  * MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 
 #include <lttv/traceset.h>
 #include <lttv/iattribute.h>
index 305e0460503f68597e368c9fc823ade9ee3f7d9f..9f0ca614d818eb6dfd1df01cb1369e160a9fc5ad 100644 (file)
@@ -2,6 +2,10 @@
 
 /* Created by Mathieu Desnoyers, may 2003 */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <glib.h>
 
 /* Include module.h from lttv headers for module loading */
index 3156c9f27397fb5a5b72c8f3092a4ff51fff952f..6e676d5ce10991e5e1259b19661a60ef316822e2 100644 (file)
@@ -2,6 +2,10 @@
 
 /* Created by Mathieu Desnoyers, may 2003 */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <glib.h>
 #include <lttv/module.h>
 
index 6ce8edd6ecb7e9b596a3b780d9251effd93e9958..19a094d1349f7adb2de1de31c230849cdb41b182 100644 (file)
@@ -2,6 +2,10 @@
 
 /* Created by Mathieu Desnoyers, may 2003 */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <glib.h>
 #include <lttv/module.h>
 
index 0917305aa4235ac51106bd5a9bc2a8421abea12c..601696875ae203d7aa8a3dda493f177fb18ed0b3 100644 (file)
  * MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <glib.h>
 #include <gtk/gtk.h>
 #include <gdk/gdk.h>
index a67acc5a09edf2b26036740b8fe88cef00a62729..b4411bc422b1eb15bcfe14a5ef264bf3e01f3532 100644 (file)
  * MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <gtk/gtk.h>
 #include <gdk/gdk.h>
 #include <string.h>
index 60cf7706dfb05c2d2c06546c293f16f9a406688c..7e1980e24589f791a2a2c78a3c65d50849cb914f 100644 (file)
  * Author : Mathieu Desnoyers, October 2003
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <glib.h>
 #include <gtk/gtk.h>
 #include <gdk/gdk.h>
index b34e462b73aec74c697d49fb3349186ae5c9d9bf..7c4779209243f3fb41b72d65e296e161d5f04a36 100644 (file)
@@ -45,6 +45,9 @@
  * line/background.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 
 //#define PANGO_ENABLE_BACKEND
 #include <gtk/gtk.h>
index dd99d1302348a0237ef803ac4cb5d1fd361885e1..c0b3f498bf3d377aa62776462524e509bbd0dc96 100644 (file)
  * Author : Mathieu Desnoyers, June 2003
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <glib.h>
 #include <lttv/lttv.h>
 #include <lttv/module.h>
index 2e0273886f216b7dc666db4461a6b3a59a1a304e..4ecef3d2cb452dbca8e44f35efe53287144ab2a4 100644 (file)
  * MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <gtk/gtk.h>
 #include <glib.h>
 #include <string.h>
index 9e0e2aaba4f65f606d8dddb607b096b716d61945..8a71a52e2658457bbf46fd9a4246999eb94f2eb7 100644 (file)
@@ -16,6 +16,9 @@
  * MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 
 static void destroy_cb( GtkWidget *widget,
                                        gpointer   data )
index 659c55335e3d4aa3270f35957a39bda7a36e65ea..129a3e538d33e93def14bcc979925a1b66852f3c 100644 (file)
  *           Inspired from original LTT, made by Karim Yaghmour
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <math.h>
 
 #include <glib.h>
index 351944bbbe13bbdf94aa57eff4ce47a1fe448373..893929b4ccb0be337cde5a0a1f63cdbad6b3f222 100644 (file)
  * MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <glib.h>
 #include <string.h>
 #include <gtk/gtk.h>
index 1874e21955ddb8999b699fd5467776f6f9570d96..29f524483b462a9da6d6f905350909043d7864f2 100644 (file)
@@ -16,6 +16,9 @@
  * MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 
 /* This file does not even compile yet. It is a starting point to compute
    some values in the background. This is why process_trace was split in
index 9e6c1ccd780a82d631d3a55a73185bac9d256315..801f59731ed2bf2c5d87edeec6b138f0d7d2bae9 100644 (file)
@@ -21,7 +21,9 @@
  * MA 02111-1307, USA.
  */
 
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 
 #include <stdio.h>
 #include <sys/types.h>
index 5856a7bf74ac9e4679798ba28a806c0e0a582c2e..ec8b37552f39619188359154410efe5a2fe4adef 100644 (file)
  * MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <gtk/gtk.h>
 
 #include <lttvwindow/gtkmultivpaned.h>
index befe16694a596bb54d88b1f9f42e910fdba2c620..2cc2bf2c85a3ba7fd8ca0c8a707ef99178bf488a 100644 (file)
  * 
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <ltt/ltt.h>
 #include <lttv/lttv.h>
 #include <lttv/state.h>
index 7e8a2a8eff3d31a0c7e126af01bcac76dc479b19..31b57646d8e5db16c32d1544e86ab8dabedad15d 100644 (file)
 
 /* Here is the implementation of the API */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
index d201ac0ec46c323748b36756a76d7d8096709288..5235acaaa61acdde2a1de3d3228ab8a2451ab7f0 100644 (file)
  * MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <lttv/lttv.h>
 #include <lttvwindow/menu.h>
 
index 72f4a1573bf87e4bc985d3126f51d5b941aee920..a01986d9e26a3c2cf5e44aa318b6883e9d1b270e 100644 (file)
  * MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <lttv/lttv.h>
 #include <lttvwindow/toolbar.h>
 
index f32538d5c3209efecd2e4efc1379d9d90cd902a2..075997f9585f32b9fce8bad64145b61df418c280 100644 (file)
  * MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <glib.h>
 #include <string.h>
 #include <gtk/gtk.h>
index 60d1cc530ebb2a06475258eefee94b461949b2f6..785ff1a86c27b45a8b2819c22c5f58bd1da98d19 100644 (file)
@@ -19,6 +19,9 @@
 /* This module inserts a hook in the program main loop. This hook processes 
    all the events in the main tracefile. */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 
 #include <lttv/lttv.h>
 #include <lttv/attribute.h>
index 11afbed4ccf2aecc711f819aa9e2c029d0c6fb46..b6de60fe8ad278427ec0853600edf1fc037db5a4 100644 (file)
    before each trace, to print each event, and to print statistics
    after each trace. */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <lttv/lttv.h>
 #include <lttv/option.h>
 #include <lttv/module.h>
index 20b769cfa935dee3ed97ecb2003301b5bffc5842..88a5942b0696defd94e9483471a50e6bccad8aa8 100644 (file)
  *  file containing filtering expressions.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <lttv/lttv.h>
 #include <lttv/option.h>
 #include <lttv/module.h>
This page took 0.040899 seconds and 4 git commands to generate.