Lines Matching refs:bench
32 struct bench { struct
39 static struct bench numa_benchmarks[] = { argument
46 static struct bench sched_benchmarks[] = {
53 static struct bench syscall_benchmarks[] = {
59 static struct bench mem_benchmarks[] = {
67 static struct bench futex_benchmarks[] = {
79 static struct bench epoll_benchmarks[] = {
87 static struct bench internals_benchmarks[] = {
97 struct bench *benchmarks;
121 #define for_each_bench(coll, bench) \ argument
122 for (bench = coll->benchmarks; bench && bench->name; bench++)
126 struct bench *bench; in dump_benchmarks() local
130 for_each_bench(coll, bench) in dump_benchmarks()
131 printf("%14s: %s\n", bench->name, bench->summary); in dump_benchmarks()
213 struct bench *bench; in run_collection() local
224 for_each_bench(coll, bench) { in run_collection()
225 if (!bench->fn) in run_collection()
227 printf("# Running %s/%s benchmark...\n", coll->name, bench->name); in run_collection()
230 argv[1] = bench->name; in run_collection()
231 run_bench(coll->name, bench->name, bench->fn, 1, argv); in run_collection()
280 struct bench *bench; in cmd_bench() local
296 for_each_bench(coll, bench) { in cmd_bench()
297 if (strcmp(bench->name, argv[1])) in cmd_bench()
301 printf("# Running '%s/%s' benchmark:\n", coll->name, bench->name); in cmd_bench()
303 ret = run_bench(coll->name, bench->name, bench->fn, argc-1, argv+1); in cmd_bench()