Allow ev_qs to not have INDIR throttling (XCC)
[akaros.git] / tests / msr_cycling_vcores.c
index 6805c1a..9ea144f 100644 (file)
@@ -6,10 +6,15 @@
 
 #include <ros/resource.h>
 #include <parlib.h>
-#include <rstdio.h>
+#include <stdio.h>
 #include <vcore.h>
 #include <timing.h>
 #include <mcs.h>
+#include <uthread.h>
+
+#ifdef __sparc_v8__
+# define udelay(x) udelay((x)/2000)
+#endif
 
 mcs_barrier_t b;
 uint64_t begin = 0, end = 0;
@@ -55,6 +60,8 @@ void vcore_entry(void)
                        end = read_tsc();
                        printf("Took %llu usec (%llu nsec) to get my yielded cores back.\n",
                               udiff(begin, end), ndiff(begin, end));
+                       printf("[T]:010:%llu:%llu\n",
+                              udiff(begin, end), ndiff(begin, end));
                }
        }
        printf("We're screwed!\n");