Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
seriously, me
[simgrid.git] / src / include / mc / datatypes.h
1 /* Copyright (c) 2008-2015. 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 #ifdef _XBT_WIN32
11 #  include <xbt/win32_ucontext.h>     /* context relative declarations */
12 #else
13 #  include <ucontext.h>           /* context relative declarations */
14 #endif
15
16
17 #include "xbt/misc.h"
18 #include "xbt/swag.h"
19 #include "xbt/fifo.h"
20
21 #if HAVE_MC
22 #include <libunwind.h>
23 #include <dwarf.h>
24 #endif 
25
26 SG_BEGIN_DECL()
27
28 /******************************* Transitions **********************************/
29
30 typedef struct s_mc_transition *mc_transition_t;
31
32 /*********** Structures for snapshot comparison **************************/
33
34 typedef struct s_stack_region{
35   void *address;
36   ucontext_t* context;
37   size_t size;
38   int block;
39   int process_index;
40 }s_stack_region_t, *stack_region_t;
41
42 /************ DWARF structures *************/
43
44 SG_END_DECL()
45 #endif                          /* _MC_MC_H */