* under the terms of the license (GNU LGPL) which comes with this package. */
#include "instr/instr_private.h"
+#include "mc/mc.h"
#ifdef HAVE_TRACING
{
if (TRACE_msg_process_is_enabled()){
static long long int counter = 0;
+
+ if(MC_is_active())
+ MC_ignore_data_bss(&counter, sizeof(counter));
+
char key[INSTR_DEFAULT_STR_SIZE];
snprintf (key, INSTR_DEFAULT_STR_SIZE, "%lld", counter++);
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "instr/instr_private.h"
+#include "mc/mc.h"
#ifdef HAVE_TRACING
static long long counter = 0;
task->counter = counter++;
task->category = NULL;
+
+ if(MC_is_active()){
+ MC_ignore_data_bss(&counter, sizeof(counter));
+ MC_ignore_heap(&(task->counter), sizeof(task->counter));
+ }
+
XBT_DEBUG("CREATE %p, %lld", task, task->counter);
}
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "instr/instr_private.h"
+#include "mc/mc.h"
#ifdef HAVE_TRACING
#include "surf/surf_private.h"
//create the link
static long long counter = 0;
+
+ if(MC_is_active())
+ MC_ignore_data_bss(&counter, sizeof(counter));
+
char key[INSTR_DEFAULT_STR_SIZE];
snprintf (key, INSTR_DEFAULT_STR_SIZE, "%lld", counter++);
new_pajeStartLink(SIMIX_get_clock(), father, link_type, src, "topology", key);
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "instr/instr_private.h"
+#include "mc/mc.h"
#include <ctype.h>
#include <wchar.h>
}
//generate the key
static unsigned long long counter = 0;
+
+ if(MC_is_active())
+ MC_ignore_data_bss(&counter, sizeof(counter));
+
snprintf(key, n, "%d_%d_%llu", src, dst, counter++);
//push it
while(start <= end){
cursor = (start + end) / 2;
current_var = (mc_stack_ignore_variable_t)xbt_dynar_get_as(mc_stack_comparison_ignore, cursor, mc_stack_ignore_variable_t);
- if(strcmp(current_var->frame, frame) == 0){
+ if(strcmp(current_var->frame, frame) == 0 || strcmp(current_var->frame, "*") == 0){
if(strcmp(current_var->var_name, var_name) == 0)
return 1;
if(strcmp(current_var->var_name, var_name) < 0)
start = cursor + 1;
if(strcmp(current_var->var_name, var_name) > 0)
end = cursor - 1;
- }
- if(strcmp(current_var->frame, frame) < 0)
+ }else if(strcmp(current_var->frame, frame) < 0){
start = cursor + 1;
- if(strcmp(current_var->frame, frame) > 0)
+ }else if(strcmp(current_var->frame, frame) > 0){
end = cursor - 1;
+ }
}
return 0;
get_libsimgrid_plt_section();
get_binary_plt_section();
+ /* Ignore some variables from xbt/ex.h used by exception e for stacks comparison */
+ MC_ignore_stack("e", "*");
+ MC_ignore_stack("__ex_cleanup", "*");
+ MC_ignore_stack("__ex_mctx_en", "*");
+ MC_ignore_stack("__ex_mctx_me", "*");
+ MC_ignore_stack("_log_ev", "*");
+ MC_ignore_stack("_throw_ctx", "*");
+ MC_ignore_stack("ctx", "*");
+
+
if(raw_mem_set)
MC_SET_RAW_MEM;
xbt_ex_t e;
int finished = 0;
- /* Ignore some variables from xbt/ex.h used by exception e for stacks comparison */
- if (MC_is_active()){
- MC_ignore_stack("e", "MSG_comm_test");
- MC_ignore_stack("__ex_cleanup", "MSG_comm_test");
- MC_ignore_stack("__ex_mctx_me", "MSG_comm_test");
- }
-
TRY {
finished = simcall_comm_test(comm->s_comm);
SMX_THROW();
}
- /* Ignore some local variables from xbt/ex.c for stacks comparison */
- if(MC_is_active()){
- MC_ignore_stack("ctx", "SIMIX_process_yield");
- MC_ignore_stack("_throw_ctx", "SIMIX_process_yield");
- MC_ignore_stack("_log_ev", "SIMIX_process_yield");
- }
}
/* callback: context fetching */