Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Ahem. You mean I need to actually compile with MC after moving files?
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Mon, 20 May 2019 15:23:00 +0000 (17:23 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Mon, 20 May 2019 15:23:00 +0000 (17:23 +0200)
15 files changed:
include/xbt/range.hpp
src/mc/compare.cpp
src/mc/inspect/DwarfExpression.cpp
src/mc/inspect/Frame.cpp
src/mc/inspect/LocationList.cpp
src/mc/inspect/ObjectInformation.cpp
src/mc/inspect/mc_dwarf.cpp
src/mc/inspect/mc_dwarf_attrnames.cpp
src/mc/inspect/mc_dwarf_tagnames.cpp
src/mc/inspect/mc_member.cpp
src/mc/inspect/mc_unw.cpp
src/mc/inspect/mc_unw_vmread.cpp
src/mc/sosp/mc_checkpoint.cpp
teshsuite/mc/dwarf-expression/dwarf-expression.cpp
teshsuite/mc/dwarf/dwarf.cpp

index fde48b9..872efe1 100644 (file)
@@ -7,6 +7,8 @@
 #ifndef SIMGRID_XBT_RANGE_HPP
 #define SIMGRID_XBT_RANGE_HPP
 
 #ifndef SIMGRID_XBT_RANGE_HPP
 #define SIMGRID_XBT_RANGE_HPP
 
+#include <algorithm>
+
 namespace simgrid {
 namespace xbt {
 
 namespace simgrid {
 namespace xbt {
 
index 8d86c1a..845020a 100644 (file)
@@ -5,37 +5,7 @@
 
 /** \file compare.cpp Memory snapshooting and comparison                    */
 
 
 /** \file compare.cpp Memory snapshooting and comparison                    */
 
-#include <cinttypes>
-
-#include <array>
-#include <memory>
-#include <set>
-#include <utility>
-#include <unordered_set>
-
-#include "xbt/dynar.h"
-#include "xbt/sysdep.h"
-#include <xbt/mmalloc.h>
-
-#include <mc/mc.h>
-#include <mc/datatypes.h>
-
-#include "src/internal_config.h"
-
-#include "src/xbt/mmalloc/mmprivate.h"
-
-#if HAVE_SMPI
-#include "src/smpi/include/private.hpp"
-#endif
-
-#include "src/mc/Frame.hpp"
-#include "src/mc/ObjectInformation.hpp"
-#include "src/mc/Type.hpp"
-#include "src/mc/Variable.hpp"
 #include "src/mc/mc_config.hpp"
 #include "src/mc/mc_config.hpp"
-#include "src/mc/mc_dwarf.hpp"
-#include "src/mc/mc_forward.hpp"
-#include "src/mc/mc_private.hpp"
 #include "src/mc/mc_smx.hpp"
 #include "src/mc/sosp/mc_snapshot.hpp"
 
 #include "src/mc/mc_smx.hpp"
 #include "src/mc/sosp/mc_snapshot.hpp"
 
@@ -1577,17 +1547,17 @@ int snapshot_compare(Snapshot* s1, Snapshot* s2)
     xbt_assert(region1->object_info() == region2->object_info());
     xbt_assert(region1->object_info());
 
     xbt_assert(region1->object_info() == region2->object_info());
     xbt_assert(region1->object_info());
 
-    std::string const& name = region1->object_info()->file_name;
-
     /* Compare global variables */
     if (compare_global_variables(*state_comparator, region1->object_info(), simgrid::mc::ProcessIndexDisabled, region1,
                                  region2, s1, s2)) {
 
 #ifdef MC_DEBUG
     /* Compare global variables */
     if (compare_global_variables(*state_comparator, region1->object_info(), simgrid::mc::ProcessIndexDisabled, region1,
                                  region2, s1, s2)) {
 
 #ifdef MC_DEBUG
+      std::string const& name = region1->object_info()->file_name;
       XBT_DEBUG("(%d - %d) Different global variables in %s", s1->num_state, s2->num_state, name.c_str());
       errors++;
 #else
 #ifdef MC_VERBOSE
       XBT_DEBUG("(%d - %d) Different global variables in %s", s1->num_state, s2->num_state, name.c_str());
       errors++;
 #else
 #ifdef MC_VERBOSE
+      std::string const& name = region1->object_info()->file_name;
       XBT_VERB("(%d - %d) Different global variables in %s", s1->num_state_, s2->num_state_, name.c_str());
 #endif
 
       XBT_VERB("(%d - %d) Different global variables in %s", s1->num_state_, s2->num_state_, name.c_str());
 #endif
 
index 42f590e..89bca95 100644 (file)
@@ -7,11 +7,11 @@
 #include <cstdint>
 
 #include "src/mc/AddressSpace.hpp"
 #include <cstdint>
 
 #include "src/mc/AddressSpace.hpp"
-#include "src/mc/DwarfExpression.hpp"
-#include "src/mc/Frame.hpp"
-#include "src/mc/LocationList.hpp"
-#include "src/mc/ObjectInformation.hpp"
-#include "src/mc/mc_dwarf.hpp"
+#include "src/mc/inspect/DwarfExpression.hpp"
+#include "src/mc/inspect/Frame.hpp"
+#include "src/mc/inspect/LocationList.hpp"
+#include "src/mc/inspect/ObjectInformation.hpp"
+#include "src/mc/inspect/mc_dwarf.hpp"
 #include "src/mc/mc_private.hpp"
 
 using simgrid::mc::remote;
 #include "src/mc/mc_private.hpp"
 
 using simgrid::mc::remote;
index 2d8620f..dca624d 100644 (file)
@@ -8,7 +8,7 @@
 
 #include "xbt/sysdep.h"
 
 
 #include "xbt/sysdep.h"
 
-#include "src/mc/Frame.hpp"
+#include "src/mc/inspect/Frame.hpp"
 
 namespace simgrid {
 namespace mc {
 
 namespace simgrid {
 namespace mc {
index 500b851..ce19438 100644 (file)
@@ -3,18 +3,17 @@
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
-#include <cstddef>
-#include <cstdint>
-#include <utility>
+#include "src/mc/inspect/LocationList.hpp"
+#include "src/mc/inspect/ObjectInformation.hpp"
+#include "src/mc/inspect/mc_dwarf.hpp"
 
 #include "xbt/asserts.h"
 #include "xbt/sysdep.h"
 
 
 #include "xbt/asserts.h"
 #include "xbt/sysdep.h"
 
+#include <cstddef>
+#include <cstdint>
 #include <libunwind.h>
 #include <libunwind.h>
-
-#include "src/mc/LocationList.hpp"
-#include "src/mc/ObjectInformation.hpp"
-#include "src/mc/mc_dwarf.hpp"
+#include <utility>
 
 namespace simgrid {
 namespace dwarf {
 
 namespace simgrid {
 namespace dwarf {
index e0f96bf..7d3229c 100644 (file)
@@ -8,9 +8,9 @@
 
 #include <vector>
 
 
 #include <vector>
 
-#include "src/mc/Frame.hpp"
-#include "src/mc/ObjectInformation.hpp"
-#include "src/mc/Variable.hpp"
+#include "src/mc/inspect/Frame.hpp"
+#include "src/mc/inspect/ObjectInformation.hpp"
+#include "src/mc/inspect/Variable.hpp"
 
 namespace simgrid {
 namespace mc {
 
 namespace simgrid {
 namespace mc {
index 81f61f1..9fbe725 100644 (file)
@@ -3,33 +3,31 @@
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
+#include "src/simgrid/util.hpp"
+#include "xbt/log.h"
+#include "xbt/string.hpp"
+#include "xbt/sysdep.h"
+#include <simgrid/config.h>
+
+#include "src/mc/inspect/ObjectInformation.hpp"
+#include "src/mc/inspect/Variable.hpp"
+#include "src/mc/inspect/mc_dwarf.hpp"
+#include "src/mc/mc_private.hpp"
+#include "src/mc/remote/RemoteClient.hpp"
+
 #include <cinttypes>
 #include <cstdint>
 #include <cinttypes>
 #include <cstdint>
-
+#include <cstdlib>
+#include <fcntl.h>
 #include <memory>
 #include <utility>
 
 #include <boost/range/algorithm.hpp>
 
 #include <memory>
 #include <utility>
 
 #include <boost/range/algorithm.hpp>
 
-#include <cstdlib>
 #include <elfutils/libdw.h>
 #include <elfutils/libdw.h>
-#include <fcntl.h>
 
 #include <boost/algorithm/string/predicate.hpp>
 
 
 #include <boost/algorithm/string/predicate.hpp>
 
-#include "src/simgrid/util.hpp"
-#include "xbt/log.h"
-#include "xbt/string.hpp"
-#include "xbt/sysdep.h"
-#include <simgrid/config.h>
-
-#include "src/mc/mc_dwarf.hpp"
-#include "src/mc/mc_private.hpp"
-
-#include "src/mc/ObjectInformation.hpp"
-#include "src/mc/Variable.hpp"
-#include "src/mc/remote/RemoteClient.hpp"
-
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_dwarf, mc, "DWARF processing");
 
 /** @brief The default DW_TAG_lower_bound for a given DW_AT_language.
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_dwarf, mc, "DWARF processing");
 
 /** @brief The default DW_TAG_lower_bound for a given DW_AT_language.
index 018d9c2..cbbc5b2 100644 (file)
@@ -1,16 +1,13 @@
-/* Copyright (c) 2014-2019. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2014-2019. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
-/* Warning: autogenerated, do not edit! */
+#include "src/mc/inspect/mc_dwarf.hpp"
 
 #include <string>
 #include <unordered_map>
 
 
 #include <string>
 #include <unordered_map>
 
-#include "src/mc/mc_dwarf.hpp"
-
 namespace {
 const std::unordered_map<int, const char*> attrname_map = {
     {0x01, "DW_AT_sibling"},
 namespace {
 const std::unordered_map<int, const char*> attrname_map = {
     {0x01, "DW_AT_sibling"},
index 4db55c3..3cf69dd 100644 (file)
@@ -1,16 +1,15 @@
-/* Copyright (c) 2014-2019. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2014-2019. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 /* Warning: autogenerated, do not edit! */
 
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 /* Warning: autogenerated, do not edit! */
 
+#include "src/mc/inspect/mc_dwarf.hpp"
+
 #include <string>
 #include <unordered_map>
 
 #include <string>
 #include <unordered_map>
 
-#include "src/mc/mc_dwarf.hpp"
-
 namespace {
 const std::unordered_map<int, const char*> tagname_map = {
     {0x00, "DW_TAG_invalid"},
 namespace {
 const std::unordered_map<int, const char*> tagname_map = {
     {0x00, "DW_TAG_invalid"},
index 6349362..5b01e58 100644 (file)
@@ -1,11 +1,10 @@
-/* Copyright (c) 2014-2019. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2014-2019. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
-#include "src/mc/Type.hpp"
-#include "src/mc/mc_dwarf.hpp"
+#include "src/mc/inspect/Type.hpp"
+#include "src/mc/inspect/mc_dwarf.hpp"
 #include "src/mc/mc_private.hpp"
 
 namespace simgrid {
 #include "src/mc/mc_private.hpp"
 
 namespace simgrid {
index da75539..c942b04 100644 (file)
@@ -1,5 +1,4 @@
-/* Copyright (c) 2015-2019. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2015-2019. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 // We need this for the register indices:
 // #define _GNU_SOURCE
 
 // We need this for the register indices:
 // #define _GNU_SOURCE
 
+#include "src/mc/inspect/mc_unw.hpp"
+#include "src/mc/inspect/Frame.hpp"
+#include "src/mc/remote/RemoteClient.hpp"
+
 #include <cstring>
 
 // On x86_64, libunwind unw_context_t has the same layout as ucontext_t:
 #include <cstring>
 
 // On x86_64, libunwind unw_context_t has the same layout as ucontext_t:
@@ -22,10 +25,6 @@ typedef register_t greg_t;
 
 #include <libunwind.h>
 
 
 #include <libunwind.h>
 
-#include "src/mc/Frame.hpp"
-#include "src/mc/mc_unw.hpp"
-#include "src/mc/remote/RemoteClient.hpp"
-
 using simgrid::mc::remote;
 
 namespace simgrid {
 using simgrid::mc::remote;
 
 namespace simgrid {
index 9075f7b..1b52e68 100644 (file)
@@ -1,9 +1,11 @@
-/* Copyright (c) 2015-2019. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2015-2019. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
+#include "src/mc/inspect/mc_unw.hpp"
+#include "src/mc/remote/RemoteClient.hpp"
+
 #include <sys/types.h>
 #include <sys/uio.h>
 
 #include <sys/types.h>
 #include <sys/uio.h>
 
 #include <libunwind-ptrace.h>
 #include <libunwind.h>
 
 #include <libunwind-ptrace.h>
 #include <libunwind.h>
 
-#include "src/mc/mc_unw.hpp"
-#include "src/mc/remote/RemoteClient.hpp"
-
 /** \file
  *  Libunwind namespace implementation using process_vm_readv.
 /** \file
  *  Libunwind namespace implementation using process_vm_readv.
- *.
- *  This implem
  */
 
 /** Partial structure of libunwind-ptrace context in order to get the PID
  */
 
 /** Partial structure of libunwind-ptrace context in order to get the PID
index 51495c8..200ee93 100644 (file)
 #include "src/mc/mc_hash.hpp"
 #include "src/mc/mc_mmu.hpp"
 #include "src/mc/mc_smx.hpp"
 #include "src/mc/mc_hash.hpp"
 #include "src/mc/mc_mmu.hpp"
 #include "src/mc/mc_smx.hpp"
-#include "src/mc/mc_unw.hpp"
 #include "src/mc/remote/mc_protocol.h"
 #include "src/mc/sosp/mc_snapshot.hpp"
 
 #include "src/mc/remote/mc_protocol.h"
 #include "src/mc/sosp/mc_snapshot.hpp"
 
-#include "src/mc/Frame.hpp"
-#include "src/mc/ObjectInformation.hpp"
-#include "src/mc/Variable.hpp"
 #include "src/mc/sosp/RegionSnapshot.hpp"
 
 using simgrid::mc::remote;
 #include "src/mc/sosp/RegionSnapshot.hpp"
 
 using simgrid::mc::remote;
index 8a63108..e38b70a 100644 (file)
@@ -1,5 +1,4 @@
-/* Copyright (c) 2014-2019. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2014-2019. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -8,18 +7,18 @@
 #undef NDEBUG
 #endif
 
 #undef NDEBUG
 #endif
 
+#include "src/mc/mc_private.hpp"
+
+#include "src/mc/inspect/ObjectInformation.hpp"
+#include "src/mc/inspect/Type.hpp"
+#include "src/mc/inspect/Variable.hpp"
+#include "src/mc/remote/RemoteClient.hpp"
+
 #include <cassert>
 #include <cstdlib>
 #include <cstring>
 #include <random>
 
 #include <cassert>
 #include <cstdlib>
 #include <cstring>
 #include <random>
 
-#include "src/mc/mc_private.hpp"
-
-#include "src/mc/ObjectInformation.hpp"
-#include "src/mc/Type.hpp"
-#include "src/mc/Variable.hpp"
-#include "src/mc/remote/RemoteClient.hpp"
-
 static std::default_random_engine rnd_engine;
 
 static simgrid::mc::RemoteClient* process;
 static std::default_random_engine rnd_engine;
 
 static simgrid::mc::RemoteClient* process;
index cd3cc80..da8102f 100644 (file)
@@ -1,5 +1,4 @@
-/* Copyright (c) 2014-2019. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2014-2019. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -8,19 +7,19 @@
 #undef NDEBUG
 #endif
 
 #undef NDEBUG
 #endif
 
-#include <cassert>
-#include <cstring>
-
 #include <mc/mc.h>
 
 #include "mc/datatypes.h"
 #include "src/mc/mc_private.hpp"
 
 #include <mc/mc.h>
 
 #include "mc/datatypes.h"
 #include "src/mc/mc_private.hpp"
 
-#include "src/mc/ObjectInformation.hpp"
-#include "src/mc/Type.hpp"
-#include "src/mc/Variable.hpp"
+#include "src/mc/inspect/ObjectInformation.hpp"
+#include "src/mc/inspect/Type.hpp"
+#include "src/mc/inspect/Variable.hpp"
 #include "src/mc/remote/RemoteClient.hpp"
 
 #include "src/mc/remote/RemoteClient.hpp"
 
+#include <cassert>
+#include <cstring>
+
 // Test broken with multi-dimensional arrays. See https://sourceware.org/bugzilla/show_bug.cgi?id=22546
 // int test_some_array[4][5][6];
 int test_some_array[4 * 5 * 6];
 // Test broken with multi-dimensional arrays. See https://sourceware.org/bugzilla/show_bug.cgi?id=22546
 // int test_some_array[4][5][6];
 int test_some_array[4 * 5 * 6];