X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f23b0fb864cb60978c1fcfd48d50f62dd054fe31..7d5154294d0c97a3690134cc5d3a9900189055cf:/src/mc/remote/RemoteClient.hpp diff --git a/src/mc/remote/RemoteClient.hpp b/src/mc/remote/RemoteClient.hpp index 5d66c58d27..b786aeabe2 100644 --- a/src/mc/remote/RemoteClient.hpp +++ b/src/mc/remote/RemoteClient.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2008-2018. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2008-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. */ @@ -6,9 +6,9 @@ #ifndef SIMGRID_MC_PROCESS_H #define SIMGRID_MC_PROCESS_H -#include "src/xbt/mmalloc/mmprivate.h" +#include "src/mc/inspect/ObjectInformation.hpp" #include "src/mc/remote/Channel.hpp" -#include "src/mc/ObjectInformation.hpp" +#include "src/xbt/mmalloc/mmprivate.h" #include @@ -80,7 +80,7 @@ public: RemoteClient& operator=(RemoteClient&&) = delete; // Read memory: - const void* read_bytes(void* buffer, std::size_t size, RemotePtr address, int process_index = ProcessIndexAny, + const void* read_bytes(void* buffer, std::size_t size, RemotePtr address, ReadOptions options = ReadOptions::none()) const override; void read_variable(const char* name, void* target, size_t size) const; @@ -91,7 +91,7 @@ public: template Remote read_variable(const char* name) const { Remote res; - read_variable(name, res.getBuffer(), sizeof(T)); + read_variable(name, res.get_buffer(), sizeof(T)); return res; } @@ -107,7 +107,7 @@ public: std::shared_ptr find_object_info_exec(RemotePtr addr) const; std::shared_ptr find_object_info_rw(RemotePtr addr) const; simgrid::mc::Frame* find_function(RemotePtr ip) const; - simgrid::mc::Variable* find_variable(const char* name) const; + const simgrid::mc::Variable* find_variable(const char* name) const; // Heap access: xbt_mheap_t get_heap() @@ -125,8 +125,8 @@ public: void clear_cache() { this->cache_flags_ = RemoteClient::cache_none; } - Channel const& getChannel() const { return channel_; } - Channel& getChannel() { return channel_; } + Channel const& get_channel() const { return channel_; } + Channel& get_channel() { return channel_; } std::vector const& ignored_regions() const { return ignored_regions_; } void ignore_region(std::uint64_t address, std::size_t size); @@ -142,10 +142,6 @@ public: void terminate() { running_ = false; } - bool privatized(ObjectInformation const& info) const { return privatized_ && info.executable(); } - bool privatized() const { return privatized_; } - void privatized(bool privatized) { privatized_ = privatized; } - void ignore_global_variable(const char* name) { for (std::shared_ptr const& info : this->object_infos) @@ -164,7 +160,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* resolve_actor_info(simgrid::mc::RemotePtr actor) { xbt_assert(mc_model_checker != nullptr); if (not actor) @@ -180,16 +176,16 @@ public: } /** Get a local copy of the SIMIX actor structure */ - simgrid::kernel::actor::ActorImpl* resolveActor(simgrid::mc::RemotePtr process) + simgrid::kernel::actor::ActorImpl* resolve_actor(simgrid::mc::RemotePtr process) { - simgrid::mc::ActorInformation* actor_info = this->resolveActorInfo(process); + simgrid::mc::ActorInformation* actor_info = this->resolve_actor_info(process); if (actor_info) - return actor_info->copy.getBuffer(); + return actor_info->copy.get_buffer(); else return nullptr; } - void dumpStack(); + void dump_stack(); private: void init_memory_map_info(); @@ -205,7 +201,6 @@ private: RemotePtr maestro_stack_end_; int memory_file = -1; std::vector ignored_regions_; - bool privatized_ = false; std::vector stack_areas_; std::vector ignored_heap_; @@ -223,7 +218,7 @@ public: */ std::vector smx_actors_infos; - /** Copy of `simix_global->process_to_destroy` + /** Copy of `simix_global->actors_to_destroy` * * See mc_smx.c. */