Home
last modified time | relevance | path

Searched refs:producer_cnt (Results 1 – 9 of 9) sorted by relevance

/linux/tools/testing/selftests/bpf/
H A Dbench.c22 .producer_cnt = 1,
74 hits_per_prod = hits_per_sec / env.producer_cnt; in hits_drops_report_progress()
152 hits_mean, hits_stddev, hits_mean / env.producer_cnt); in hits_drops_report_final()
164 hits_per_prod = hits_per_sec / env.producer_cnt; in ops_report_progress()
188 hits_mean, hits_stddev, hits_mean / env.producer_cnt); in ops_report_final()
189 printf("latency %8.3lf ns/op\n", 1000.0 / hits_mean * env.producer_cnt); in ops_report_final()
330 env.producer_cnt = strtol(arg, NULL, 10); in parse_arg()
331 if (env.producer_cnt < 0) { in parse_arg()
641 state.producers = calloc(env.producer_cnt, sizeof(*state.producers)); in setup_benchmark()
676 for (i = 0; i < env.producer_cnt; i++) { in setup_benchmark()
H A Dbench.h30 int producer_cnt; member
/linux/tools/testing/selftests/bpf/benchs/
H A Dbench_htab_mem.c98 if (!strcmp(use_cases[2].name, args.use_case) && env.producer_cnt % 2) { in htab_mem_validate()
112 nr = (env.producer_cnt + 1) / 2; in htab_mem_bench_init_barriers()
132 nr = (env.producer_cnt + 1) / 2; in htab_mem_bench_exit_barriers()
199 ctx.skel->bss->nr_thread = env.producer_cnt; in htab_mem_setup()
295 res->hits = atomic_swap(&ctx.skel->bss->op_cnt, 0) / env.producer_cnt; in htab_mem_measure()
H A Dbench_local_storage_create.c109 threads = calloc(env.producer_cnt, sizeof(*threads)); in setup()
116 for (i = 0; i < env.producer_cnt; i++) { in setup()
214 creates_per_sec, creates_per_sec / env.producer_cnt); in report_progress()
238 creates_mean, creates_stddev, creates_mean / env.producer_cnt); in report_final()
H A Dbench_count.c38 ctx->hits = calloc(env.producer_cnt, sizeof(*ctx->hits)); in count_local_setup()
59 for (i = 0; i < env.producer_cnt; i++) { in count_local_measure()
H A Dbench_rename.c16 if (env.producer_cnt != 1) { in validate()
H A Dbench_local_storage_rcu_tasks_trace.c71 if (env.producer_cnt != 1) { in validate()
H A Dbench_local_storage.c73 if (env.producer_cnt != 1) { in validate()
H A Dbench_ringbufs.c103 if (args.back2back && env.producer_cnt > 1) { in bufs_validate()