Lines Matching refs:bench
30 struct bench { struct
37 static struct bench numa_benchmarks[] = { argument
44 static struct bench sched_benchmarks[] = {
51 static struct bench mem_benchmarks[] = {
58 static struct bench futex_benchmarks[] = {
72 struct bench *benchmarks;
91 #define for_each_bench(coll, bench) \ argument
92 for (bench = coll->benchmarks; bench && bench->name; bench++)
96 struct bench *bench; in dump_benchmarks() local
100 for_each_bench(coll, bench) in dump_benchmarks()
101 printf("%14s: %s\n", bench->name, bench->summary); in dump_benchmarks()
183 struct bench *bench; in run_collection() local
194 for_each_bench(coll, bench) { in run_collection()
195 if (!bench->fn) in run_collection()
197 printf("# Running %s/%s benchmark...\n", coll->name, bench->name); in run_collection()
200 argv[1] = bench->name; in run_collection()
201 run_bench(coll->name, bench->name, bench->fn, 1, argv, NULL); in run_collection()
250 struct bench *bench; in cmd_bench() local
266 for_each_bench(coll, bench) { in cmd_bench()
267 if (strcmp(bench->name, argv[1])) in cmd_bench()
271 printf("# Running '%s/%s' benchmark:\n", coll->name, bench->name); in cmd_bench()
273 ret = run_bench(coll->name, bench->name, bench->fn, argc-1, argv+1, prefix); in cmd_bench()