X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7a8cd62135619ad52e05ae1c929ef07e166e4260..0e9c0448c6566825b170b98ecff716b098bda10e:/src/simdag/private.h diff --git a/src/simdag/private.h b/src/simdag/private.h index e4025a39d3..20cc654dd1 100644 --- a/src/simdag/private.h +++ b/src/simdag/private.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2006, 2007, 2008, 2009, 2010. The SimGrid Team. +/* Copyright (c) 2006-2013. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -69,6 +69,13 @@ static inline SD_workstation_priv_t SD_workstation_priv(SD_workstation_t host){ return xbt_lib_get_level(host, SD_HOST_LEVEL); } +/* Storage */ +typedef s_xbt_dictelm_t s_SD_storage_t; +typedef struct SD_storage { + void *data; /* user data */ +} s_SD_storage_priv_t, *SD_storage_priv_t; + + /* Task */ typedef struct SD_task { s_xbt_swag_hookup_t state_hookup; @@ -104,6 +111,7 @@ typedef struct SD_task { double rate; #ifdef HAVE_TRACING + long long int counter; /* task unique identifier for instrumentation */ char *category; /* sd task category for instrumentation */ #endif } s_SD_task_t; @@ -199,4 +207,16 @@ static XBT_INLINE int __SD_task_is_running(SD_task_t task) return task->state_set == sd_global->running_task_set; } +/********** Storage **********/ +SD_storage_t __SD_storage_create(void *surf_storage, void *data); +void __SD_storage_destroy(void *storage); + +/********** Tracing **********/ +/* declaration of instrumentation functions from sd_task_instr.c */ +void TRACE_sd_task_create(SD_task_t task); +void TRACE_sd_task_execute_start(SD_task_t task); +void TRACE_sd_task_execute_end(SD_task_t task); +void TRACE_sd_task_destroy(SD_task_t task); + + #endif