X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d3154c75960afc4f3fe7e53c835e35f2584ed97a..3db47603316610f1878cb48634c357b75bbbed9d:/src/mc/Process.hpp diff --git a/src/mc/Process.hpp b/src/mc/Process.hpp index 724d068133..a2cef8542e 100644 --- a/src/mc/Process.hpp +++ b/src/mc/Process.hpp @@ -22,7 +22,7 @@ #include #include -#ifdef HAVE_MC +#if HAVE_MC #include "src/xbt/mmalloc/mmprivate.h" #endif @@ -82,6 +82,19 @@ struct IgnoredHeapRegion { }; /** Representation of a process + * + * This class is mixing a lot of differents responsabilities and is tied + * to SIMIX. It should probably split into different classes. + * + * Responsabilities: + * + * - reading from the process memory (`AddressSpace`); + * - accessing the system state of the porcess (heap, …); + * - storing the SIMIX state of the process; + * - privatization; + * - communication with the model-checked process; + * - stack unwinding; + * - etc. */ class Process final : public AddressSpace { public: @@ -215,11 +228,13 @@ public: void ignore_local_variable(const char *var_name, const char *frame_name); int socket() { return socket_; } std::vector& simix_processes(); + std::vector& old_simix_processes(); private: void init_memory_map_info(); void refresh_heap(); void refresh_malloc_info(); + void refresh_simix(); private: pid_t pid_ = -1;