|
@@ -136,6 +136,7 @@ void _starpu_fxt_register_thread(unsigned);
|
|
|
* by a string. */
|
|
|
#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));\
|
|
@@ -149,10 +150,12 @@ do { \
|
|
|
*(futargs++) = (unsigned long)(P3); \
|
|
|
snprintf((char *)futargs, len, "%s", str); \
|
|
|
((char *)futargs)[len - 1] = '\0'; \
|
|
|
+ } \
|
|
|
} while (0);
|
|
|
|
|
|
#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));\
|
|
@@ -167,10 +170,12 @@ do { \
|
|
|
*(futargs++) = (unsigned long)(P4); \
|
|
|
snprintf((char *)futargs, len, "%s", str); \
|
|
|
((char *)futargs)[len - 1] = '\0'; \
|
|
|
+ } \
|
|
|
} while (0);
|
|
|
|
|
|
#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));\
|
|
@@ -186,6 +191,7 @@ do { \
|
|
|
*(futargs++) = (unsigned long)(P5); \
|
|
|
snprintf((char *)futargs, len, "%s", str); \
|
|
|
((char *)futargs)[len - 1] = '\0'; \
|
|
|
+ } \
|
|
|
} while (0);
|
|
|
|
|
|
|