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