Home
last modified time | relevance | path

Searched refs:iterations (Results 1 – 25 of 85) sorted by relevance

1234

/linux-6.6.21/tools/testing/selftests/sync/
Dsync_stress_consumer.c55 int iterations; member
69 int iterations = test_data_mpsc.iterations; in mpsc_producer_thread() local
71 for (i = 0; i < iterations; i++) { in mpsc_producer_thread()
81 if ((iterations + id) % 8 != 0) { in mpsc_producer_thread()
111 int iterations = test_data_mpsc.iterations; in mpcs_consumer_thread() local
114 for (it = 1; it <= iterations; it++) { in mpcs_consumer_thread()
132 if (iterations % 8 != 0) { in mpcs_consumer_thread()
155 int iterations = 1 << 12; in test_consumer_stress_multi_producer_single_consumer() local
168 test_data_mpsc.iterations = iterations; in test_consumer_stress_multi_producer_single_consumer()
Dsync_stress_parallelism.c35 int iterations; member
44 int iterations = test_data_two_threads.iterations; in test_stress_two_threads_shared_timeline_thread() local
47 for (i = 0; i < iterations; i++) { in test_stress_two_threads_shared_timeline_thread()
84 test_data_two_threads.iterations = 1 << 16; in test_stress_two_threads_shared_timeline()
105 test_data_two_threads.iterations * 2, in test_stress_two_threads_shared_timeline()
/linux-6.6.21/lib/
Ddhry_run.c27 static int iterations = -1; variable
28 module_param(iterations, int, 0644);
29 MODULE_PARM_DESC(iterations,
37 if (iterations > 0) { in dhry_benchmark()
38 n = dhry(iterations); in dhry_benchmark()
Dtest_lockup.c35 static unsigned int iterations = 1; variable
36 module_param(iterations, uint, 0600);
37 MODULE_PARM_DESC(iterations, "lockup iterations, default 1");
361 while (iter++ < iterations && !signal_pending(main_task)) { in test_lockup()
558 cooldown_secs, cooldown_nsecs, iterations, state, in test_lockup_init()
/linux-6.6.21/drivers/usb/misc/
Dusbtest.c31 __u32 iterations; member
48 __u32 iterations; member
457 int iterations, in simple_io() argument
470 while (retval == 0 && iterations-- > 0) { in simple_io()
510 label, iterations, retval, expected); in simple_io()
602 unsigned iterations, in perform_sglist() argument
617 while (retval == 0 && iterations-- > 0) { in perform_sglist()
646 iterations, retval); in perform_sglist()
1208 if (param->sglen == 0 || param->iterations > UINT_MAX / param->sglen) in test_ctrl_queue()
1214 context.count = param->sglen * param->iterations; in test_ctrl_queue()
[all …]
/linux-6.6.21/tools/testing/selftests/arm64/fp/
DREADME30 Terminated by signal 15, no error, iterations=9467, signals=1014
33 Terminated by signal 15, no error, iterations=9448, signals=1028
36 Terminated by signal 15, no error, iterations=9436, signals=1039
39 Terminated by signal 15, no error, iterations=9421, signals=1039
42 Terminated by signal 15, no error, iterations=9403, signals=1039
45 Terminated by signal 15, no error, iterations=9385, signals=1036
48 Terminated by signal 15, no error, iterations=9376, signals=1039
51 Terminated by signal 15, no error, iterations=9361, signals=1039
54 Terminated by signal 15, no error, iterations=9350, signals=1039
/linux-6.6.21/tools/testing/selftests/kvm/
Ddirty_log_perf_test.c129 unsigned long iterations; member
217 while (iteration < p->iterations) { in run_test()
280 avg = timespec_div(get_dirty_log_total, p->iterations); in run_test()
282 p->iterations, get_dirty_log_total.tv_sec, in run_test()
286 avg = timespec_div(clear_dirty_log_total, p->iterations); in run_test()
288 p->iterations, clear_dirty_log_total.tv_sec, in run_test()
345 .iterations = TEST_HOST_LOOP_N, in main()
383 p.iterations = atoi_positive("Number of iterations", optarg); in main()
428 TEST_ASSERT(p.iterations >= 2, "The test should have at least two iterations"); in main()
430 pr_info("Test iterations: %"PRIu64"\n", p.iterations); in main()
Ddirty_log_test.c697 unsigned long iterations; member
797 while (iteration < p->iterations) { in run_test()
828 if (++iteration == p->iterations) in run_test()
872 .iterations = TEST_HOST_LOOP_N, in main()
889 p.iterations = strtol(optarg, NULL, 10); in main()
927 TEST_ASSERT(p.iterations > 2, "Iterations must be greater than two"); in main()
931 p.iterations, p.interval); in main()
/linux-6.6.21/tools/testing/selftests/powerpc/security/
Dflush_utils.c30 void syscall_loop(char *p, unsigned long iterations, in syscall_loop() argument
33 for (unsigned long i = 0; i < iterations; i++) { in syscall_loop()
40 void syscall_loop_uaccess(char *p, unsigned long iterations, in syscall_loop_uaccess() argument
45 for (unsigned long i = 0; i < iterations; i++) { in syscall_loop_uaccess()
Drfi_flush.c27 unsigned long iterations = 100000, zero_size = 24 * 1024; in rfi_flush_test() local
73 l1d_misses_expected = iterations * (zero_size / CACHELINE_SIZE - 2); in rfi_flush_test()
78 syscall_loop(p, iterations, zero_size); in rfi_flush_test()
Dentry_flush.c27 unsigned long iterations = 100000, zero_size = 24 * 1024; in entry_flush_test() local
72 l1d_misses_expected = iterations * (zero_size / CACHELINE_SIZE - 2); in entry_flush_test()
77 syscall_loop(p, iterations, zero_size); in entry_flush_test()
Dflush_utils.h16 void syscall_loop(char *p, unsigned long iterations,
19 void syscall_loop_uaccess(char *p, unsigned long iterations,
Duaccess_flush.c28 unsigned long iterations = 100000, zero_size = 24 * 1024; in uaccess_flush_test() local
86 l1d_misses_expected = iterations * (zero_size / CACHELINE_SIZE - 2); in uaccess_flush_test()
91 syscall_loop_uaccess(p, iterations, zero_size); in uaccess_flush_test()
/linux-6.6.21/samples/timers/
Dhpet_example.c134 int iterations, i, fd; in hpet_poll() local
147 iterations = atoi(argv[2]); in hpet_poll()
181 for (i = 0; i < iterations; i++) { in hpet_poll()
226 int iterations, i, fd, value; in hpet_fasync() local
259 iterations = atoi(argv[2]); in hpet_fasync()
283 for (i = 0; i < iterations; i++) { in hpet_fasync()
/linux-6.6.21/arch/powerpc/crypto/
Dcrc-vpmsum_test.c18 static unsigned long iterations = 10000; variable
78 pr_info("crc-vpmsum_test begins, %lu iterations\n", iterations); in crc_test_init()
79 for (i=0; i<iterations; i++) { in crc_test_init()
129 module_param(iterations, long, 0400);
/linux-6.6.21/tools/testing/selftests/powerpc/benchmarks/
Dfork.c72 static unsigned long iterations; variable
103 iterations++; in bench_fork()
125 iterations++; in bench_vfork()
173 iterations++; in bench_thread()
179 unsigned long i = iterations; in sigalrm_handler()
Dmmap_bench.c21 static int iterations = ITERATIONS; variable
37 unsigned long i = iterations; in test_mmap()
80 iterations = atoi(optarg); in main()
Dcontext_switch.c143 static unsigned long iterations; variable
148 unsigned long i = iterations; in sigalrm_handler()
194 iterations += 2; in pipe_thread1()
236 iterations += 2; in yield_thread1()
366 iterations += 2; in futex_thread1()
/linux-6.6.21/arch/powerpc/include/asm/
Dpage_64.h45 unsigned long iterations; in clear_page() local
48 iterations = ppc64_caches.l1d.blocks_per_page / 8; in clear_page()
74 : "r" (iterations), "0" (addr), "b" (onex), "b" (twox), in clear_page()
/linux-6.6.21/tools/perf/bench/
Dkallsyms-parse.c14 static unsigned int iterations = 100; variable
17 OPT_UINTEGER('i', "iterations", &iterations,
46 for (i = 0; i < iterations; i++) { in do_kallsyms_parse()
Dpmu-scan.c18 static unsigned int iterations = 100; variable
29 OPT_UINTEGER('i', "iterations", &iterations,
138 iterations); in run_pmu_scan()
148 for (unsigned int i = 0; i < iterations; i++) { in run_pmu_scan()
Devlist-open-close.c24 static int iterations = 100; variable
53 …OPT_INTEGER('i', "iterations", &iterations, "Number of iterations used to compute average (default…
158 printf(" Number of iterations:\t%d\n", iterations); in bench_evlist_open_close__run()
162 for (i = 0; i < iterations; i++) { in bench_evlist_open_close__run()
/linux-6.6.21/tools/testing/selftests/timers/
Dleap-a-day.c185 int iterations = 10; in main() local
196 iterations = atoi(optarg); in main()
230 if (iterations < 0) in main()
233 printf("Running for %i iterations. Press ctrl-c to stop\n", iterations); in main()
372 if ((iterations != -1) && !(--iterations)) in main()
/linux-6.6.21/tools/testing/selftests/powerpc/stringloops/
Dmemcmp.c78 int iterations; in testcase() local
82 iterations = islarge ? LARGE_ITERATIONS : ITERATIONS; in testcase()
98 for (i = 0; i < iterations; i++) { in testcase()
124 for (i = 0; i < iterations; i++) { in testcase()
/linux-6.6.21/drivers/infiniband/sw/rxe/
Drxe_task.c105 unsigned int iterations; in do_task() local
123 iterations = RXE_MAX_ITERATIONS; in do_task()
128 } while (ret == 0 && iterations-- > 0); in do_task()

1234