123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893 |
- /* StarPU --- Runtime system for heterogeneous multicore architectures.
- *
- * Copyright (C) 2009-2014 Université de Bordeaux 1
- * Copyright (C) 2010, 2011, 2012, 2013 Centre National de la Recherche Scientifique
- *
- * StarPU is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1 of the License, or (at
- * your option) any later version.
- *
- * StarPU is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- *
- * See the GNU Lesser General Public License in COPYING.LGPL for more details.
- */
- #ifndef __FXT_H__
- #define __FXT_H__
- #ifndef _GNU_SOURCE
- #define _GNU_SOURCE /* ou _BSD_SOURCE ou _SVID_SOURCE */
- #endif
- #include <unistd.h>
- #include <string.h>
- #include <sys/types.h>
- #include <stdlib.h>
- #include <common/config.h>
- #include <common/utils.h>
- #include <starpu.h>
- /* some key to identify the worker kind */
- #define _STARPU_FUT_APPS_KEY 0x100
- #define _STARPU_FUT_CPU_KEY 0x101
- #define _STARPU_FUT_CUDA_KEY 0x102
- #define _STARPU_FUT_OPENCL_KEY 0x103
- #define _STARPU_FUT_MIC_KEY 0x104
- #define _STARPU_FUT_SCC_KEY 0x105
- #define _STARPU_FUT_WORKER_INIT_START 0x5100
- #define _STARPU_FUT_WORKER_INIT_END 0x5101
- #define _STARPU_FUT_START_CODELET_BODY 0x5102
- #define _STARPU_FUT_END_CODELET_BODY 0x5103
- #define _STARPU_FUT_JOB_PUSH 0x5104
- #define _STARPU_FUT_JOB_POP 0x5105
- #define _STARPU_FUT_UPDATE_TASK_CNT 0x5106
- #define _STARPU_FUT_START_FETCH_INPUT 0x5107
- #define _STARPU_FUT_END_FETCH_INPUT 0x5108
- #define _STARPU_FUT_START_PUSH_OUTPUT 0x5109
- #define _STARPU_FUT_END_PUSH_OUTPUT 0x5110
- #define _STARPU_FUT_TAG 0x5111
- #define _STARPU_FUT_TAG_DEPS 0x5112
- #define _STARPU_FUT_TASK_DEPS 0x5113
- #define _STARPU_FUT_DATA_COPY 0x5114
- #define _STARPU_FUT_WORK_STEALING 0x5115
- #define _STARPU_FUT_WORKER_DEINIT_START 0x5116
- #define _STARPU_FUT_WORKER_DEINIT_END 0x5117
- #define _STARPU_FUT_WORKER_SLEEP_START 0x5118
- #define _STARPU_FUT_WORKER_SLEEP_END 0x5119
- #define _STARPU_FUT_USER_DEFINED_START 0x5120
- #define _STARPU_FUT_USER_DEFINED_END 0x5121
- #define _STARPU_FUT_NEW_MEM_NODE 0x5122
- #define _STARPU_FUT_START_CALLBACK 0x5123
- #define _STARPU_FUT_END_CALLBACK 0x5124
- #define _STARPU_FUT_TASK_DONE 0x5125
- #define _STARPU_FUT_TAG_DONE 0x5126
- #define _STARPU_FUT_START_ALLOC 0x5127
- #define _STARPU_FUT_END_ALLOC 0x5128
- #define _STARPU_FUT_START_ALLOC_REUSE 0x5129
- #define _STARPU_FUT_END_ALLOC_REUSE 0x5130
- #define _STARPU_FUT_START_MEMRECLAIM 0x5131
- #define _STARPU_FUT_END_MEMRECLAIM 0x5132
- #define _STARPU_FUT_START_DRIVER_COPY 0x5133
- #define _STARPU_FUT_END_DRIVER_COPY 0x5134
- #define _STARPU_FUT_START_DRIVER_COPY_ASYNC 0x5135
- #define _STARPU_FUT_END_DRIVER_COPY_ASYNC 0x5136
- #define _STARPU_FUT_START_PROGRESS 0x5137
- #define _STARPU_FUT_END_PROGRESS 0x5138
- #define _STARPU_FUT_USER_EVENT 0x5139
- #define _STARPU_FUT_SET_PROFILING 0x513a
- #define _STARPU_FUT_TASK_WAIT_FOR_ALL 0x513b
- #define _STARPU_FUT_EVENT 0x513c
- #define _STARPU_FUT_THREAD_EVENT 0x513d
- #define _STARPU_FUT_CODELET_DETAILS 0x513e
- #define _STARPU_FUT_CODELET_DATA 0x513f
- #define _STARPU_FUT_LOCKING_MUTEX 0x5140
- #define _STARPU_FUT_MUTEX_LOCKED 0x5141
- #define _STARPU_FUT_UNLOCKING_MUTEX 0x5142
- #define _STARPU_FUT_MUTEX_UNLOCKED 0x5143
- #define _STARPU_FUT_TRYLOCK_MUTEX 0x5144
- #define _STARPU_FUT_RDLOCKING_RWLOCK 0x5145
- #define _STARPU_FUT_RWLOCK_RDLOCKED 0x5146
- #define _STARPU_FUT_WRLOCKING_RWLOCK 0x5147
- #define _STARPU_FUT_RWLOCK_WRLOCKED 0x5148
- #define _STARPU_FUT_UNLOCKING_RWLOCK 0x5149
- #define _STARPU_FUT_RWLOCK_UNLOCKED 0x514a
- #define _STARPU_FUT_LOCKING_SPINLOCK 0x514b
- #define _STARPU_FUT_SPINLOCK_LOCKED 0x514c
- #define _STARPU_FUT_UNLOCKING_SPINLOCK 0x514d
- #define _STARPU_FUT_SPINLOCK_UNLOCKED 0x514e
- #define _STARPU_FUT_TRYLOCK_SPINLOCK 0x514f
- #define _STARPU_FUT_COND_WAIT_BEGIN 0x5150
- #define _STARPU_FUT_COND_WAIT_END 0x5151
- #define _STARPU_FUT_MEMORY_FULL 0x5152
- #define _STARPU_FUT_DATA_LOAD 0x5153
- #define _STARPU_FUT_START_UNPARTITION 0x5154
- #define _STARPU_FUT_END_UNPARTITION 0x5155
- #define _STARPU_FUT_START_FREE 0x5156
- #define _STARPU_FUT_END_FREE 0x5157
- #define _STARPU_FUT_START_WRITEBACK 0x5158
- #define _STARPU_FUT_END_WRITEBACK 0x5159
- #define _STARPU_FUT_HYPERVISOR_BEGIN 0x5160
- #define _STARPU_FUT_HYPERVISOR_END 0x5161
- #define _STARPU_FUT_BARRIER_WAIT_BEGIN 0x5162
- #define _STARPU_FUT_BARRIER_WAIT_END 0x5163
- #define _STARPU_FUT_WORKER_SCHEDULING_START 0x5164
- #define _STARPU_FUT_WORKER_SCHEDULING_END 0x5165
- #define _STARPU_FUT_WORKER_SCHEDULING_PUSH 0x5166
- #define _STARPU_FUT_WORKER_SCHEDULING_POP 0x5167
- #define _STARPU_FUT_START_EXECUTING 0x5168
- #define _STARPU_FUT_END_EXECUTING 0x5169
- #ifdef STARPU_USE_FXT
- #include <fxt/fxt.h>
- #include <fxt/fut.h>
- /* Some versions of FxT do not include the declaration of the function */
- #ifdef HAVE_ENABLE_FUT_FLUSH
- #if !HAVE_DECL_ENABLE_FUT_FLUSH
- void enable_fut_flush();
- #endif
- #endif
- #ifdef HAVE_FUT_SET_FILENAME
- #if !HAVE_DECL_FUT_SET_FILENAME
- void fut_set_filename(char *filename);
- #endif
- #endif
- long _starpu_gettid(void);
- /* Initialize the FxT library. */
- void _starpu_init_fxt_profiling(unsigned trace_buffer_size);
- /* Stop the FxT library, and generate the trace file. */
- void _starpu_stop_fxt_profiling(void);
- /* Associate the current processing unit to the identifier of the LWP that runs
- * the worker. */
- void _starpu_fxt_register_thread(unsigned);
- #ifdef FUT_NEEDS_COMMIT
- #define _STARPU_FUT_COMMIT(size) fut_commitstampedbuffer(size)
- #else
- #define _STARPU_FUT_COMMIT(size) do { } while (0)
- #endif
- #ifdef FUT_DO_PROBE1STR
- #define _STARPU_FUT_DO_PROBE1STR(CODE, P1, str) FUT_DO_PROBE1STR(CODE, P1, str)
- #else
- /* Sometimes we need something a little more specific than the wrappers from
- * FxT: these macro permit to put add an event with 3 (or 4) numbers followed
- * by a string. */
- #define _STARPU_FUT_DO_PROBE1STR(CODE, P1, str) \
- do { \
- if(fut_active) { \
- /* No more than FXT_MAX_PARAMS args are allowed */ \
- /* we add a \0 just in case ... */ \
- size_t len = STARPU_MIN(strlen(str)+1, (FXT_MAX_PARAMS - 1)*sizeof(unsigned long));\
- unsigned nbargs_str = (len + sizeof(unsigned long) - 1)/(sizeof(unsigned long));\
- unsigned nbargs = 1 + nbargs_str; \
- size_t total_len = FUT_SIZE(nbargs); \
- unsigned long *futargs = \
- fut_getstampedbuffer(FUT_CODE(CODE, nbargs), total_len);\
- *(futargs++) = (unsigned long)(P1); \
- snprintf((char *)futargs, len, "%s", str); \
- ((char *)futargs)[len - 1] = '\0'; \
- _STARPU_FUT_COMMIT(total_len); \
- } \
- } while (0);
- #endif
- #ifdef FUT_DO_PROBE2STR
- #define _STARPU_FUT_DO_PROBE2STR(CODE, P1, P2, str) FUT_DO_PROBE2STR(CODE, P1, P2, str)
- #else
- /* Sometimes we need something a little more specific than the wrappers from
- * FxT: these macro permit to put add an event with 3 (or 4) numbers followed
- * by a string. */
- #define _STARPU_FUT_DO_PROBE2STR(CODE, P1, P2, str) \
- do { \
- if(fut_active) { \
- /* No more than FXT_MAX_PARAMS args are allowed */ \
- /* we add a \0 just in case ... */ \
- size_t len = STARPU_MIN(strlen(str)+1, (FXT_MAX_PARAMS - 2)*sizeof(unsigned long));\
- unsigned nbargs_str = (len + sizeof(unsigned long) - 1)/(sizeof(unsigned long));\
- unsigned nbargs = 2 + nbargs_str; \
- size_t total_len = FUT_SIZE(nbargs); \
- unsigned long *futargs = \
- fut_getstampedbuffer(FUT_CODE(CODE, nbargs), total_len);\
- *(futargs++) = (unsigned long)(P1); \
- *(futargs++) = (unsigned long)(P2); \
- snprintf((char *)futargs, len, "%s", str); \
- ((char *)futargs)[len - 1] = '\0'; \
- _STARPU_FUT_COMMIT(total_len); \
- } \
- } while (0);
- #endif
- #ifdef FUT_DO_PROBE3STR
- #define _STARPU_FUT_DO_PROBE3STR(CODE, P1, P2, P3, str) FUT_DO_PROBE3STR(CODE, P1, P2, P3, str)
- #else
- #define _STARPU_FUT_DO_PROBE3STR(CODE, P1, P2, P3, str) \
- do { \
- if(fut_active) { \
- /* No more than FXT_MAX_PARAMS args are allowed */ \
- /* we add a \0 just in case ... */ \
- size_t len = STARPU_MIN(strlen(str)+1, (FXT_MAX_PARAMS - 3)*sizeof(unsigned long));\
- unsigned nbargs_str = (len + sizeof(unsigned long) - 1)/(sizeof(unsigned long));\
- unsigned nbargs = 3 + nbargs_str; \
- size_t total_len = FUT_SIZE(nbargs); \
- unsigned long *futargs = \
- fut_getstampedbuffer(FUT_CODE(CODE, nbargs), total_len);\
- *(futargs++) = (unsigned long)(P1); \
- *(futargs++) = (unsigned long)(P2); \
- *(futargs++) = (unsigned long)(P3); \
- snprintf((char *)futargs, len, "%s", str); \
- ((char *)futargs)[len - 1] = '\0'; \
- _STARPU_FUT_COMMIT(total_len); \
- } \
- } while (0);
- #endif
- #ifdef FUT_DO_PROBE4STR
- #define _STARPU_FUT_DO_PROBE4STR(CODE, P1, P2, P3, P4, str) FUT_DO_PROBE4STR(CODE, P1, P2, P3, P4, str)
- #else
- #define _STARPU_FUT_DO_PROBE4STR(CODE, P1, P2, P3, P4, str) \
- do { \
- if(fut_active) { \
- /* No more than FXT_MAX_PARAMS args are allowed */ \
- /* we add a \0 just in case ... */ \
- size_t len = STARPU_MIN(strlen(str)+1, (FXT_MAX_PARAMS - 4)*sizeof(unsigned long));\
- unsigned nbargs_str = (len + sizeof(unsigned long) - 1)/(sizeof(unsigned long));\
- unsigned nbargs = 4 + nbargs_str; \
- size_t total_len = FUT_SIZE(nbargs); \
- unsigned long *futargs = \
- fut_getstampedbuffer(FUT_CODE(CODE, nbargs), total_len);\
- *(futargs++) = (unsigned long)(P1); \
- *(futargs++) = (unsigned long)(P2); \
- *(futargs++) = (unsigned long)(P3); \
- *(futargs++) = (unsigned long)(P4); \
- snprintf((char *)futargs, len, "%s", str); \
- ((char *)futargs)[len - 1] = '\0'; \
- _STARPU_FUT_COMMIT(total_len); \
- } \
- } while (0);
- #endif
- #ifdef FUT_DO_PROBE5STR
- #define _STARPU_FUT_DO_PROBE5STR(CODE, P1, P2, P3, P4, P5, str) FUT_DO_PROBE5STR(CODE, P1, P2, P3, P4, P5, str)
- #else
- #define _STARPU_FUT_DO_PROBE5STR(CODE, P1, P2, P3, P4, P5, str) \
- do { \
- if(fut_active) { \
- /* No more than FXT_MAX_PARAMS args are allowed */ \
- /* we add a \0 just in case ... */ \
- size_t len = STARPU_MIN(strlen(str)+1, (FXT_MAX_PARAMS - 5)*sizeof(unsigned long));\
- unsigned nbargs_str = (len + sizeof(unsigned long) - 1)/(sizeof(unsigned long));\
- unsigned nbargs = 5 + nbargs_str; \
- size_t total_len = FUT_SIZE(nbargs); \
- unsigned long *futargs = \
- fut_getstampedbuffer(FUT_CODE(CODE, nbargs), total_len);\
- *(futargs++) = (unsigned long)(P1); \
- *(futargs++) = (unsigned long)(P2); \
- *(futargs++) = (unsigned long)(P3); \
- *(futargs++) = (unsigned long)(P4); \
- *(futargs++) = (unsigned long)(P5); \
- snprintf((char *)futargs, len, "%s", str); \
- ((char *)futargs)[len - 1] = '\0'; \
- _STARPU_FUT_COMMIT(total_len); \
- } \
- } while (0);
- #endif
- #ifdef FUT_DO_PROBE6STR
- #define _STARPU_FUT_DO_PROBE6STR(CODE, P1, P2, P3, P4, P5, P6, str) FUT_DO_PROBE6STR(CODE, P1, P2, P3, P4, P5, P6, str)
- #else
- #define _STARPU_FUT_DO_PROBE6STR(CODE, P1, P2, P3, P4, P5, P6, str) \
- do { \
- if(fut_active) { \
- /* No more than FXT_MAX_PARAMS args are allowed */ \
- /* we add a \0 just in case ... */ \
- size_t len = STARPU_MIN(strlen(str)+1, (FXT_MAX_PARAMS - 6)*sizeof(unsigned long));\
- unsigned nbargs_str = (len + sizeof(unsigned long) - 1)/(sizeof(unsigned long));\
- unsigned nbargs = 6 + nbargs_str; \
- size_t total_len = FUT_SIZE(nbargs); \
- unsigned long *futargs = \
- fut_getstampedbuffer(FUT_CODE(CODE, nbargs), total_len);\
- *(futargs++) = (unsigned long)(P1); \
- *(futargs++) = (unsigned long)(P2); \
- *(futargs++) = (unsigned long)(P3); \
- *(futargs++) = (unsigned long)(P4); \
- *(futargs++) = (unsigned long)(P5); \
- *(futargs++) = (unsigned long)(P6); \
- snprintf((char *)futargs, len, "%s", str); \
- ((char *)futargs)[len - 1] = '\0'; \
- _STARPU_FUT_COMMIT(total_len); \
- } \
- } while (0);
- #endif
- #ifdef FUT_DO_PROBE7STR
- #define _STARPU_FUT_DO_PROBE7STR(CODE, P1, P2, P3, P4, P5, P6, P7, str) FUT_DO_PROBE7STR(CODE, P1, P2, P3, P4, P5, P6, P7, str)
- #else
- #define _STARPU_FUT_DO_PROBE7STR(CODE, P1, P2, P3, P4, P5, P6, P7, str) \
- do { \
- if(fut_active) { \
- /* No more than FXT_MAX_PARAMS args are allowed */ \
- /* we add a \0 just in case ... */ \
- size_t len = STARPU_MIN(strlen(str)+1, (FXT_MAX_PARAMS - 7)*sizeof(unsigned long));\
- unsigned nbargs_str = (len + sizeof(unsigned long) - 1)/(sizeof(unsigned long));\
- unsigned nbargs = 7 + nbargs_str; \
- size_t total_len = FUT_SIZE(nbargs); \
- unsigned long *futargs = \
- fut_getstampedbuffer(FUT_CODE(CODE, nbargs), total_len);\
- *(futargs++) = (unsigned long)(P1); \
- *(futargs++) = (unsigned long)(P2); \
- *(futargs++) = (unsigned long)(P3); \
- *(futargs++) = (unsigned long)(P4); \
- *(futargs++) = (unsigned long)(P5); \
- *(futargs++) = (unsigned long)(P6); \
- *(futargs++) = (unsigned long)(P7); \
- snprintf((char *)futargs, len, "%s", str); \
- ((char *)futargs)[len - 1] = '\0'; \
- _STARPU_FUT_COMMIT(total_len); \
- } \
- } while (0);
- #endif
- #ifndef FUT_RAW_PROBE7
- #define FUT_RAW_PROBE7(CODE,P1,P2,P3,P4,P5,P6,P7) do { \
- if(fut_active) { \
- unsigned long *__args __attribute__((unused))= \
- fut_getstampedbuffer(CODE, \
- FUT_SIZE(7)); \
- *(__args++)=(unsigned long)(P1);*(__args++)=(unsigned long)(P2);*(__args++)=(unsigned long)(P3);*(__args++)=(unsigned long)(P4);*(__args++)=(unsigned long)(P5);*(__args++)=(unsigned long)(P6);*(__args++)=(unsigned long)(P7); \
- _STARPU_FUT_COMMIT(FUT_SIZE(7)); \
- } \
- } while (0)
- #endif
- #ifndef FUT_DO_PROBE7
- #define FUT_DO_PROBE7(CODE,P1,P2,P3,P4,P5,P6,P7) do { \
- FUT_RAW_PROBE7(FUT_CODE(CODE, 7),P1,P2,P3,P4,P5,P6,P7); \
- } while (0)
- #endif
- /* workerkind = _STARPU_FUT_CPU_KEY for instance */
- #define _STARPU_TRACE_NEW_MEM_NODE(nodeid) \
- FUT_DO_PROBE2(_STARPU_FUT_NEW_MEM_NODE, nodeid, _starpu_gettid());
- #define _STARPU_TRACE_WORKER_INIT_START(workerkind, workerid, devid, memnode) \
- FUT_DO_PROBE5(_STARPU_FUT_WORKER_INIT_START, workerkind, workerid, devid, memnode, _starpu_gettid());
- #define _STARPU_TRACE_WORKER_INIT_END(workerid) \
- FUT_DO_PROBE2(_STARPU_FUT_WORKER_INIT_END, _starpu_gettid(), (workerid));
- #define _STARPU_TRACE_START_CODELET_BODY(job, nimpl, archtype, workerid) \
- do { \
- const char *model_name = _starpu_job_get_model_name((job)); \
- if (model_name) \
- { \
- /* we include the symbol name */ \
- _STARPU_FUT_DO_PROBE4STR(_STARPU_FUT_START_CODELET_BODY, (job), ((job)->task)->sched_ctx, workerid, 1, model_name); \
- } \
- else { \
- FUT_DO_PROBE4(_STARPU_FUT_START_CODELET_BODY, (job), ((job)->task)->sched_ctx, workerid, 0); \
- } \
- { \
- if ((job)->task->cl) \
- { \
- const int __nbuffers = (job)->task->cl->nbuffers; \
- char __buf[FXT_MAX_PARAMS*sizeof(long)]; \
- int __i; \
- for (__i = 0; __i < __nbuffers; __i++) \
- { \
- starpu_data_handle_t __handle = STARPU_TASK_GET_HANDLE((job)->task, __i); \
- void *__interface = _STARPU_TASK_GET_INTERFACES((job)->task)[__i]; \
- if (__handle->ops->describe) \
- { \
- __handle->ops->describe(__interface, __buf, sizeof(__buf)); \
- _STARPU_FUT_DO_PROBE1STR(_STARPU_FUT_CODELET_DATA, workerid, __buf); \
- } \
- } \
- } \
- const size_t __job_size = _starpu_job_get_data_size((job)->task->cl?(job)->task->cl->model:NULL, archtype, nimpl, (job)); \
- const uint32_t __job_hash = _starpu_compute_buffers_footprint((job)->task->cl?(job)->task->cl->model:NULL, archtype, nimpl, (job));\
- FUT_DO_PROBE6(_STARPU_FUT_CODELET_DETAILS, (job), ((job)->task)->sched_ctx, __job_size, __job_hash, (job)->task->tag_id, workerid); \
- } \
- } while(0);
- #define _STARPU_TRACE_END_CODELET_BODY(job, nimpl, archtype, workerid) \
- do { \
- const size_t job_size = _starpu_job_get_data_size((job)->task->cl?(job)->task->cl->model:NULL, archtype, nimpl, (job)); \
- const uint32_t job_hash = _starpu_compute_buffers_footprint((job)->task->cl?(job)->task->cl->model:NULL, archtype, nimpl, (job));\
- FUT_DO_PROBE7(_STARPU_FUT_END_CODELET_BODY, (job), (job_size), (job_hash), (archtype)->type, (archtype)->devid, (archtype)->ncore, workerid); \
- } while(0);
- #define _STARPU_TRACE_START_EXECUTING() \
- FUT_DO_PROBE1(_STARPU_FUT_START_EXECUTING, _starpu_gettid());
- #define _STARPU_TRACE_END_EXECUTING() \
- FUT_DO_PROBE1(_STARPU_FUT_END_EXECUTING, _starpu_gettid());
- #define _STARPU_TRACE_START_CALLBACK(job) \
- FUT_DO_PROBE2(_STARPU_FUT_START_CALLBACK, job, _starpu_gettid());
- #define _STARPU_TRACE_END_CALLBACK(job) \
- FUT_DO_PROBE2(_STARPU_FUT_END_CALLBACK, job, _starpu_gettid());
- #define _STARPU_TRACE_JOB_PUSH(task, prio) \
- FUT_DO_PROBE3(_STARPU_FUT_JOB_PUSH, task, prio, _starpu_gettid());
- #define _STARPU_TRACE_JOB_POP(task, prio) \
- FUT_DO_PROBE3(_STARPU_FUT_JOB_POP, task, prio, _starpu_gettid());
- #define _STARPU_TRACE_UPDATE_TASK_CNT(counter) \
- FUT_DO_PROBE2(_STARPU_FUT_UPDATE_TASK_CNT, counter, _starpu_gettid())
- #define _STARPU_TRACE_START_FETCH_INPUT(job) \
- FUT_DO_PROBE2(_STARPU_FUT_START_FETCH_INPUT, job, _starpu_gettid());
- #define _STARPU_TRACE_END_FETCH_INPUT(job) \
- FUT_DO_PROBE2(_STARPU_FUT_END_FETCH_INPUT, job, _starpu_gettid());
- #define _STARPU_TRACE_START_PUSH_OUTPUT(job) \
- FUT_DO_PROBE2(_STARPU_FUT_START_PUSH_OUTPUT, job, _starpu_gettid());
- #define _STARPU_TRACE_END_PUSH_OUTPUT(job) \
- FUT_DO_PROBE2(_STARPU_FUT_END_PUSH_OUTPUT, job, _starpu_gettid());
- #define _STARPU_TRACE_TAG(tag, job) \
- FUT_DO_PROBE2(_STARPU_FUT_TAG, tag, (job)->job_id)
- #define _STARPU_TRACE_TAG_DEPS(tag_child, tag_father) \
- FUT_DO_PROBE2(_STARPU_FUT_TAG_DEPS, tag_child, tag_father)
- #define _STARPU_TRACE_TASK_DEPS(job_prev, job_succ) \
- FUT_DO_PROBE2(_STARPU_FUT_TASK_DEPS, (job_prev)->job_id, (job_succ)->job_id)
- #define _STARPU_TRACE_GHOST_TASK_DEPS(ghost_prev_id, job_succ_id) \
- FUT_DO_PROBE2(_STARPU_FUT_TASK_DEPS, (ghost_prev_id), (job_succ_id))
- #define _STARPU_TRACE_TASK_DONE(job) \
- do { \
- unsigned exclude_from_dag = (job)->exclude_from_dag; \
- const char *model_name = _starpu_job_get_model_name((job)); \
- if (model_name) \
- { \
- _STARPU_FUT_DO_PROBE4STR(_STARPU_FUT_TASK_DONE, (job)->job_id, _starpu_gettid(), (long unsigned)exclude_from_dag, 1, model_name);\
- } \
- else { \
- FUT_DO_PROBE4(_STARPU_FUT_TASK_DONE, (job)->job_id, _starpu_gettid(), (long unsigned)exclude_from_dag, 0);\
- } \
- } while(0);
- #define _STARPU_TRACE_TAG_DONE(tag) \
- do { \
- struct _starpu_job *job = (tag)->job; \
- const char *model_name = _starpu_job_get_model_name((job)); \
- if (model_name) \
- { \
- _STARPU_FUT_DO_PROBE3STR(_STARPU_FUT_TAG_DONE, (tag)->id, _starpu_gettid(), 1, model_name); \
- } \
- else { \
- FUT_DO_PROBE3(_STARPU_FUT_TAG_DONE, (tag)->id, _starpu_gettid(), 0);\
- } \
- } while(0);
- #define _STARPU_TRACE_DATA_COPY(src_node, dst_node, size) \
- FUT_DO_PROBE3(_STARPU_FUT_DATA_COPY, src_node, dst_node, size)
- #define _STARPU_TRACE_START_DRIVER_COPY(src_node, dst_node, size, com_id) \
- FUT_DO_PROBE4(_STARPU_FUT_START_DRIVER_COPY, src_node, dst_node, size, com_id)
- #define _STARPU_TRACE_END_DRIVER_COPY(src_node, dst_node, size, com_id) \
- FUT_DO_PROBE4(_STARPU_FUT_END_DRIVER_COPY, src_node, dst_node, size, com_id)
- #define _STARPU_TRACE_START_DRIVER_COPY_ASYNC(src_node, dst_node) \
- FUT_DO_PROBE2(_STARPU_FUT_START_DRIVER_COPY_ASYNC, src_node, dst_node)
- #define _STARPU_TRACE_END_DRIVER_COPY_ASYNC(src_node, dst_node) \
- FUT_DO_PROBE2(_STARPU_FUT_END_DRIVER_COPY_ASYNC, src_node, dst_node)
- #define _STARPU_TRACE_WORK_STEALING(empty_q, victim_q) \
- FUT_DO_PROBE2(_STARPU_FUT_WORK_STEALING, empty_q, victim_q)
- #define _STARPU_TRACE_WORKER_DEINIT_START \
- FUT_DO_PROBE1(_STARPU_FUT_WORKER_DEINIT_START, _starpu_gettid());
- #define _STARPU_TRACE_WORKER_DEINIT_END(workerkind) \
- FUT_DO_PROBE2(_STARPU_FUT_WORKER_DEINIT_END, workerkind, _starpu_gettid());
- #define _STARPU_TRACE_WORKER_SCHEDULING_START \
- FUT_DO_PROBE1(_STARPU_FUT_WORKER_SCHEDULING_START, _starpu_gettid());
- #define _STARPU_TRACE_WORKER_SCHEDULING_END \
- FUT_DO_PROBE1(_STARPU_FUT_WORKER_SCHEDULING_END, _starpu_gettid());
- #define _STARPU_TRACE_WORKER_SCHEDULING_PUSH \
- FUT_DO_PROBE1(_STARPU_FUT_WORKER_SCHEDULING_PUSH, _starpu_gettid());
- #define _STARPU_TRACE_WORKER_SCHEDULING_POP \
- FUT_DO_PROBE1(_STARPU_FUT_WORKER_SCHEDULING_POP, _starpu_gettid());
- #define _STARPU_TRACE_WORKER_SLEEP_START \
- FUT_DO_PROBE1(_STARPU_FUT_WORKER_SLEEP_START, _starpu_gettid());
- #define _STARPU_TRACE_WORKER_SLEEP_END \
- FUT_DO_PROBE1(_STARPU_FUT_WORKER_SLEEP_END, _starpu_gettid());
- #define _STARPU_TRACE_USER_DEFINED_START \
- FUT_DO_PROBE1(_STARPU_FUT_USER_DEFINED_START, _starpu_gettid());
- #define _STARPU_TRACE_USER_DEFINED_END \
- FUT_DO_PROBE1(_STARPU_FUT_USER_DEFINED_END, _starpu_gettid());
- #define _STARPU_TRACE_START_ALLOC(memnode, size) \
- FUT_DO_PROBE3(_STARPU_FUT_START_ALLOC, memnode, _starpu_gettid(), size);
-
- #define _STARPU_TRACE_END_ALLOC(memnode) \
- FUT_DO_PROBE2(_STARPU_FUT_END_ALLOC, memnode, _starpu_gettid());
- #define _STARPU_TRACE_START_ALLOC_REUSE(memnode, size) \
- FUT_DO_PROBE3(_STARPU_FUT_START_ALLOC_REUSE, memnode, _starpu_gettid(), size);
-
- #define _STARPU_TRACE_END_ALLOC_REUSE(memnode) \
- FUT_DO_PROBE2(_STARPU_FUT_END_ALLOC_REUSE, memnode, _starpu_gettid());
-
- #define _STARPU_TRACE_START_FREE(memnode, size) \
- FUT_DO_PROBE3(_STARPU_FUT_START_FREE, memnode, _starpu_gettid(), size);
-
- #define _STARPU_TRACE_END_FREE(memnode) \
- FUT_DO_PROBE2(_STARPU_FUT_END_FREE, memnode, _starpu_gettid());
- #define _STARPU_TRACE_START_WRITEBACK(memnode) \
- FUT_DO_PROBE2(_STARPU_FUT_START_WRITEBACK, memnode, _starpu_gettid());
-
- #define _STARPU_TRACE_END_WRITEBACK(memnode) \
- FUT_DO_PROBE2(_STARPU_FUT_END_WRITEBACK, memnode, _starpu_gettid());
- #define _STARPU_TRACE_START_MEMRECLAIM(memnode,is_prefetch) \
- FUT_DO_PROBE3(_STARPU_FUT_START_MEMRECLAIM, memnode, is_prefetch, _starpu_gettid());
-
- #define _STARPU_TRACE_END_MEMRECLAIM(memnode, is_prefetch) \
- FUT_DO_PROBE3(_STARPU_FUT_END_MEMRECLAIM, memnode, is_prefetch, _starpu_gettid());
-
- /* We skip these events becasue they are called so often that they cause FxT to
- * fail and make the overall trace unreadable anyway. */
- #define _STARPU_TRACE_START_PROGRESS(memnode) \
- do {} while (0)
- // FUT_DO_PROBE2(_STARPU_FUT_START_PROGRESS, memnode, _starpu_gettid());
- #define _STARPU_TRACE_END_PROGRESS(memnode) \
- do {} while (0)
- //FUT_DO_PROBE2(_STARPU_FUT_END_PROGRESS, memnode, _starpu_gettid());
-
- #define _STARPU_TRACE_USER_EVENT(code) \
- FUT_DO_PROBE2(_STARPU_FUT_USER_EVENT, code, _starpu_gettid());
- #define _STARPU_TRACE_SET_PROFILING(status) \
- FUT_DO_PROBE2(_STARPU_FUT_SET_PROFILING, status, _starpu_gettid());
- #define _STARPU_TRACE_TASK_WAIT_FOR_ALL \
- FUT_DO_PROBE0(_STARPU_FUT_TASK_WAIT_FOR_ALL)
- #define _STARPU_TRACE_EVENT(S) \
- FUT_DO_PROBESTR(_STARPU_FUT_EVENT,S)
- #define _STARPU_TRACE_THREAD_EVENT(S) \
- _STARPU_FUT_DO_PROBE1STR(_STARPU_FUT_THREAD_EVENT, _starpu_gettid(), S)
- #define _STARPU_TRACE_HYPERVISOR_BEGIN() \
- FUT_DO_PROBE1(_STARPU_FUT_HYPERVISOR_BEGIN, _starpu_gettid());
- #define _STARPU_TRACE_HYPERVISOR_END() \
- FUT_DO_PROBE1(_STARPU_FUT_HYPERVISOR_END, _starpu_gettid());
- #ifdef STARPU_FXT_LOCK_TRACES
- #define _STARPU_TRACE_LOCKING_MUTEX() do { \
- const char *file; \
- file = strrchr(__FILE__,'/') + 1; \
- _STARPU_FUT_DO_PROBE2STR(_STARPU_FUT_LOCKING_MUTEX,__LINE__,_starpu_gettid(),file); \
- } while (0)
- #define _STARPU_TRACE_MUTEX_LOCKED() do { \
- const char *file; \
- file = strrchr(__FILE__,'/') + 1; \
- _STARPU_FUT_DO_PROBE2STR(_STARPU_FUT_MUTEX_LOCKED,__LINE__,_starpu_gettid(),file); \
- } while(0)
- #define _STARPU_TRACE_UNLOCKING_MUTEX() do { \
- const char *file; \
- file = strrchr(__FILE__,'/') + 1; \
- _STARPU_FUT_DO_PROBE2STR(_STARPU_FUT_UNLOCKING_MUTEX,__LINE__,_starpu_gettid(),file); \
- } while(0)
- #define _STARPU_TRACE_MUTEX_UNLOCKED() do {\
- const char *file; \
- file = strrchr(__FILE__,'/') + 1; \
- _STARPU_FUT_DO_PROBE2STR(_STARPU_FUT_MUTEX_UNLOCKED,__LINE__,_starpu_gettid(),file); \
- } while(0)
- #define _STARPU_TRACE_TRYLOCK_MUTEX() do { \
- const char *file; \
- file = strrchr(__FILE__,'/') + 1; \
- _STARPU_FUT_DO_PROBE2STR(_STARPU_FUT_TRYLOCK_MUTEX,__LINE__,_starpu_gettid(),file); \
- } while(0)
- #define _STARPU_TRACE_RDLOCKING_RWLOCK() do { \
- const char *file; \
- file = strrchr(__FILE__,'/') + 1; \
- _STARPU_FUT_DO_PROBE2STR(_STARPU_FUT_RDLOCKING_RWLOCK,__LINE__,_starpu_gettid(),file); \
- } while(0)
- #define _STARPU_TRACE_RWLOCK_RDLOCKED() do { \
- const char *file; \
- file = strrchr(__FILE__,'/') + 1; \
- _STARPU_FUT_DO_PROBE2STR(_STARPU_FUT_RWLOCK_RDLOCKED,__LINE__,_starpu_gettid(),file); \
- } while(0)
- #define _STARPU_TRACE_WRLOCKING_RWLOCK() do { \
- const char *file; \
- file = strrchr(__FILE__,'/') + 1; \
- _STARPU_FUT_DO_PROBE2STR(_STARPU_FUT_WRLOCKING_RWLOCK,__LINE__,_starpu_gettid(),file); \
- } while(0)
- #define _STARPU_TRACE_RWLOCK_WRLOCKED() do { \
- const char *file; \
- file = strrchr(__FILE__,'/') + 1; \
- _STARPU_FUT_DO_PROBE2STR(_STARPU_FUT_RWLOCK_WRLOCKED,__LINE__,_starpu_gettid(),file); \
- } while(0)
- #define _STARPU_TRACE_UNLOCKING_RWLOCK() do { \
- const char *file; \
- file = strrchr(__FILE__,'/') + 1; \
- _STARPU_FUT_DO_PROBE2STR(_STARPU_FUT_UNLOCKING_RWLOCK,__LINE__,_starpu_gettid(),file); \
- } while(0)
- #define _STARPU_TRACE_RWLOCK_UNLOCKED() do { \
- const char *file; \
- file = strrchr(__FILE__,'/') + 1; \
- _STARPU_FUT_DO_PROBE2STR(_STARPU_FUT_RWLOCK_UNLOCKED,__LINE__,_starpu_gettid(),file); \
- } while(0)
- #define STARPU_TRACE_SPINLOCK_CONDITITION (starpu_worker_get_type(starpu_worker_get_id()) == STARPU_CUDA_WORKER)
- #define _STARPU_TRACE_LOCKING_SPINLOCK() do {\
- if (STARPU_TRACE_SPINLOCK_CONDITITION) { \
- const char *file; \
- file = strrchr(__FILE__,'/') + 1; \
- _STARPU_FUT_DO_PROBE2STR(_STARPU_FUT_LOCKING_SPINLOCK,__LINE__,_starpu_gettid(),file); \
- } \
- } while(0)
- #define _STARPU_TRACE_SPINLOCK_LOCKED() do { \
- if (STARPU_TRACE_SPINLOCK_CONDITITION) { \
- const char *file; \
- file = strrchr(__FILE__,'/') + 1; \
- _STARPU_FUT_DO_PROBE2STR(_STARPU_FUT_SPINLOCK_LOCKED,__LINE__,_starpu_gettid(),file); \
- } \
- } while(0)
- #define _STARPU_TRACE_UNLOCKING_SPINLOCK() do { \
- if (STARPU_TRACE_SPINLOCK_CONDITITION) { \
- const char *file; \
- file = strrchr(__FILE__,'/') + 1; \
- _STARPU_FUT_DO_PROBE2STR(_STARPU_FUT_UNLOCKING_SPINLOCK,__LINE__,_starpu_gettid(),file); \
- } \
- } while(0)
- #define _STARPU_TRACE_SPINLOCK_UNLOCKED() do { \
- if (STARPU_TRACE_SPINLOCK_CONDITITION) { \
- const char *file; \
- file = strrchr(__FILE__,'/') + 1; \
- _STARPU_FUT_DO_PROBE2STR(_STARPU_FUT_SPINLOCK_UNLOCKED,__LINE__,_starpu_gettid(),file); \
- } \
- } while(0)
- #define _STARPU_TRACE_TRYLOCK_SPINLOCK() do { \
- if (STARPU_TRACE_SPINLOCK_CONDITITION) { \
- const char *file; \
- file = strrchr(__FILE__,'/') + 1; \
- _STARPU_FUT_DO_PROBE2STR(_STARPU_FUT_TRYLOCK_SPINLOCK,__LINE__,_starpu_gettid(),file); \
- } \
- } while(0)
- #define _STARPU_TRACE_COND_WAIT_BEGIN() do { \
- const char *file; \
- file = strrchr(__FILE__,'/') + 1; \
- _STARPU_FUT_DO_PROBE2STR(_STARPU_FUT_COND_WAIT_BEGIN,__LINE__,_starpu_gettid(),file); \
- } while(0)
- #define _STARPU_TRACE_COND_WAIT_END() do { \
- const char *file; \
- file = strrchr(__FILE__,'/') + 1; \
- _STARPU_FUT_DO_PROBE2STR(_STARPU_FUT_COND_WAIT_END,__LINE__,_starpu_gettid(),file); \
- } while(0)
- #define _STARPU_TRACE_BARRIER_WAIT_BEGIN() do { \
- const char *file; \
- file = strrchr(__FILE__,'/') + 1; \
- _STARPU_FUT_DO_PROBE2STR(_STARPU_FUT_BARRIER_WAIT_BEGIN,__LINE__,_starpu_gettid(),file); \
- } while(0)
- #define _STARPU_TRACE_BARRIER_WAIT_END() do { \
- const char *file; \
- file = strrchr(__FILE__,'/') + 1; \
- _STARPU_FUT_DO_PROBE2STR(_STARPU_FUT_BARRIER_WAIT_END,__LINE__,_starpu_gettid(),file); \
- } while(0)
- #else // !STARPU_FXT_LOCK_TRACES
- #define _STARPU_TRACE_LOCKING_MUTEX() do {} while(0)
- #define _STARPU_TRACE_MUTEX_LOCKED() do {} while(0)
- #define _STARPU_TRACE_UNLOCKING_MUTEX() do {} while(0)
- #define _STARPU_TRACE_MUTEX_UNLOCKED() do {} while(0)
- #define _STARPU_TRACE_TRYLOCK_MUTEX() do {} while(0)
- #define _STARPU_TRACE_RDLOCKING_RWLOCK() do {} while(0)
- #define _STARPU_TRACE_RWLOCK_RDLOCKED() do {} while(0)
- #define _STARPU_TRACE_WRLOCKING_RWLOCK() do {} while(0)
- #define _STARPU_TRACE_RWLOCK_WRLOCKED() do {} while(0)
- #define _STARPU_TRACE_UNLOCKING_RWLOCK() do {} while(0)
- #define _STARPU_TRACE_RWLOCK_UNLOCKED() do {} while(0)
- #define _STARPU_TRACE_LOCKING_SPINLOCK() do {} while(0)
- #define _STARPU_TRACE_SPINLOCK_LOCKED() do {} while(0)
- #define _STARPU_TRACE_UNLOCKING_SPINLOCK() do {} while(0)
- #define _STARPU_TRACE_SPINLOCK_UNLOCKED() do {} while(0)
- #define _STARPU_TRACE_TRYLOCK_SPINLOCK() do {} while(0)
- #define _STARPU_TRACE_COND_WAIT_BEGIN() do {} while(0)
- #define _STARPU_TRACE_COND_WAIT_END() do {} while(0)
- #define _STARPU_TRACE_BARRIER_WAIT_BEGIN() do {} while(0)
- #define _STARPU_TRACE_BARRIER_WAIT_END() do {} while(0)
- #endif // STARPU_FXT_LOCK_TRACES
- #define _STARPU_TRACE_MEMORY_FULL(size) \
- FUT_DO_PROBE2(_STARPU_FUT_MEMORY_FULL,size,_starpu_gettid());
- #define _STARPU_TRACE_DATA_LOAD(workerid,size) \
- FUT_DO_PROBE2(_STARPU_FUT_DATA_LOAD, workerid, size);
- #define _STARPU_TRACE_START_UNPARTITION(handle, memnode) \
- FUT_DO_PROBE3(_STARPU_FUT_START_UNPARTITION, memnode, _starpu_gettid(), handle);
-
- #define _STARPU_TRACE_END_UNPARTITION(handle, memnode) \
- FUT_DO_PROBE3(_STARPU_FUT_END_UNPARTITION, memnode, _starpu_gettid(), handle);
- #else // !STARPU_USE_FXT
- /* Dummy macros in case FxT is disabled */
- #define _STARPU_TRACE_NEW_MEM_NODE(nodeid) do {} while(0)
- #define _STARPU_TRACE_WORKER_INIT_START(a,b,c) do {} while(0)
- #define _STARPU_TRACE_WORKER_INIT_END(workerid) do {} while(0)
- #define _STARPU_TRACE_START_CODELET_BODY(job, nimpl, archtype, workerid) do {} while(0)
- #define _STARPU_TRACE_END_CODELET_BODY(job, nimpl, a, workerid) do {} while(0)
- #define _STARPU_TRACE_START_EXECUTING() do {} while(0)
- #define _STARPU_TRACE_END_EXECUTING() do {} while(0)
- #define _STARPU_TRACE_START_CALLBACK(job) do {} while(0)
- #define _STARPU_TRACE_END_CALLBACK(job) do {} while(0)
- #define _STARPU_TRACE_JOB_PUSH(task, prio) do {} while(0)
- #define _STARPU_TRACE_JOB_POP(task, prio) do {} while(0)
- #define _STARPU_TRACE_UPDATE_TASK_CNT(counter) do {} while(0)
- #define _STARPU_TRACE_START_FETCH_INPUT(job) do {} while(0)
- #define _STARPU_TRACE_END_FETCH_INPUT(job) do {} while(0)
- #define _STARPU_TRACE_START_PUSH_OUTPUT(job) do {} while(0)
- #define _STARPU_TRACE_END_PUSH_OUTPUT(job) do {} while(0)
- #define _STARPU_TRACE_TAG(tag, job) do {} while(0)
- #define _STARPU_TRACE_TAG_DEPS(a, b) do {} while(0)
- #define _STARPU_TRACE_TASK_DEPS(a, b) do {} while(0)
- #define _STARPU_TRACE_GHOST_TASK_DEPS(a, b) do {} while(0)
- #define _STARPU_TRACE_TASK_DONE(a) do {} while(0)
- #define _STARPU_TRACE_TAG_DONE(a) do {} while(0)
- #define _STARPU_TRACE_DATA_COPY(a, b, c) do {} while(0)
- #define _STARPU_TRACE_START_DRIVER_COPY(a,b,c,d) do {} while(0)
- #define _STARPU_TRACE_END_DRIVER_COPY(a,b,c,d) do {} while(0)
- #define _STARPU_TRACE_START_DRIVER_COPY_ASYNC(a,b) do {} while(0)
- #define _STARPU_TRACE_END_DRIVER_COPY_ASYNC(a,b) do {} while(0)
- #define _STARPU_TRACE_WORK_STEALING(a, b) do {} while(0)
- #define _STARPU_TRACE_WORKER_DEINIT_START do {} while(0)
- #define _STARPU_TRACE_WORKER_DEINIT_END(a) do {} while(0)
- #define _STARPU_TRACE_WORKER_SCHEDULING_START do {} while(0)
- #define _STARPU_TRACE_WORKER_SCHEDULING_END do {} while(0)
- #define _STARPU_TRACE_WORKER_SCHEDULING_PUSH do {} while(0)
- #define _STARPU_TRACE_WORKER_SCHEDULING_POP do {} while(0)
- #define _STARPU_TRACE_WORKER_SLEEP_START do {} while(0)
- #define _STARPU_TRACE_WORKER_SLEEP_END do {} while(0)
- #define _STARPU_TRACE_USER_DEFINED_START do {} while(0)
- #define _STARPU_TRACE_USER_DEFINED_END do {} while(0)
- #define _STARPU_TRACE_START_ALLOC(memnode, size) do {} while(0)
- #define _STARPU_TRACE_END_ALLOC(memnode) do {} while(0)
- #define _STARPU_TRACE_START_ALLOC_REUSE(a, size) do {} while(0)
- #define _STARPU_TRACE_END_ALLOC_REUSE(a) do {} while(0)
- #define _STARPU_TRACE_START_FREE(memnode, size) do {} while(0)
- #define _STARPU_TRACE_END_FREE(memnode) do {} while(0)
- #define _STARPU_TRACE_START_WRITEBACK(memnode) do {} while(0)
- #define _STARPU_TRACE_END_WRITEBACK(memnode) do {} while(0)
- #define _STARPU_TRACE_START_MEMRECLAIM(memnode,is_prefetch) do {} while(0)
- #define _STARPU_TRACE_END_MEMRECLAIM(memnode,is_prefetch) do {} while(0)
- #define _STARPU_TRACE_START_PROGRESS(memnode) do {} while(0)
- #define _STARPU_TRACE_END_PROGRESS(memnode) do {} while(0)
- #define _STARPU_TRACE_USER_EVENT(code) do {} while(0)
- #define _STARPU_TRACE_SET_PROFILING(status) do {} while(0)
- #define _STARPU_TRACE_TASK_WAIT_FOR_ALL do {} while(0)
- #define _STARPU_TRACE_EVENT(S) do {} while(0)
- #define _STARPU_TRACE_THREAD_EVENT(S) do {} while(0)
- #define _STARPU_TRACE_LOCKING_MUTEX() do {} while(0)
- #define _STARPU_TRACE_MUTEX_LOCKED() do {} while(0)
- #define _STARPU_TRACE_UNLOCKING_MUTEX() do {} while(0)
- #define _STARPU_TRACE_MUTEX_UNLOCKED() do {} while(0)
- #define _STARPU_TRACE_TRYLOCK_MUTEX() do {} while(0)
- #define _STARPU_TRACE_RDLOCKING_RWLOCK() do {} while(0)
- #define _STARPU_TRACE_RWLOCK_RDLOCKED() do {} while(0)
- #define _STARPU_TRACE_WRLOCKING_RWLOCK() do {} while(0)
- #define _STARPU_TRACE_RWLOCK_WRLOCKED() do {} while(0)
- #define _STARPU_TRACE_UNLOCKING_RWLOCK() do {} while(0)
- #define _STARPU_TRACE_RWLOCK_UNLOCKED() do {} while(0)
- #define _STARPU_TRACE_LOCKING_SPINLOCK() do {} while(0)
- #define _STARPU_TRACE_SPINLOCK_LOCKED() do {} while(0)
- #define _STARPU_TRACE_UNLOCKING_SPINLOCK() do {} while(0)
- #define _STARPU_TRACE_SPINLOCK_UNLOCKED() do {} while(0)
- #define _STARPU_TRACE_TRYLOCK_SPINLOCK() do {} while(0)
- #define _STARPU_TRACE_COND_WAIT_BEGIN() do {} while(0)
- #define _STARPU_TRACE_COND_WAIT_END() do {} while(0)
- #define _STARPU_TRACE_BARRIER_WAIT_BEGIN() do {} while(0)
- #define _STARPU_TRACE_BARRIER_WAIT_END() do {} while(0)
- #define _STARPU_TRACE_MEMORY_FULL(size) do {} while(0)
- #define _STARPU_TRACE_DATA_LOAD(workerid,size) do {} while(0)
- #define _STARPU_TRACE_START_UNPARTITION(handle, memnode) do {} while(0)
- #define _STARPU_TRACE_END_UNPARTITION(handle, memnode) do {} while(0)
- #define _STARPU_TRACE_HYPERVISOR_BEGIN() do {} while(0)
- #define _STARPU_TRACE_HYPERVISOR_END() do {} while(0)
- #endif // STARPU_USE_FXT
- #endif // __FXT_H__
|