From: Arnaud Giersch Date: Mon, 25 Jun 2012 09:49:12 +0000 (+0200) Subject: Tracing API has changed. Disable it until its usage is fixed. X-Git-Tag: v0.3~12 X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/commitdiff_plain/d5bb5e4a973b0e6e2346204eb743da3676b92821?hp=ae7e1cc677c476f528ac4b75a69c5cc4722ec23b Tracing API has changed. Disable it until its usage is fixed. --- diff --git a/communicator.cpp b/communicator.cpp index e841116..2ba91a0 100644 --- a/communicator.cpp +++ b/communicator.cpp @@ -6,7 +6,6 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(comm); #include "misc.h" -#include "simgrid_features.h" #include "tracing.h" #include "communicator.h" @@ -54,9 +53,9 @@ msg_comm_t communicator::real_send(const char* dest, message* msg) { XBT_DEBUG("send %s to %s", msg->to_string().c_str(), dest); m_task_t task = MSG_task_create("message", 0.0, msg->get_size(), msg); - MSG_task_set_category(task, - msg->get_type() == message::DATA ? - TRACE_CAT_DATA : TRACE_CAT_CTRL); + // MSG_task_set_category(task, + // msg->get_type() == message::DATA ? + // TRACE_CAT_DATA : TRACE_CAT_CTRL); return MSG_task_isend(task, dest); } diff --git a/process.cpp b/process.cpp index 722013f..6c72d45 100644 --- a/process.cpp +++ b/process.cpp @@ -257,7 +257,7 @@ void process::compute_loop() ++comp_iter; double flops = opt::comp_cost(real_load); m_task_t task = MSG_task_create("computation", flops, 0.0, NULL); - MSG_task_set_category(task, TRACE_CAT_COMP); + // MSG_task_set_category(task, TRACE_CAT_COMP); XBT_DEBUG("compute %g flop%s", flops, ESSE(flops)); MSG_task_execute(task); add_comp_amount(flops); diff --git a/simgrid_features.h b/simgrid_features.h index f407ffd..458d6cf 100644 --- a/simgrid_features.h +++ b/simgrid_features.h @@ -7,11 +7,6 @@ # error "Unsupported SimGrid version. Need version > 3.5" #endif // ============================================================= // -#if SIMGRID_VERSION < MAKE_SIMGRID_VERSION(3, 7, 0) - -#define MSG_task_set_category(task, cat) TRACE_msg_set_task_category(task, cat) - -#endif #endif // !SIMGRID_FEATURES_H