X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/831d719023e7a0af690f54db87a5e6ba4802ede3..611d822b02f836d7abe031cced6adc4281ef4356:/src/mc/remote/RemoteClient.hpp diff --git a/src/mc/remote/RemoteClient.hpp b/src/mc/remote/RemoteClient.hpp index 2fc858674e..f53bb047c4 100644 --- a/src/mc/remote/RemoteClient.hpp +++ b/src/mc/remote/RemoteClient.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2008-2017. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2008-2018. 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. */ @@ -26,8 +26,8 @@ #include "src/mc/remote/Channel.hpp" #include "src/mc/remote/RemotePtr.hpp" -#include "src/simix/popping_private.h" -#include "src/simix/smx_private.h" +#include "src/simix/popping_private.hpp" +#include "src/simix/smx_private.hpp" #include #include "src/xbt/memory_map.hpp" @@ -44,8 +44,8 @@ namespace mc { class ActorInformation { public: /** MCed address of the process */ - RemotePtr address = nullptr; - Remote copy; + RemotePtr address{nullptr}; + Remote copy; /** Hostname (owned by `mc_modelchecker->hostnames`) */ const char* hostname = nullptr; @@ -122,10 +122,7 @@ public: } std::string read_string(RemotePtr address) const; - std::string read_string(RemotePtr address, std::size_t len) const - { - return AddressSpace::read_string(address, len); - } + using AddressSpace::read_string; // Write memory: void write_bytes(const void* buffer, size_t len, RemotePtr address); @@ -193,7 +190,7 @@ public: std::vector& dead_actors(); /** Get a local description of a remote SIMIX actor */ - simgrid::mc::ActorInformation* resolveActorInfo(simgrid::mc::RemotePtr actor) + simgrid::mc::ActorInformation* resolveActorInfo(simgrid::mc::RemotePtr actor) { xbt_assert(mc_model_checker != nullptr); if (not actor) @@ -209,7 +206,7 @@ public: } /** Get a local copy of the SIMIX actor structure */ - simgrid::simix::ActorImpl* resolveActor(simgrid::mc::RemotePtr process) + simgrid::kernel::actor::ActorImpl* resolveActor(simgrid::mc::RemotePtr process) { simgrid::mc::ActorInformation* actor_info = this->resolveActorInfo(process); if (actor_info) @@ -226,7 +223,6 @@ private: void refresh_malloc_info(); void refresh_simix(); -private: pid_t pid_ = -1; Channel channel_; bool running_ = false; @@ -239,17 +235,18 @@ private: std::vector stack_areas_; std::vector ignored_heap_; -public: // object info +public: + // object info // TODO, make private (first, objectify simgrid::mc::ObjectInformation*) std::vector> object_infos; std::shared_ptr libsimgrid_info; std::shared_ptr binary_info; -public: // Copies of MCed SMX data structures - /** Copy of `simix_global->process_list` - * - * See mc_smx.c. - */ + // Copies of MCed SMX data structures + /** Copy of `simix_global->process_list` + * + * See mc_smx.c. + */ std::vector smx_actors_infos; /** Copy of `simix_global->process_to_destroy` @@ -282,13 +279,13 @@ public: */ std::vector heap_info; -public: // Libunwind-data - /** Full-featured MC-aware libunwind address space for the process - * - * This address space is using a simgrid::mc::UnwindContext* - * (with simgrid::mc::Process* / simgrid::mc::AddressSpace* - * and unw_context_t). - */ + // Libunwind-data + /** Full-featured MC-aware libunwind address space for the process + * + * This address space is using a simgrid::mc::UnwindContext* + * (with simgrid::mc::Process* / simgrid::mc::AddressSpace* + * and unw_context_t). + */ unw_addr_space_t unw_addr_space; /** Underlying libunwind address-space