Lines Matching refs:bench
33 struct bench { struct
40 static struct bench numa_benchmarks[] = { argument
47 static struct bench sched_benchmarks[] = {
55 static struct bench syscall_benchmarks[] = {
64 static struct bench mem_benchmarks[] = {
72 static struct bench futex_benchmarks[] = {
84 static struct bench epoll_benchmarks[] = {
92 static struct bench internals_benchmarks[] = {
101 static struct bench breakpoint_benchmarks[] = {
108 static struct bench uprobe_benchmarks[] = {
118 struct bench *benchmarks;
144 #define for_each_bench(coll, bench) \ argument
145 for (bench = coll->benchmarks; bench && bench->name; bench++)
149 struct bench *bench; in dump_benchmarks() local
153 for_each_bench(coll, bench) in dump_benchmarks()
154 printf("%14s: %s\n", bench->name, bench->summary); in dump_benchmarks()
236 struct bench *bench; in run_collection() local
247 for_each_bench(coll, bench) { in run_collection()
248 if (!bench->fn) in run_collection()
250 printf("# Running %s/%s benchmark...\n", coll->name, bench->name); in run_collection()
252 argv[1] = bench->name; in run_collection()
253 run_bench(coll->name, bench->name, bench->fn, 1, argv); in run_collection()
306 struct bench *bench; in cmd_bench() local
322 for_each_bench(coll, bench) { in cmd_bench()
323 if (strcmp(bench->name, argv[1])) in cmd_bench()
327 printf("# Running '%s/%s' benchmark:\n", coll->name, bench->name); in cmd_bench()
328 ret = run_bench(coll->name, bench->name, bench->fn, argc-1, argv+1); in cmd_bench()