Linux Kernel
3.7.1
|
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <inttypes.h>
#include <sys/prctl.h>
#include <linux/prctl.h>
Go to the source code of this file.
Macros | |
#define | PR_GET_TSC 25 |
#define | PR_SET_TSC 26 |
#define | PR_TSC_ENABLE 1 /* allow the use of the timestamp counter */ |
#define | PR_TSC_SIGSEGV 2 /* throw a SIGSEGV instead of reading the TSC */ |
Functions | |
uint64_t | rdtsc () |
void | sigsegv_cb (int sig) |
int | main (int argc, char **argv) |
Variables | |
const char * | tsc_names [] |
#define PR_GET_TSC 25 |
Definition at line 19 of file disable-tsc-test.c.
#define PR_SET_TSC 26 |
Definition at line 20 of file disable-tsc-test.c.
Definition at line 21 of file disable-tsc-test.c.
Definition at line 22 of file disable-tsc-test.c.
Definition at line 59 of file disable-tsc-test.c.
Definition at line 32 of file disable-tsc-test.c.
Definition at line 39 of file disable-tsc-test.c.
Definition at line 25 of file disable-tsc-test.c.