Lines Matching refs:coll

87 #define for_each_collection(coll) \  argument
88 for (coll = collections; coll->name; coll++)
91 #define for_each_bench(coll, bench) \ argument
92 for (bench = coll->benchmarks; bench && bench->name; bench++)
94 static void dump_benchmarks(struct collection *coll) in dump_benchmarks() argument
98 printf("\n # List of available benchmarks for collection '%s':\n\n", coll->name); in dump_benchmarks()
100 for_each_bench(coll, bench) in dump_benchmarks()
125 struct collection *coll; in print_usage() local
135 for_each_collection(coll) in print_usage()
136 printf("%14s: %s\n", coll->name, coll->summary); in print_usage()
181 static void run_collection(struct collection *coll) in run_collection() argument
194 for_each_bench(coll, bench) { in run_collection()
197 printf("# Running %s/%s benchmark...\n", coll->name, bench->name); in run_collection()
201 run_bench(coll->name, bench->name, bench->fn, 1, argv, NULL); in run_collection()
208 struct collection *coll; in run_all_collections() local
210 for_each_collection(coll) in run_all_collections()
211 run_collection(coll); in run_all_collections()
216 struct collection *coll; in cmd_bench() local
249 for_each_collection(coll) { in cmd_bench()
252 if (strcmp(coll->name, argv[0])) in cmd_bench()
257 dump_benchmarks(coll); in cmd_bench()
262 run_collection(coll); in cmd_bench()
266 for_each_bench(coll, bench) { 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()
278 dump_benchmarks(coll); in cmd_bench()