Lines Matching refs:coll
84 #define for_each_collection(coll) \ argument
85 for (coll = collections; coll->name; coll++)
88 #define for_each_bench(coll, bench) \ argument
89 for (bench = coll->benchmarks; bench && bench->name; bench++)
91 static void dump_benchmarks(struct collection *coll) in dump_benchmarks() argument
95 printf("\n # List of available benchmarks for collection '%s':\n\n", coll->name); in dump_benchmarks()
97 for_each_bench(coll, bench) in dump_benchmarks()
122 struct collection *coll; in print_usage() local
132 for_each_collection(coll) in print_usage()
133 printf("%14s: %s\n", coll->name, coll->summary); in print_usage()
178 static void run_collection(struct collection *coll) in run_collection() argument
191 for_each_bench(coll, bench) { in run_collection()
194 printf("# Running %s/%s benchmark...\n", coll->name, bench->name); in run_collection()
198 run_bench(coll->name, bench->name, bench->fn, 1, argv, NULL); in run_collection()
205 struct collection *coll; in run_all_collections() local
207 for_each_collection(coll) in run_all_collections()
208 run_collection(coll); in run_all_collections()
213 struct collection *coll; in cmd_bench() local
246 for_each_collection(coll) { in cmd_bench()
249 if (strcmp(coll->name, argv[0])) in cmd_bench()
254 dump_benchmarks(coll); in cmd_bench()
259 run_collection(coll); in cmd_bench()
263 for_each_bench(coll, bench) { in cmd_bench()
268 printf("# Running '%s/%s' benchmark:\n", coll->name, bench->name); in cmd_bench()
270 ret = run_bench(coll->name, bench->name, bench->fn, argc-1, argv+1, prefix); in cmd_bench()
275 dump_benchmarks(coll); in cmd_bench()