Lines Matching refs:bench
3 * builtin-bench.c
22 #include "bench/bench.h"
33 struct bench {
40 static struct bench numa_benchmarks[] = {
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) \
145 for (bench = coll->benchmarks; bench && bench->name; bench++)
149 struct bench *bench;
153 for_each_bench(coll, bench)
154 printf("%14s: %s\n", bench->name, bench->summary);
172 "perf bench [<common options>] <collection> <benchmark> [<options>]",
236 struct bench *bench;
247 for_each_bench(coll, bench) {
248 if (!bench->fn)
250 printf("# Running %s/%s benchmark...\n", coll->name, bench->name);
252 argv[1] = bench->name;
253 run_bench(coll->name, bench->name, bench->fn, 1, argv);
306 struct bench *bench;
312 /* No bench specified. */
322 for_each_bench(coll, bench) {
323 if (strcmp(bench->name, argv[1]))
327 printf("# Running '%s/%s' benchmark:\n", coll->name, bench->name);
328 ret = run_bench(coll->name, bench->name, bench->fn, argc-1, argv+1);