Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Use optimized local implementation of libuwind (UNW_LOCAL_ONLY)
authorGabriel Corona <gabriel.corona@loria.fr>
Mon, 10 Feb 2014 10:11:09 +0000 (11:11 +0100)
committerGabriel Corona <gabriel.corona@loria.fr>
Mon, 10 Feb 2014 10:11:09 +0000 (11:11 +0100)
src/include/mc/datatypes.h
src/mc/mc_checkpoint.c
src/xbt/backtrace_linux.c

index d9095c0..ddcb573 100644 (file)
@@ -6,6 +6,9 @@
 
 #ifndef MC_DATATYPE_H
 #define MC_DATATYPE_H
 
 #ifndef MC_DATATYPE_H
 #define MC_DATATYPE_H
+
+#define UNW_LOCAL_ONLY
+
 #include "xbt/misc.h"
 #include "xbt/swag.h"
 #include "xbt/fifo.h"
 #include "xbt/misc.h"
 #include "xbt/swag.h"
 #include "xbt/fifo.h"
index 035e6b5..968f5ad 100644 (file)
@@ -5,6 +5,8 @@
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #define _GNU_SOURCE
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #define _GNU_SOURCE
+#define UNW_LOCAL_ONLY
+
 #include <string.h>
 #include <link.h>
 #include "mc_private.h"
 #include <string.h>
 #include <link.h>
 #include "mc_private.h"
index da9ced5..b7cb1de 100644 (file)
@@ -13,6 +13,7 @@
 #include "xbt/module.h"         /* xbt_binary_name */
 #include "xbt_modinter.h"       /* backtrace initialization headers */
 #ifdef HAVE_MC
 #include "xbt/module.h"         /* xbt_binary_name */
 #include "xbt_modinter.h"       /* backtrace initialization headers */
 #ifdef HAVE_MC
+#define UNW_LOCAL_ONLY
 #include <libunwind.h>
 #endif
 /* end of "useless" inclusions */
 #include <libunwind.h>
 #endif
 /* end of "useless" inclusions */