include src/mc/mc_request.hpp
include src/mc/mc_safety.hpp
include src/mc/mc_smx.cpp
-include src/mc/mc_smx.hpp
include src/mc/mc_state.cpp
include src/mc/mc_state.hpp
include src/mc/remote/AppSide.cpp
#include "src/mc/mc_exit.hpp"
#include "src/mc/mc_pattern.hpp"
#include "src/mc/mc_private.hpp"
-#include "src/mc/mc_smx.hpp"
-
#include "src/mc/remote/RemoteSimulation.hpp"
+
#include <xbt/asserts.h>
#include <xbt/log.h>
#include "simgrid/s4u/Host.hpp"
unsigned long Api::get_maxpid() const
{
- return MC_smx_get_maxpid();
+ unsigned long maxpid;
+ const char* name = "simgrid::kernel::actor::maxpid";
+ if (mc_model_checker->get_remote_simulation().find_variable(name) == nullptr)
+ name = "maxpid"; // We seem to miss the namespaces when compiling with GCC
+ mc_model_checker->get_remote_simulation().read_variable(name, &maxpid, sizeof(maxpid));
+ return maxpid;
}
int Api::get_actors_size() const
#include "src/mc/mc_exit.hpp"
#include "src/mc/mc_private.hpp"
#include "src/mc/mc_request.hpp"
-#include "src/mc/mc_smx.hpp"
-
-#if HAVE_SMPI
-#include "smpi_request.hpp"
-#endif
#include <cstdint>
#include "src/mc/mc_exit.hpp"
#include "src/mc/mc_private.hpp"
#include "src/mc/mc_request.hpp"
-#include "src/mc/mc_smx.hpp"
#include <boost/range/algorithm.hpp>
#include <cstring>
#include "src/mc/mc_private.hpp"
#include "src/mc/mc_record.hpp"
#include "src/mc/mc_request.hpp"
-#include "src/mc/mc_smx.hpp"
#include "src/xbt/mmalloc/mmprivate.h"
#include "src/mc/mc_config.hpp"
#include "src/mc/mc_private.hpp"
-#include "src/mc/mc_smx.hpp"
#include "src/mc/sosp/Snapshot.hpp"
#include <algorithm>
#include "src/mc/mc_private.hpp"
#include "src/mc/mc_request.hpp"
#include "src/mc/mc_safety.hpp"
-#include "src/mc/mc_smx.hpp"
#include "src/mc/remote/AppSide.hpp"
#include "src/mc/sosp/Snapshot.hpp"
#include "src/mc/checker/Checker.hpp"
#include "src/mc/mc_private.hpp"
#include "src/mc/mc_request.hpp"
-#include "src/mc/mc_smx.hpp"
#include "src/mc/mc_state.hpp"
#endif
#include "src/kernel/activity/MutexImpl.hpp"
#include "src/mc/ModelChecker.hpp"
#include "src/mc/checker/SimcallObserver.hpp"
-#include "src/mc/mc_smx.hpp"
+#include "src/mc/remote/RemoteSimulation.hpp"
+
#include <array>
using simgrid::mc::remote;
#include "simgrid/s4u/Host.hpp"
#include "src/mc/ModelChecker.hpp"
-#include "src/mc/mc_smx.hpp"
+#include "src/mc/remote/RemoteSimulation.hpp"
using simgrid::mc::remote;
+/** @file
+ * @brief (Cross-process, MCer/MCed) Access to SMX structures
+ *
+ * We copy some C data structure from the MCed process in the MCer process.
+ * This is implemented by:
+ *
+ * - `model_checker->process.smx_process_infos`
+ * (copy of `simix_global->process_list`);
+ *
+ * - `model_checker->process.smx_old_process_infos`
+ * (copy of `simix_global->actors_to_destroy`);
+ *
+ * - `model_checker->hostnames`.
+ *
+ * The process lists are currently refreshed each time MCed code is executed.
+ * We don't try to give a persistent MCer address for a given MCed process.
+ * For this reason, a MCer simgrid::mc::Process* is currently not reusable after
+ * MCed code.
+ */
/** Load the remote list of processes into a vector
*
}
}
-
-unsigned long MC_smx_get_maxpid()
-{
- unsigned long maxpid;
- const char* name = "simgrid::kernel::actor::maxpid";
- if (mc_model_checker->get_remote_simulation().find_variable(name) == nullptr)
- name = "maxpid"; // We seem to miss the namespaces when compiling with GCC
- mc_model_checker->get_remote_simulation().read_variable(name, &maxpid, sizeof(maxpid));
- return maxpid;
-}
+++ /dev/null
-/* Copyright (c) 2015-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. */
-
-#ifndef SIMGRID_MC_SMX_HPP
-#define SIMGRID_MC_SMX_HPP
-
-#include "src/mc/remote/RemoteSimulation.hpp"
-
-/** @file
- * @brief (Cross-process, MCer/MCed) Access to SMX structures
- *
- * We copy some C data structure from the MCed process in the MCer process.
- * This is implemented by:
- *
- * - `model_checker->process.smx_process_infos`
- * (copy of `simix_global->process_list`);
- *
- * - `model_checker->process.smx_old_process_infos`
- * (copy of `simix_global->actors_to_destroy`);
- *
- * - `model_checker->hostnames`.
- *
- * The process lists are currently refreshed each time MCed code is executed.
- * We don't try to give a persistent MCer address for a given MCed process.
- * For this reason, a MCer simgrid::mc::Process* is currently not reusable after
- * MCed code.
- */
-
-XBT_PRIVATE unsigned long MC_smx_get_maxpid();
-
-#endif
#include "src/internal_config.h"
#include "src/kernel/actor/ActorImpl.hpp"
#include "src/mc/checker/SimcallObserver.hpp"
+#include "src/mc/remote/RemoteSimulation.hpp"
#include <simgrid/modelchecker.h>
#include <cerrno>
#include <sys/socket.h>
#include <sys/types.h>
-// We won't need those once the separation MCer/MCed is complete:
-#include "src/mc/mc_smx.hpp"
-
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_client, mc, "MC client logic");
namespace simgrid {
#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"
/* 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/sosp/Region.hpp"
#include "src/mc/ModelChecker.hpp"
#include "src/mc/mc_config.hpp"
#include "src/mc/mc_forward.hpp"
-
-#include "src/mc/mc_smx.hpp"
-#include "src/mc/sosp/Region.hpp"
+#include "src/mc/remote/RemoteSimulation.hpp"
#include <cstdlib>
#include <sys/mman.h>
#include "src/mc/sosp/Snapshot.hpp"
#include "src/mc/mc_config.hpp"
#include "src/mc/mc_hash.hpp"
-#include "src/mc/mc_smx.hpp"
#include <cstddef> /* std::size_t */
src/mc/VisitedState.cpp
src/mc/VisitedState.hpp
src/mc/mc_client_api.cpp
- src/mc/mc_smx.hpp
src/mc/mc_smx.cpp
src/mc/mc_exit.hpp
src/mc/Transition.hpp