Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
mem-memcpy.c File Reference
#include "../perf.h"
#include "../util/util.h"
#include "../util/parse-options.h"
#include "../util/header.h"
#include "bench.h"
#include "mem-memcpy-arch.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <errno.h>

Go to the source code of this file.

Data Structures

struct  routine
 

Macros

#define K   1024
 
#define pf   (no_prefault ? 0 : 1)
 
#define print_bps(x)
 

Typedefs

typedef void *(* memcpy_t )(void *, const void *, size_t)
 

Functions

int bench_mem_memcpy (int argc, const char **argv, const char *prefix __maybe_unused)
 

Variables

struct routine routines []
 

Macro Definition Documentation

#define K   1024

Definition at line 22 of file mem-memcpy.c.

#define pf   (no_prefault ? 0 : 1)

Definition at line 166 of file mem-memcpy.c.

#define print_bps (   x)
Value:
do { \
if (x < K) \
printf(" %14lf B/Sec", x); \
else if (x < K * K) \
printf(" %14lfd KB/Sec", x / K); \
else if (x < K * K * K) \
printf(" %14lf MB/Sec", x / K / K); \
printf(" %14lf GB/Sec", x / K / K / K); \
} while (0)

Definition at line 168 of file mem-memcpy.c.

Typedef Documentation

typedef void*(* memcpy_t)(void *, const void *, size_t)

Definition at line 49 of file mem-memcpy.c.

Function Documentation

int bench_mem_memcpy ( int  argc,
const char **  argv,
const char *prefix  __maybe_unused 
)

Definition at line 179 of file mem-memcpy.c.

Variable Documentation

struct routine routines[]
Initial value:
= {
{ "default",
"Default memcpy() provided by glibc",
memcpy },
{ NULL,
NULL }
}

Definition at line 57 of file mem-memcpy.c.