Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Make an option for file descriptor snapshot (off by default)
[simgrid.git] / src / include / mc / datatypes.h
1 /* Copyright (c) 2008-2014. 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 #ifndef MC_DATATYPE_H
8 #define MC_DATATYPE_H
9
10 #include "xbt/misc.h"
11 #include "xbt/swag.h"
12 #include "xbt/fifo.h"
13
14 #include <libunwind.h>
15 #include <dwarf.h>
16
17 SG_BEGIN_DECL()
18
19 /******************************* Transitions **********************************/
20
21 typedef struct s_mc_transition *mc_transition_t;
22
23 /*********** Structures for snapshot comparison **************************/
24
25 typedef struct s_mc_heap_ignore_region{
26   int block;
27   int fragment;
28   void *address;
29   size_t size;
30 }s_mc_heap_ignore_region_t, *mc_heap_ignore_region_t;
31
32 typedef struct s_stack_region{
33   void *address;
34   void *context;
35   size_t size;
36   int block;
37   int process_index;
38 }s_stack_region_t, *stack_region_t;
39
40 void heap_ignore_region_free(mc_heap_ignore_region_t r);
41 void heap_ignore_region_free_voidp(void *r);
42
43
44 /************ DWARF structures *************/
45
46 SG_END_DECL()
47 #endif                          /* _MC_MC_H */