]> AND Public Git Repository - simgrid.git/blobdiff - src/mc/remote/RemoteSimulation.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Improv comment
[simgrid.git] / src / mc / remote / RemoteSimulation.cpp
index 9bfe36aa566416311cae63defac6a4de6c81350e..2d6d919bcd1f3738ab526401ff10bc029efd1485 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2014-2020. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2014-2021. 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. */
@@ -7,7 +7,6 @@
 
 #include "src/mc/remote/RemoteSimulation.hpp"
 
-#include "src/mc/mc_smx.hpp"
 #include "src/mc/sosp/Snapshot.hpp"
 #include "xbt/file.hpp"
 #include "xbt/log.h"
@@ -17,6 +16,8 @@
 #include <sys/mman.h> // PROT_*
 
 #include <algorithm>
+#include <cerrno>
+#include <cstring>
 #include <memory>
 #include <string>
 
@@ -43,6 +44,7 @@ static const std::vector<std::string> filtered_libraries = {
 #endif
     "libargp", /* workarounds for glibc-less systems */
     "libasan", /* gcc sanitizers */
+    "libasn1",
     "libboost_chrono",
     "libboost_context",
     "libboost_context-mt",
@@ -79,7 +81,12 @@ static const std::vector<std::string> filtered_libraries = {
     "libgcrypt",
     "libgfortran",
     "libgpg-error",
+    "libgssapi",
     "libgssapi_krb5",
+    "libhcrypto",
+    "libheimbase",
+    "libheimntlm",
+    "libhx509",
     "libhogweed",
     "libidn2",
     "libimf",
@@ -109,10 +116,12 @@ static const std::vector<std::string> filtered_libraries = {
     "libpthread",
     "libquadmath",
     "libresolv",
+    "libroken",
     "librt",
     "librtmp",
     "libsasl2",
     "libselinux",
+    "libsqlite3",
     "libssh",
     "libssh2",
     "libssl",
@@ -126,6 +135,7 @@ static const std::vector<std::string> filtered_libraries = {
     "libunwind-ptrace",
     "libunwind-x86",
     "libunwind-x86_64",
+    "libwind",
     "libz",
     "libzstd"};
 
@@ -169,7 +179,7 @@ static ssize_t pread_whole(int fd, void* buf, size_t count, off_t offset)
     } else if (res == 0)
       return -1;
     else if (errno != EINTR) {
-      perror("pread_whole");
+      XBT_ERROR("pread_whole: %s", strerror(errno));
       return -1;
     }
   }
@@ -188,8 +198,10 @@ static ssize_t pwrite_whole(int fd, const void* buf, size_t count, off_t offset)
       offset += res;
     } else if (res == 0)
       return -1;
-    else if (errno != EINTR)
+    else if (errno != EINTR) {
+      XBT_ERROR("pwrite_whole: %s", strerror(errno));
       return -1;
+    }
   }
   return real_count;
 }