-/* Copyright (c) 2007-2015. The SimGrid Team.
+/* Copyright (c) 2007-2020. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
#include <string>
#include <vector>
-#include <xbt/base.h>
-#include <sys/types.h>
-
namespace simgrid {
namespace 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 */
std::string pathname; /* Path name of the mapped file */
};
-XBT_PRIVATE std::vector<VmMap> get_memory_map(pid_t pid);
-
+std::vector<VmMap> get_memory_map(pid_t pid);
}
}