Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot//simgrid/simgrid
[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 #define UNW_LOCAL_ONLY
11
12 #include "xbt/misc.h"
13 #include "xbt/swag.h"
14 #include "xbt/fifo.h"
15
16 #include <libunwind.h>
17 #include <dwarf.h>
18
19 SG_BEGIN_DECL()
20
21 /******************************* Transitions **********************************/
22
23 typedef struct s_mc_transition *mc_transition_t;
24
25 /*********** Structures for snapshot comparison **************************/
26
27 typedef struct s_mc_heap_ignore_region{
28   int block;
29   int fragment;
30   void *address;
31   size_t size;
32 }s_mc_heap_ignore_region_t, *mc_heap_ignore_region_t;
33
34 typedef struct s_stack_region{
35   void *address;
36   char *process_name;
37   void *context;
38   size_t size;
39   int block;
40   int process_index;
41 }s_stack_region_t, *stack_region_t;
42
43 void heap_ignore_region_free(mc_heap_ignore_region_t r);
44 void heap_ignore_region_free_voidp(void *r);
45
46
47 /************ DWARF structures *************/
48
49 SG_END_DECL()
50 #endif                          /* _MC_MC_H */