Linux Perf
bench.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MADV_HUGEPAGE   14
 
#define MADV_NOHUGEPAGE   15
 
#define BENCH_FORMAT_DEFAULT_STR   "default"
 
#define BENCH_FORMAT_DEFAULT   0
 
#define BENCH_FORMAT_SIMPLE_STR   "simple"
 
#define BENCH_FORMAT_SIMPLE   1
 
#define BENCH_FORMAT_UNKNOWN   -1
 

Functions

int bench_numa (int argc, const char **argv)
 
int bench_sched_messaging (int argc, const char **argv)
 
int bench_sched_pipe (int argc, const char **argv)
 
int bench_mem_memcpy (int argc, const char **argv)
 
int bench_mem_memset (int argc, const char **argv)
 
int bench_futex_hash (int argc, const char **argv)
 
int bench_futex_wake (int argc, const char **argv)
 
int bench_futex_wake_parallel (int argc, const char **argv)
 
int bench_futex_requeue (int argc, const char **argv)
 
int bench_futex_lock_pi (int argc, const char **argv)
 

Variables

int bench_format
 
unsigned int bench_repeat
 

Macro Definition Documentation

◆ BENCH_FORMAT_DEFAULT

#define BENCH_FORMAT_DEFAULT   0

Definition at line 42 of file bench.h.

◆ BENCH_FORMAT_DEFAULT_STR

#define BENCH_FORMAT_DEFAULT_STR   "default"

Definition at line 41 of file bench.h.

◆ BENCH_FORMAT_SIMPLE

#define BENCH_FORMAT_SIMPLE   1

Definition at line 44 of file bench.h.

◆ BENCH_FORMAT_SIMPLE_STR

#define BENCH_FORMAT_SIMPLE_STR   "simple"

Definition at line 43 of file bench.h.

◆ BENCH_FORMAT_UNKNOWN

#define BENCH_FORMAT_UNKNOWN   -1

Definition at line 46 of file bench.h.

◆ MADV_HUGEPAGE

#define MADV_HUGEPAGE   14

Definition at line 22 of file bench.h.

◆ MADV_NOHUGEPAGE

#define MADV_NOHUGEPAGE   15

Definition at line 25 of file bench.h.

Function Documentation

◆ bench_futex_hash()

int bench_futex_hash ( int  argc,
const char **  argv 
)

Definition at line 118 of file futex-hash.c.

Here is the call graph for this function:

◆ bench_futex_lock_pi()

int bench_futex_lock_pi ( int  argc,
const char **  argv 
)

Definition at line 146 of file futex-lock-pi.c.

Here is the call graph for this function:

◆ bench_futex_requeue()

int bench_futex_requeue ( int  argc,
const char **  argv 
)

Definition at line 114 of file futex-requeue.c.

Here is the call graph for this function:

◆ bench_futex_wake()

int bench_futex_wake ( int  argc,
const char **  argv 
)

Definition at line 120 of file futex-wake.c.

Here is the call graph for this function:

◆ bench_futex_wake_parallel()

int bench_futex_wake_parallel ( int  argc,
const char **  argv 
)

◆ bench_mem_memcpy()

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

Definition at line 289 of file mem-functions.c.

Here is the call graph for this function:

◆ bench_mem_memset()

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

Definition at line 363 of file mem-functions.c.

Here is the call graph for this function:

◆ bench_numa()

int bench_numa ( int  argc,
const char **  argv 
)

Definition at line 1819 of file numa.c.

Here is the call graph for this function:

◆ bench_sched_messaging()

int bench_sched_messaging ( int  argc,
const char **  argv 
)

Definition at line 264 of file sched-messaging.c.

Here is the call graph for this function:

◆ bench_sched_pipe()

int bench_sched_pipe ( int  argc,
const char **  argv 
)

Definition at line 80 of file sched-pipe.c.

Here is the call graph for this function:

Variable Documentation

◆ bench_format

int bench_format

Definition at line 110 of file builtin-bench.c.

◆ bench_repeat

unsigned int bench_repeat

Definition at line 111 of file builtin-bench.c.