Go to the documentation of this file.
19 #include <sys/prctl.h>
26 # define PR_TSC_ENABLE 1
27 # define PR_TSC_SIGSEGV 2
33 __asm__ __volatile__ (
"rdtsc" :
"=a" (lo),
"=d" (hi));
52 fprintf(stderr,
"FATAL ERROR, rdtsc() succeeded while disabled\n");
59 fprintf(stderr,
"FATAL ERROR, rdtsc() failed while enabled\n");
80 fprintf(stderr,
"[No further output means we're allright]\n");
82 for (
i=0;
i<n_tasks;
i++)
91 for (
i=0;
i<n_tasks;
i++)