Home
last modified time | relevance | path

Searched refs:loops (Results 1 – 25 of 43) sorted by relevance

12

/tools/perf/bench/
A Dsyscall.c25 static int loops; variable
28 OPT_INTEGER('l', "loop", &loops, "Specify number of loops"),
86 loops = 10000; in bench_syscall_common()
89 loops = 10000000; in bench_syscall_common()
98 for (i = 0; i < loops; i++) { in bench_syscall_common()
138 printf("# Executed %'d %s calls\n", loops, name); in bench_syscall_common()
148 (double)result_usec / (double)loops); in bench_syscall_common()
150 (int)((double)loops / in bench_syscall_common()
A Duprobe.c26 static int loops = LOOPS_DEFAULT; variable
37 OPT_INTEGER('l', "loop", &loops, "Specify number of loops"),
117 int printed = fprintf(fp, "# Executed %'d %s calls\n", loops, name); in bench_uprobe_format__default_fprintf()
128 printed += fprintf(fp, "\n\n %'.3f %ss/op", (double)diff / (double)loops, unit); in bench_uprobe_format__default_fprintf()
131 …printed += fprintf(fp, " %'.3f %ss/op to baseline", (double)diff_to_baseline / (double)loops, unit… in bench_uprobe_format__default_fprintf()
134 …printed += fprintf(fp, " %'.3f %ss/op to previous", (double)diff_to_previous / (double)loops, unit… in bench_uprobe_format__default_fprintf()
160 for (i = 0; i < loops; i++) { in bench_uprobe()
A Dsched-seccomp-notify.c29 static uint64_t loops = LOOPS_DEFAULT; variable
33 OPT_U64('l', "loop", &loops, "Specify number of loops"),
74 for (nr = 0; nr < loops; nr++) { in user_notification_sync_loop()
148 loops); in bench_sched_seccomp_notify()
158 (double)result_usec / (double)loops); in bench_sched_seccomp_notify()
160 (int)((double)loops / in bench_sched_seccomp_notify()
A Dsched-pipe.c45 static int loops = LOOPS_DEFAULT; variable
89 OPT_INTEGER('l', "loop", &loops, "Specify number of loops"),
206 for (i = 0; i < loops; i++) { in worker_thread()
299 loops, threaded ? "threads" : "processes"); in bench_sched_pipe()
309 (double)result_usec / (double)loops); in bench_sched_pipe()
311 (int)((double)loops / in bench_sched_pipe()
/tools/testing/selftests/net/bench/page_pool/
A Dbench_page_pool_simple.c40 static unsigned long loops = 10000000; variable
41 module_param(loops, ulong, 0);
42 MODULE_PARM_DESC(loops, "Specify loops bench will run");
54 for (i = 0; i < rec->loops; i++) { in time_bench_for_loop()
72 for (i = 0; i < rec->loops; i++) { in time_bench_atomic_inc()
95 for (i = 0; i < rec->loops; i++) { in time_bench_lock()
160 for (i = 0; i < rec->loops; i++) { in time_bench_page_pool()
216 uint32_t nr_loops = loops; in run_benchmark_tests()
246 if (loops > U32_MAX) { in bench_page_pool_simple_module_init()
247 pr_err("Module param loops(%lu) exceeded U32_MAX(%u)\n", loops, in bench_page_pool_simple_module_init()
A Dtime_bench.c216 bool time_bench_loop(uint32_t loops, int step, char *txt, void *data, in time_bench_loop() argument
224 rec.loops = loops; in time_bench_loop()
234 if (rec.invoked_cnt < loops) in time_bench_loop()
236 rec.invoked_cnt, loops); in time_bench_loop()
329 void time_bench_run_concurrent(uint32_t loops, int step, void *data, in time_bench_run_concurrent() argument
356 c->rec.loops = loops; in time_bench_run_concurrent()
A Dtime_bench.h14 uint32_t loops; /* Requested loop invocations */ member
201 bool time_bench_loop(uint32_t loops, int step, char *txt, void *data,
205 void time_bench_run_concurrent(uint32_t loops, int step, void *data,
/tools/gpio/
A Dgpio-hammer.c26 unsigned int loops) in hammer_device() argument
101 if (loops && iteration == loops) in hammer_device()
131 unsigned int loops = 0; in main() local
140 loops = strtoul(optarg, NULL, 10); in main()
175 return hammer_device(device_name, lines, num_lines, loops); in main()
A Dgpio-event-mon.c32 unsigned int loops) in monitor_device() argument
127 if (i == loops) in monitor_device()
172 unsigned int loops = 0; in main() local
182 loops = strtoul(optarg, NULL, 10); in main()
240 return monitor_device(device_name, lines, num_lines, &config, loops); in main()
/tools/perf/tests/shell/coresight/thread_loop/
A Dthread_loop.c20 unsigned int loops; member
28 int i = 0, len = a->loops; in thrfn()
79 args[i].loops = len; in main()
/tools/testing/radix-tree/
A Dbenchmark.c20 int l, loops = 1; in benchmark_iter() local
27 for (l = 0; l < loops; l++) { in benchmark_iter()
42 if (loops == 1 && nsec * 5 < NSEC_PER_SEC) { in benchmark_iter()
43 loops = NSEC_PER_SEC / nsec / 4 + 1; in benchmark_iter()
48 nsec /= loops; in benchmark_iter()
/tools/perf/tests/shell/coresight/memcpy_thread/
A Dmemcpy_thread.c10 unsigned long loops; member
19 unsigned long i, len = a->loops; in thrfn()
71 args[i].loops = len; in main()
/tools/testing/selftests/kvm/
A Dset_memory_region_test.c611 int i, loops; in main() local
638 loops = atoi_positive("Number of iterations", argv[1]); in main()
640 loops = 10; in main()
644 loops, j ? "disabled" : "enabled"); in main()
645 for (i = 0; i < loops; i++) in main()
649 loops, j ? "disabled" : "enabled"); in main()
650 for (i = 0; i < loops; i++) in main()
/tools/testing/selftests/powerpc/pmu/sampling_tests/
A Dmmcr0_fc56_pmc56_test.c13 extern void thirty_two_instruction_loop(int loops);
A Dmmcr0_pmcjce_test.c13 extern void thirty_two_instruction_loop(int loops);
A Dmmcr0_pmccext_test.c13 extern void thirty_two_instruction_loop(int loops);
A Dmmcr0_cc56run_test.c13 extern void thirty_two_instruction_loop(int loops);
A Dmmcra_bhrb_disable_no_branch_test.c13 extern void thirty_two_instruction_loop(int loops);
A Dmmcr0_exceptionbits_test.c13 extern void thirty_two_instruction_loop(int loops);
A Dmmcr0_fc56_pmc1ce_test.c13 extern void thirty_two_instruction_loop(int loops);
A Dmmcr1_comb_test.c16 extern void thirty_two_instruction_loop_with_ll_sc(u64 loops, u64 *ll_sc_target);
A Dmmcra_bhrb_any_test.c13 extern void thirty_two_instruction_loop(int loops);
A Dmmcra_bhrb_disable_test.c13 extern void thirty_two_instruction_loop(int loops);
A Dmmcr3_src_test.c13 extern void thirty_two_instruction_loop_with_ll_sc(u64 loops, u64 *ll_sc_target);
A Dmmcra_bhrb_cond_test.c13 extern void thirty_two_instruction_loop(int loops);

Completed in 27 milliseconds

12