From: Lucas Schnorr Date: Tue, 24 May 2011 12:37:14 +0000 (+0200) Subject: [trace] remove old source file with functions that are no longer used X-Git-Tag: v3_6_rc3~14^2~3 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/8dfc4298acdf34e7c5b4fa68bc4da8df1ddbc9c6?hp=9a36fae38fd6af831308861de666cc06a4fe89da [trace] remove old source file with functions that are no longer used --- diff --git a/buildtools/Cmake/DefinePackages.cmake b/buildtools/Cmake/DefinePackages.cmake index d3c20cdd24..d65e466aa9 100644 --- a/buildtools/Cmake/DefinePackages.cmake +++ b/buildtools/Cmake/DefinePackages.cmake @@ -319,7 +319,6 @@ set(TRACING_SRC src/instr/instr_paje_trace.c src/instr/instr_msg_task.c src/instr/instr_msg_process.c - src/instr/instr_smx.c src/instr/instr_surf.c src/instr/instr_smpi.c src/instr/instr_simdag.c diff --git a/src/instr/instr_private.h b/src/instr/instr_private.h index bc32e07f7c..c6960bcff8 100644 --- a/src/instr/instr_private.h +++ b/src/instr/instr_private.h @@ -117,11 +117,6 @@ void TRACE_msg_process_sleep_in(m_process_t process); //called from msg/gos.c void TRACE_msg_process_sleep_out(m_process_t process); void TRACE_msg_process_end(m_process_t process); -/* from smx.c */ -void TRACE_smx_host_execute(smx_action_t act); -void TRACE_smx_action_communicate(smx_action_t act, smx_process_t proc); -void TRACE_smx_action_destroy(smx_action_t act); - /* from surf_instr.c */ void TRACE_surf_alloc(void); void TRACE_surf_release(void); diff --git a/src/instr/instr_smx.c b/src/instr/instr_smx.c deleted file mode 100644 index 4bc2df01f0..0000000000 --- a/src/instr/instr_smx.c +++ /dev/null @@ -1,31 +0,0 @@ -/* Copyright (c) 2010. The SimGrid Team. - * All rights reserved. */ - -/* This program is free software; you can redistribute it and/or modify it - * under the terms of the license (GNU LGPL) which comes with this package. */ - -#include "instr/instr_private.h" - -#ifdef HAVE_TRACING - -XBT_LOG_NEW_DEFAULT_SUBCATEGORY(instr_simix, instr, "Tracing Simix"); - -void TRACE_smx_host_execute(smx_action_t act) -{ - if (!TRACE_is_enabled()) return; - return; -} - -void TRACE_smx_action_communicate(smx_action_t act, smx_process_t proc) -{ - if (!TRACE_is_enabled()) return; - return; -} - -void TRACE_smx_action_destroy(smx_action_t act) -{ - if (!TRACE_is_enabled()) return; - return; -} - -#endif /* HAVE_TRACING */ diff --git a/src/simix/smx_host.c b/src/simix/smx_host.c index c1d3e0ccd5..29589b1f4d 100644 --- a/src/simix/smx_host.c +++ b/src/simix/smx_host.c @@ -209,10 +209,6 @@ smx_action_t SIMIX_host_execute(const char *name, smx_host_t host, surf_workstation_model->set_priority(action->execution.surf_exec, priority); } -#ifdef HAVE_TRACING - TRACE_smx_host_execute(action); -#endif - XBT_DEBUG("Create execute action %p", action); return action; @@ -267,9 +263,6 @@ void SIMIX_host_execution_destroy(smx_action_t action) action->execution.surf_exec = NULL; } -#ifdef HAVE_TRACING - TRACE_smx_action_destroy(action); -#endif xbt_mallocator_release(simix_global->action_mallocator, action); } diff --git a/src/simix/smx_network.c b/src/simix/smx_network.c index eade5755b3..d03fabbd0c 100644 --- a/src/simix/smx_network.c +++ b/src/simix/smx_network.c @@ -258,10 +258,6 @@ void SIMIX_comm_destroy(smx_action_t action) action->latency_limited = SIMIX_comm_is_latency_bounded( action ) ; #endif -#ifdef HAVE_TRACING - TRACE_smx_action_destroy(action); -#endif - xbt_free(action->name); SIMIX_comm_destroy_internal_actions(action); @@ -530,10 +526,6 @@ XBT_INLINE void SIMIX_comm_start(smx_action_t action) action->state = SIMIX_RUNNING; -#ifdef HAVE_TRACING - TRACE_smx_action_communicate(action, action->comm.src_proc); -#endif - /* If a link is failed, detect it immediately */ if (surf_workstation_model->action_state_get(action->comm.surf_comm) == SURF_ACTION_FAILED) { XBT_DEBUG("Communication from '%s' to '%s' failed to start because of a link failure", diff --git a/src/simix/smx_process.c b/src/simix/smx_process.c index 2713127822..bf5707b098 100644 --- a/src/simix/smx_process.c +++ b/src/simix/smx_process.c @@ -495,9 +495,6 @@ void SIMIX_process_sleep_destroy(smx_action_t action) XBT_DEBUG("Destroy action %p", action); if (action->sleep.surf_sleep) action->sleep.surf_sleep->model_type->action_unref(action->sleep.surf_sleep); -#ifdef HAVE_TRACING - TRACE_smx_action_destroy(action); -#endif xbt_mallocator_release(simix_global->action_mallocator, action); }