Lines Matching refs:bench
397 if (bench->argp) { in parse_cmdline_args_final()
398 bench_parsers[0].argp = bench->argp; in parse_cmdline_args_final()
399 bench_parsers[0].header = bench->name; in parse_cmdline_args_final()
484 const struct bench *bench = NULL; variable
486 extern const struct bench bench_count_global;
487 extern const struct bench bench_count_local;
488 extern const struct bench bench_rename_base;
489 extern const struct bench bench_rename_kprobe;
490 extern const struct bench bench_rename_kretprobe;
491 extern const struct bench bench_rename_rawtp;
492 extern const struct bench bench_rename_fentry;
493 extern const struct bench bench_rename_fexit;
494 extern const struct bench bench_trig_base;
495 extern const struct bench bench_trig_tp;
496 extern const struct bench bench_trig_rawtp;
497 extern const struct bench bench_trig_kprobe;
498 extern const struct bench bench_trig_fentry;
499 extern const struct bench bench_trig_fentry_sleep;
500 extern const struct bench bench_trig_fmodret;
501 extern const struct bench bench_trig_uprobe_base;
502 extern const struct bench bench_trig_uprobe_with_nop;
503 extern const struct bench bench_trig_uretprobe_with_nop;
504 extern const struct bench bench_trig_uprobe_without_nop;
505 extern const struct bench bench_trig_uretprobe_without_nop;
506 extern const struct bench bench_rb_libbpf;
507 extern const struct bench bench_rb_custom;
508 extern const struct bench bench_pb_libbpf;
509 extern const struct bench bench_pb_custom;
510 extern const struct bench bench_bloom_lookup;
511 extern const struct bench bench_bloom_update;
512 extern const struct bench bench_bloom_false_positive;
513 extern const struct bench bench_hashmap_without_bloom;
514 extern const struct bench bench_hashmap_with_bloom;
515 extern const struct bench bench_bpf_loop;
516 extern const struct bench bench_strncmp_no_helper;
517 extern const struct bench bench_strncmp_helper;
518 extern const struct bench bench_bpf_hashmap_full_update;
519 extern const struct bench bench_local_storage_cache_seq_get;
520 extern const struct bench bench_local_storage_cache_interleaved_get;
521 extern const struct bench bench_local_storage_cache_hashmap_control;
522 extern const struct bench bench_local_storage_tasks_trace;
523 extern const struct bench bench_bpf_hashmap_lookup;
524 extern const struct bench bench_local_storage_create;
525 extern const struct bench bench_htab_mem;
527 static const struct bench *benchs[] = {
580 bench = benchs[i]; in find_benchmark()
584 if (!bench) { in find_benchmark()
595 printf("Setting up benchmark '%s'...\n", bench->name); in setup_benchmark()
604 if (bench->validate) in setup_benchmark()
605 bench->validate(); in setup_benchmark()
606 if (bench->setup) in setup_benchmark()
607 bench->setup(); in setup_benchmark()
611 bench->consumer_thread, (void *)(long)i); in setup_benchmark()
630 bench->producer_thread, (void *)(long)i); in setup_benchmark()
642 printf("Benchmark '%s' started.\n", bench->name); in setup_benchmark()
652 bench->measure(res); in collect_measurements()
654 if (bench->report_progress) in collect_measurements()
655 bench->report_progress(iter, res, delta_ns); in collect_measurements()
690 if (bench->report_final) in main()
692 bench->report_final(state.results + env.warmup_sec, in main()