1 /* SPDX-License-Identifier: GPL-2.0 */
6 * The madvise transparent hugepage constants were added in glibc
7 * 2.13. For compatibility with older versions of glibc, define these
8 * tokens if they are not already defined.
10 # ifndef MADV_HUGEPAGE
11 # define MADV_HUGEPAGE 14
13 # ifndef MADV_NOHUGEPAGE
14 # define MADV_NOHUGEPAGE 15
17 int bench_numa(int argc, const char **argv);
18 int bench_sched_messaging(int argc, const char **argv);
19 int bench_sched_pipe(int argc, const char **argv);
20 int bench_mem_memcpy(int argc, const char **argv);
21 int bench_mem_memset(int argc, const char **argv);
22 int bench_futex_hash(int argc, const char **argv);
23 int bench_futex_wake(int argc, const char **argv);
24 int bench_futex_wake_parallel(int argc, const char **argv);
25 int bench_futex_requeue(int argc, const char **argv);
27 int bench_futex_lock_pi(int argc, const char **argv);
29 #define BENCH_FORMAT_DEFAULT_STR "default"
30 #define BENCH_FORMAT_DEFAULT 0
31 #define BENCH_FORMAT_SIMPLE_STR "simple"
32 #define BENCH_FORMAT_SIMPLE 1
34 #define BENCH_FORMAT_UNKNOWN -1
36 extern int bench_format;
37 extern unsigned int bench_repeat;