X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e6465cc6a82fb2717d52f24645a2232f3b169a0f..eff2324504a9161166f095f4fe512a122da6854e:/src/instr/private.h diff --git a/src/instr/private.h b/src/instr/private.h index 78605f79e5..89b16ee2fe 100644 --- a/src/instr/private.h +++ b/src/instr/private.h @@ -1,30 +1,25 @@ -/* - * private.h - * - * Created on: Nov 23, 2009 - * Author: Lucas Schnorr - * License: 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. - * - * Copyright (c) 2009 The SimGrid team. - */ +/* 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. */ #ifndef INSTR_PRIVATE_H_ #define INSTR_PRIVATE_H_ -#include "instr/tracing_config.h" +#include "simgrid_config.h" #ifdef HAVE_TRACING extern int tracing_active; /* declared in paje.c */ -extern int trace_mask; /* declared in interface.c */ #define IS_TRACING (tracing_active) #define IS_TRACED(n) (n->category) -#define IS_TRACING_TASKS ((TRACE_TASK)&trace_mask) -#define IS_TRACING_PLATFORM ((TRACE_PLATFORM)&trace_mask) -#define IS_TRACING_PROCESSES ((TRACE_PROCESS)&trace_mask) +#define IS_TRACING_TASKS (_TRACE_msg_task_enabled()) +#define IS_TRACING_PLATFORM (_TRACE_platform_enabled()) +#define IS_TRACING_PROCESSES (_TRACE_msg_process_enabled()) +#define IS_TRACING_VOLUME (_TRACE_msg_volume_enabled()) +#define IS_TRACING_SMPI (_TRACE_smpi_enabled()) #include "instr/instr.h" #include "msg/msg.h" @@ -53,11 +48,13 @@ void pajePushStateWithBandwidthUsed (double time, const char *entityType, const void pajePopState (double time, const char *entityType, const char *container); void pajeStartLink (double time, const char *entityType, const char *container, const char *value, const char *sourceContainer, const char *key); void pajeStartLinkWithBandwidthLatency (double time, const char *entityType, const char *container, const char *value, const char *sourceContainer, const char *key, double bw, double lat); +void pajeStartLinkWithVolume (double time, const char *entityType, const char *container, const char *value, const char *sourceContainer, const char *key, double volume); void pajeEndLink (double time, const char *entityType, const char *container, const char *value, const char *destContainer, const char *key); void pajeDefineVariableType(const char *alias, const char *containerType, const char *name); void pajeSetVariable (double time, const char *entityType, const char *container, const char *value); void pajeAddVariable (double time, const char *entityType, const char *container, const char *value); void pajeSubVariable (double time, const char *entityType, const char *container, const char *value); +void pajeNewEvent (double time, const char *entityType, const char *container, const char *value); /* from general.c */ char *TRACE_paje_msg_container (m_task_t task, char *host, char *output, int len); @@ -98,6 +95,10 @@ 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); +/* declaration of instrumentation functions from msg_volume.c */ +void __TRACE_msg_volume_start (m_task_t task); +void __TRACE_msg_volume_finish (m_task_t task); + /* from smx.c */ void TRACE_smx_action_execute (smx_action_t act); void TRACE_smx_action_communicate (smx_action_t act, smx_process_t proc); @@ -128,6 +129,16 @@ int TRACE_surf_gtnets_get_src (void *action); int TRACE_surf_gtnets_get_dst (void *action); void TRACE_surf_gtnets_destroy (void *action); +/* from instr_config.c */ +int _TRACE_smpi_enabled (void); +int _TRACE_platform_enabled (void); +int _TRACE_msg_task_enabled (void); +int _TRACE_msg_process_enabled (void); +int _TRACE_msg_volume_enabled (void); +char *_TRACE_filename (void); +void TRACE_global_init(int *argc, char **argv); + + #endif #endif /* PRIVATE_H_ */