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