X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5a4767e64e45de2c17e9bbdcdf9c8588dbce80b0..2d8659efd37976d438feae7108ca944efe38adac:/src/mc/mc_private.h diff --git a/src/mc/mc_private.h b/src/mc/mc_private.h index 699a467a12..17e8c9a4bc 100644 --- a/src/mc/mc_private.h +++ b/src/mc/mc_private.h @@ -26,24 +26,23 @@ /****************************** Snapshots ***********************************/ -#define nb_regions 3 /* binary data (data + BSS), libsimgrid data (data + BSS), std_heap */ +#define NB_REGIONS 3 /* binary data (data + BSS) (type = 2), libsimgrid data (data + BSS) (type = 1), std_heap (type = 0)*/ typedef struct s_mc_mem_region{ - int type; void *start_addr; void *data; size_t size; } s_mc_mem_region_t, *mc_mem_region_t; typedef struct s_mc_snapshot{ - unsigned int num_reg; - int region_type[nb_regions]; size_t heap_bytes_used; - mc_mem_region_t *regions; + mc_mem_region_t regions[NB_REGIONS]; + int nb_processes; size_t *stack_sizes; xbt_dynar_t stacks; - int nb_processes; xbt_dynar_t to_ignore; + char hash_global[41]; + char hash_local[41]; } s_mc_snapshot_t, *mc_snapshot_t; typedef struct s_mc_snapshot_stack{ @@ -56,12 +55,12 @@ typedef struct s_mc_global_t{ int raw_mem_set; }s_mc_global_t, *mc_global_t; -//void MC_take_snapshot(mc_snapshot_t); mc_snapshot_t SIMIX_pre_mc_snapshot(smx_simcall_t simcall); mc_snapshot_t MC_take_snapshot(void); void MC_restore_snapshot(mc_snapshot_t); void MC_free_snapshot(mc_snapshot_t); void snapshot_stack_free_voidp(void *s); +int is_stack_ignore_variable(char *frame, char *var_name); /********************************* MC Global **********************************/ extern double *mc_time; @@ -226,6 +225,8 @@ typedef struct s_mc_comparison_times{ double libsimgrid_global_variables_comparison_time; double heap_comparison_time; double stacks_comparison_time; + double hash_global_variables_comparison_time; + double hash_local_variables_comparison_time; }s_mc_comparison_times_t, *mc_comparison_times_t; extern mc_comparison_times_t mc_comp_times;