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[] = {
120 struct bench *benchmarks;
146 #define for_each_bench(coll, bench) \ argument
147 for (bench = coll->benchmarks; bench && bench->name; bench++)
151 struct bench *bench; in dump_benchmarks() local
155 for_each_bench(coll, bench) in dump_benchmarks()
156 printf("%14s: %s\n", bench->name, bench->summary); in dump_benchmarks()
238 struct bench *bench; in run_collection() local
249 for_each_bench(coll, bench) { in run_collection()
250 if (!bench->fn) in run_collection()
252 printf("# Running %s/%s benchmark...\n", coll->name, bench->name); in run_collection()
254 argv[1] = bench->name; in run_collection()
255 run_bench(coll->name, bench->name, bench->fn, 1, argv); in run_collection()
308 struct bench *bench; in cmd_bench() local
324 for_each_bench(coll, bench) { in cmd_bench()
325 if (strcmp(bench->name, argv[1])) in cmd_bench()
329 printf("# Running '%s/%s' benchmark:\n", coll->name, bench->name); in cmd_bench()
330 ret = run_bench(coll->name, bench->name, bench->fn, argc-1, argv+1); in cmd_bench()