Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Use shared_ptr for Pair
[simgrid.git] / src / mc / malloc.hpp
1 /* Copyright (c) 2010-2016. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 /* Copyright (C) 1991, 1992 Free Software Foundation, Inc.
8    This file was then part of the GNU C Library. */
9
10 #ifndef SIMGRID_MC_MALLOC_HPP
11 #define SIMGRID_MC_MALLOC_HPP
12
13 #include <vector>
14
15 #include <xbt/mmalloc.h>
16
17 #include "src/mc/mc_forward.hpp"
18 #include "src/mc/Process.hpp"
19
20 namespace simgrid {
21 namespace mc {
22
23 XBT_PRIVATE int mmalloc_compare_heap(Snapshot* snapshot1, Snapshot* snapshot2);
24 XBT_PRIVATE int mmalloc_linear_compare_heap(xbt_mheap_t heap1, xbt_mheap_t heap2);
25 XBT_PRIVATE int init_heap_information(xbt_mheap_t heap1, xbt_mheap_t heap2,
26                           std::vector<simgrid::mc::IgnoredHeapRegion>* i1,
27                           std::vector<simgrid::mc::IgnoredHeapRegion>* i2);
28 XBT_PRIVATE int compare_heap_area(
29   int process_index, const void *area1, const void* area2,
30   Snapshot* snapshot1, Snapshot* snapshot2,
31   xbt_dynar_t previous, Type* type, int pointer_level);
32 XBT_PRIVATE void reset_heap_information(void);
33
34 }
35 }
36
37 #endif