X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7f4f03348bd07609e258eb3b545bdafc2c881847..48296e83ce3ba1fa3658a3a74d10a536e33b3849:/src/xbt/memory_map.hpp diff --git a/src/xbt/memory_map.hpp b/src/xbt/memory_map.hpp index e4e138d6d1..d85f0b7065 100644 --- a/src/xbt/memory_map.hpp +++ b/src/xbt/memory_map.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2007-2015. The SimGrid Team. +/* Copyright (c) 2007-2022. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -11,15 +11,12 @@ #include #include -#include -#include - -namespace simgrid { -namespace xbt { +namespace simgrid::xbt { /** An virtual memory map entry from /proc/$pid/maps */ struct VmMap { - std::uint64_t start_addr, end_addr; + std::uint64_t start_addr; + std::uint64_t end_addr; int prot; /* Memory protection */ int flags; /* Additional memory flags */ std::uint64_t offset; /* Offset in the file/whatever */ @@ -29,9 +26,7 @@ struct VmMap { std::string pathname; /* Path name of the mapped file */ }; -XBT_PRIVATE std::vector get_memory_map(pid_t pid); - -} -} +std::vector get_memory_map(pid_t pid); +} // namespace simgrid::xbt #endif