Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
mem-memset.c File Reference
#include "../perf.h"
#include "../util/util.h"
#include "../util/parse-options.h"
#include "../util/header.h"
#include "bench.h"
#include "mem-memset-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 *(* memset_t )(void *, int, size_t)
 

Functions

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

Macro Definition Documentation

#define K   1024

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

#define pf   (no_prefault ? 0 : 1)

Definition at line 160 of file mem-memset.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 162 of file mem-memset.c.

Typedef Documentation

typedef void*(* memset_t)(void *, int, size_t)

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

Function Documentation

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

Definition at line 173 of file mem-memset.c.