/* mc::RemoteClient: representative of the Client memory on the MC side */
-/* Copyright (c) 2008-2021. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2008-2022. 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. */
public:
explicit RemoteProcess(pid_t pid);
~RemoteProcess() override;
- void init(xbt_mheap_t mmalloc_default_mdp, unsigned long* maxpid, xbt_dynar_t actors, xbt_dynar_t dead_actors);
+ void init(xbt_mheap_t mmalloc_default_mdp, unsigned long* maxpid, xbt_dynar_t actors);
RemoteProcess(RemoteProcess const&) = delete;
RemoteProcess(RemoteProcess&&) = delete;
// Cache the address of the variables we read directly in the memory of remote
RemotePtr<unsigned long> maxpid_addr_;
RemotePtr<s_xbt_dynar_t> actors_addr_;
- RemotePtr<s_xbt_dynar_t> dead_actors_addr_;
public:
std::vector<ActorInformation>& actors();
- std::vector<ActorInformation>& dead_actors();
-
- /** Get a local description of a remote SIMIX actor */
- ActorInformation* resolve_actor_info(RemotePtr<kernel::actor::ActorImpl> actor)
- {
- xbt_assert(mc_model_checker != nullptr);
- if (not actor)
- return nullptr;
- this->refresh_simix();
- for (auto& actor_info : this->smx_actors_infos)
- if (actor_info.address == actor)
- return &actor_info;
- for (auto& actor_info : this->smx_dead_actors_infos)
- if (actor_info.address == actor)
- return &actor_info;
- return nullptr;
- }
-
- /** Get a local copy of the SIMIX actor structure */
- kernel::actor::ActorImpl* resolve_actor(RemotePtr<kernel::actor::ActorImpl> process)
- {
- ActorInformation* actor_info = this->resolve_actor_info(process);
- if (actor_info)
- return actor_info->copy.get_buffer();
- else
- return nullptr;
- }
unsigned long get_maxpid() const { return this->read(maxpid_addr_); }
*/
std::vector<ActorInformation> smx_actors_infos;
- /** Copy of `EngineImpl::actors_to_destroy_`
- *
- * See mc_smx.cpp.
- */
- std::vector<ActorInformation> smx_dead_actors_infos;
-
/** State of the cache (which variables are up to date) */
int cache_flags_ = RemoteProcess::cache_none;