#include <stdio.h>
#include <ctype.h>
#include <math.h>
#include <assert.h>
#include <time.h>
Go to the source code of this file.
Data Structures | |
| struct | util_timing_t |
| An encapsulation of a pair of u_int32_t's used to manipulate times. More... | |
Defines | |
| #define | rdmsr(msr, val1, val2) |
| #define | wrmsr(msr, val1, val2) |
| #define | rdtsc(low, high) __asm__ __volatile__("rdtsc" : "=a" (low), "=d" (high)) |
| #define | rdtscl(low) __asm__ __volatile__("rdtsc" : "=a" (low) : : "edx") |
| #define | rdtscll(val) __asm__ __volatile__("rdtsc" : "=A" (val)) |
| #define | write_tsc(val1, val2) wrmsr(0x10, val1, val2) |
| #define | rdpmc(counter, low, high) |
Typedefs | |
| typedef util_timing_t | util_timing_t |
Variables | |
| double | PROCESSOR_FREQUENCY |
Definition in file timing.h.
| #define rdmsr | ( | msr, | |||
| val1, | |||||
| val2 | ) |
| #define rdpmc | ( | counter, | |||
| low, | |||||
| high | ) |
| #define rdtsc | ( | low, | |||
| high | ) | __asm__ __volatile__("rdtsc" : "=a" (low), "=d" (high)) |
| #define rdtscl | ( | low | ) | __asm__ __volatile__("rdtsc" : "=a" (low) : : "edx") |
| #define rdtscll | ( | val | ) | __asm__ __volatile__("rdtsc" : "=A" (val)) |
| #define wrmsr | ( | msr, | |||
| val1, | |||||
| val2 | ) |
| typedef struct util_timing_t util_timing_t |
| double PROCESSOR_FREQUENCY |