Lines Matching refs:bench

304 const struct bench *bench = NULL;  variable
306 extern const struct bench bench_count_global;
307 extern const struct bench bench_count_local;
308 extern const struct bench bench_rename_base;
309 extern const struct bench bench_rename_kprobe;
310 extern const struct bench bench_rename_kretprobe;
311 extern const struct bench bench_rename_rawtp;
312 extern const struct bench bench_rename_fentry;
313 extern const struct bench bench_rename_fexit;
314 extern const struct bench bench_trig_base;
315 extern const struct bench bench_trig_tp;
316 extern const struct bench bench_trig_rawtp;
317 extern const struct bench bench_trig_kprobe;
318 extern const struct bench bench_trig_fentry;
319 extern const struct bench bench_trig_fentry_sleep;
320 extern const struct bench bench_trig_fmodret;
321 extern const struct bench bench_rb_libbpf;
322 extern const struct bench bench_rb_custom;
323 extern const struct bench bench_pb_libbpf;
324 extern const struct bench bench_pb_custom;
326 static const struct bench *benchs[] = {
359 bench = benchs[i]; in setup_benchmark()
363 if (!bench) { in setup_benchmark()
368 printf("Setting up benchmark '%s'...\n", bench->name); in setup_benchmark()
377 if (bench->validate) in setup_benchmark()
378 bench->validate(); in setup_benchmark()
379 if (bench->setup) in setup_benchmark()
380 bench->setup(); in setup_benchmark()
384 bench->consumer_thread, (void *)(long)i); in setup_benchmark()
403 bench->producer_thread, (void *)(long)i); in setup_benchmark()
414 printf("Benchmark '%s' started.\n", bench->name); in setup_benchmark()
424 bench->measure(res); in collect_measurements()
426 if (bench->report_progress) in collect_measurements()
427 bench->report_progress(iter, res, delta_ns); in collect_measurements()
458 if (bench->report_final) in main()
460 bench->report_final(state.results + env.warmup_sec, in main()