Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Rename mc::RemoteSimulation into mc::RemoteProcess
[simgrid.git] / src / mc / remote / RemoteProcess.hpp
similarity index 92%
rename from src/mc/remote/RemoteSimulation.hpp
rename to src/mc/remote/RemoteProcess.hpp
index fc50761..3e35f7f 100644 (file)
@@ -63,7 +63,7 @@ struct IgnoredHeapRegion {
  *  - stack unwinding;
  *  - etc.
  */
-class RemoteSimulation final : public AddressSpace {
+class RemoteProcess final : public AddressSpace {
 private:
   // Those flags are used to track down which cached information
   // is still up to date and which information needs to be updated.
@@ -73,14 +73,14 @@ private:
   static constexpr int cache_simix_processes = 4;
 
 public:
-  explicit RemoteSimulation(pid_t pid);
-  ~RemoteSimulation() override;
+  explicit RemoteProcess(pid_t pid);
+  ~RemoteProcess() override;
   void init();
 
-  RemoteSimulation(RemoteSimulation const&) = delete;
-  RemoteSimulation(RemoteSimulation&&)      = delete;
-  RemoteSimulation& operator=(RemoteSimulation const&) = delete;
-  RemoteSimulation& operator=(RemoteSimulation&&) = delete;
+  RemoteProcess(RemoteProcess const&) = delete;
+  RemoteProcess(RemoteProcess&&)      = delete;
+  RemoteProcess& operator=(RemoteProcess const&) = delete;
+  RemoteProcess& operator=(RemoteProcess&&) = delete;
 
   // Read memory:
   void* read_bytes(void* buffer, std::size_t size, RemotePtr<void> address,
@@ -115,18 +115,18 @@ public:
   // Heap access:
   xbt_mheap_t get_heap()
   {
-    if (not(this->cache_flags_ & RemoteSimulation::cache_heap))
+    if (not(this->cache_flags_ & RemoteProcess::cache_heap))
       this->refresh_heap();
     return this->heap.get();
   }
   const malloc_info* get_malloc_info()
   {
-    if (not(this->cache_flags_ & RemoteSimulation::cache_malloc))
+    if (not(this->cache_flags_ & RemoteProcess::cache_malloc))
       this->refresh_malloc_info();
     return this->heap_info.data();
   }
 
-  void clear_cache() { this->cache_flags_ = RemoteSimulation::cache_none; }
+  void clear_cache() { this->cache_flags_ = RemoteProcess::cache_none; }
 
   std::vector<IgnoredRegion> const& ignored_regions() const { return ignored_regions_; }
   void ignore_region(std::uint64_t address, std::size_t size);
@@ -224,7 +224,7 @@ public:
 
 private:
   /** State of the cache (which variables are up to date) */
-  int cache_flags_ = RemoteSimulation::cache_none;
+  int cache_flags_ = RemoteProcess::cache_none;
 
 public:
   /** Address of the heap structure in the MCed process. */