Go to the source code of this file.
◆ _DO_STUFF()
◆ _DUMMY()
| void _DUMMY |
( |
void * |
array | ) |
|
Definition at line 333 of file do_loops.c.
static double array[ARRAYSIZE]
◆ _FDO_FLOPS()
| void _FDO_FLOPS |
( |
int * |
n | ) |
|
◆ _FDO_FLUSH()
◆ _FDO_L1MISSES()
| void _FDO_L1MISSES |
( |
int * |
n | ) |
|
◆ _FDO_MISSES()
| void _FDO_MISSES |
( |
int * |
n, |
|
|
int * |
size |
|
) |
| |
Definition at line 166 of file do_loops.c.
void do_misses(int n, int bytes)
◆ _FDO_READS()
| void _FDO_READS |
( |
int * |
n | ) |
|
◆ do_flops()
◆ do_flush()
Definition at line 172 of file do_loops.c.
176 flush = (
int * ) malloc( ( 1024 * 1024 * 16 ) *
sizeof ( int ) );
181 for (
i = 0;
i < ( 1024 * 1024 * 16 );
i++ ) {
◆ do_l1misses()
| void do_l1misses |
( |
int |
n | ) |
|
Definition at line 220 of file do_loops.c.
void do_misses(int n, int bytes)
#define L1_MISS_BUFFER_SIZE_INTS
◆ do_misses()
| void do_misses |
( |
int |
n, |
|
|
int |
bytes |
|
) |
| |
Definition at line 120 of file do_loops.c.
122 register int i, j,
tmp =
buf_dummy, len = bytes / ( int )
sizeof (
int );
126 for ( j = 0; j < n; j++ ) {
127 for (
i = 0;
i < len;
i++ ) {
#define CACHE_FLUSH_BUFFER_SIZE_INTS
volatile int buf[CACHE_FLUSH_BUFFER_SIZE_INTS]
◆ do_reads()
Definition at line 19 of file do_loops.c.
26 fd =
open(
"/dev/zero", O_RDONLY );
28 perror(
"open(/dev/zero)" );
33 for (
i = 0;
i < n;
i++ ) {
37 perror(
"/dev/zero cannot be read" );
40 "/dev/zero cannot be read: only got %d bytes.\n",
ssize_t read(int fd, void *buf, size_t count)
int open(const char *pathname, int flags, mode_t mode)
volatile int buf[CACHE_FLUSH_BUFFER_SIZE_INTS]
◆ do_stuff()
Definition at line 256 of file do_loops.c.
258 static int loops = 0;
277 }
while (
i < loops );
void do_misses(int n, int bytes)
int gettimeofday(void *ptr1, void *ptr2)
◆ DO_STUFF()
◆ do_stuff_()
◆ do_stuff__()
◆ dummy()
| void dummy |
( |
void * |
array | ) |
|
Definition at line 306 of file do_loops.c.
static double array[ARRAYSIZE]
◆ DUMMY()
| void DUMMY |
( |
void * |
array | ) |
|
Definition at line 327 of file do_loops.c.
static double array[ARRAYSIZE]
◆ dummy_()
| void dummy_ |
( |
void * |
array | ) |
|
Definition at line 315 of file do_loops.c.
static double array[ARRAYSIZE]
◆ dummy__()
| void dummy__ |
( |
void * |
array | ) |
|
Definition at line 321 of file do_loops.c.
static double array[ARRAYSIZE]
◆ fdo_flops()
| void fdo_flops |
( |
int * |
n | ) |
|
◆ FDO_FLOPS()
| void FDO_FLOPS |
( |
int * |
n | ) |
|
◆ fdo_flops_()
| void fdo_flops_ |
( |
int * |
n | ) |
|
◆ fdo_flops__()
| void fdo_flops__ |
( |
int * |
n | ) |
|
◆ fdo_flush()
◆ FDO_FLUSH()
◆ fdo_flush_()
◆ fdo_flush__()
| void fdo_flush__ |
( |
void |
| ) |
|
◆ fdo_l1misses()
| void fdo_l1misses |
( |
int * |
n | ) |
|
◆ FDO_L1MISSES()
| void FDO_L1MISSES |
( |
int * |
n | ) |
|
◆ fdo_l1misses_()
| void fdo_l1misses_ |
( |
int * |
n | ) |
|
◆ fdo_l1misses__()
| void fdo_l1misses__ |
( |
int * |
n | ) |
|
◆ fdo_misses()
| void fdo_misses |
( |
int * |
n, |
|
|
int * |
size |
|
) |
| |
Definition at line 142 of file do_loops.c.
void do_misses(int n, int bytes)
◆ FDO_MISSES()
| void FDO_MISSES |
( |
int * |
n, |
|
|
int * |
size |
|
) |
| |
Definition at line 160 of file do_loops.c.
void do_misses(int n, int bytes)
◆ fdo_misses_()
| void fdo_misses_ |
( |
int * |
n, |
|
|
int * |
size |
|
) |
| |
Definition at line 148 of file do_loops.c.
void do_misses(int n, int bytes)
◆ fdo_misses__()
| void fdo_misses__ |
( |
int * |
n, |
|
|
int * |
size |
|
) |
| |
Definition at line 154 of file do_loops.c.
void do_misses(int n, int bytes)
◆ fdo_reads()
| void fdo_reads |
( |
int * |
n | ) |
|
◆ FDO_READS()
| void FDO_READS |
( |
int * |
n | ) |
|
◆ fdo_reads_()
| void fdo_reads_ |
( |
int * |
n | ) |
|
◆ fdo_reads__()
| void fdo_reads__ |
( |
int * |
n | ) |
|
◆ touch_dummy()
| void touch_dummy |
( |
double * |
array, |
|
|
int |
size |
|
) |
| |
Definition at line 343 of file do_loops.c.
347 for (
i = 0;
i < size;
i++,
tmp++ )
static double array[ARRAYSIZE]
◆ buf
◆ buf_dummy
| volatile int buf_dummy = 0 |
◆ flush
| volatile int* flush = NULL |
◆ flush_dummy
| volatile int flush_dummy = 0 |