]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/commitdiff
Adding trace for job completion and start
authortelleriam <telleriam@35b4ef3e-fd22-0410-ab77-dab3279adceb>
Fri, 31 Aug 2007 17:35:59 +0000 (17:35 +0000)
committertelleriam <telleriam@35b4ef3e-fd22-0410-ab77-dab3279adceb>
Fri, 31 Aug 2007 17:35:59 +0000 (17:35 +0000)
git-svn-id: http://www.frescor.org/private/svn/frescor/frsh/trunk/include@673 35b4ef3e-fd22-0410-ab77-dab3279adceb

frsh_debug.h

index 8de63720c1607a4ef27873ec01dc766e5093b7d9..ac2ea22fcd837744b8429640654388c471e076eb 100644 (file)
@@ -79,6 +79,7 @@
 #include <stdarg.h> // for va_list, va_start and va_end
 #include "timespec_operations.h"
 #include "fosa_configuration_parameters.h" /* FOSA_CLOCK_REALTIME */
+#include "fosa_clocks_and_timers.h"
 
 // Tune the following FLAGS to select the debugging messages to be generated
 #define FRSH_TRACE_CALLBACKS false
@@ -87,6 +88,7 @@
 #define FRSH_TRACE_TIMEDWAIT false
 #define FRSH_TRACE_SPORADIC_SERVER false
 #define FRSH_TRACE_ROUND_ROBIN false
+#define FRSH_TRACE_BOUNDED_JOB false
 
 #define FRSH_TRACE_THREAD_INDEX false
 #define FRSH_TRACE_VRES_INDEX false
@@ -115,6 +117,15 @@ static inline long int FRSH_GET_TIMESTAMP_MSECS()
     return result;
 }
 
+static inline long int FRSH_TIMESPEC_TO_RELATIVE_MSECS(const struct timespec *tspec)
+{
+    long int time_msecs = -1;
+
+    timespec2msec(tspec, &time_msecs);
+
+    return time_msecs - frsh_trace_init_timemsec;
+}
+
 static void inline FRSH_TRACE(bool is_active, const char *format, ...)
 {
     va_list args;