Home
last modified time | relevance | path

Searched refs:n_threads (Results 1 – 8 of 8) sorted by relevance

/openbmc/qemu/tests/bench/
H A Datomic64-bench.c23 static unsigned int n_threads = 1; variable
79 while (qatomic_read(&n_ready_threads) != n_threads) { in run_test()
87 for (i = 0; i < n_threads; i++) { in run_test()
96 threads = g_new(QemuThread, n_threads); in create_threads()
97 th_info = g_new(struct thread_info, n_threads); in create_threads()
100 for (i = 0; i < n_threads; i++) { in create_threads()
113 printf(" # of threads: %u\n", n_threads); in pr_params()
124 for (i = 0; i < n_threads; i++) { in pr_stats()
132 printf(" Throughput/thread: %.2f Mops/s/thread\n", tx / n_threads); in pr_stats()
152 n_threads = atoi(optarg); in parse_args()
H A Datomic_add-bench.c18 static unsigned int n_threads = 1; variable
82 while (qatomic_read(&n_ready_threads) != n_threads) { in run_test()
90 for (i = 0; i < n_threads; i++) { in run_test()
99 threads = g_new(QemuThread, n_threads); in create_threads()
100 th_info = g_new(struct thread_info, n_threads); in create_threads()
107 for (i = 0; i < n_threads; i++) { in create_threads()
119 printf(" # of threads: %u\n", n_threads); in pr_params()
138 printf(" Throughput/thread: %.2f Mops/s/thread\n", tx / n_threads); in pr_stats()
158 n_threads = atoi(optarg); in parse_args()
/openbmc/qemu/tests/unit/
H A Dtest-rcu-list.c55 static int n_threads; variable
65 if (n_threads >= NR_THREADS) { in create_thread()
69 qemu_thread_create(&threads[n_threads], "test", func, &data[n_threads], in create_thread()
71 n_threads++; in create_thread()
78 for (i = 0; i < n_threads; i++) { in wait_all_threads()
81 n_threads = 0; in wait_all_threads()
H A Drcutorture.c80 static int n_threads; variable
94 if (n_threads >= NR_THREADS) { in create_thread()
98 qemu_thread_create(&threads[n_threads], "test", func, &data[n_threads], in create_thread()
100 n_threads++; in create_thread()
107 for (i = 0; i < n_threads; i++) { in wait_all_threads()
110 n_threads = 0; in wait_all_threads()
/openbmc/qemu/tests/
H A Dtest-qht-par.c11 static void test_qht(int n_threads, int update_rate, int duration) in test_qht() argument
17 n_threads, update_rate, duration); in test_qht()
/openbmc/qemu/target/ppc/
H A Dcompat.c265 int n_threads = CPU(cpu)->nr_threads; in ppc_compat_max_vthreads() local
269 n_threads = MIN(n_threads, compat->max_vthreads); in ppc_compat_max_vthreads()
272 return n_threads; in ppc_compat_max_vthreads()
/openbmc/linux/tools/testing/selftests/cgroup/
H A Dtest_core.c553 int t, c_threads = 0, n_threads = 13; in test_cgcore_proc_migration() local
555 pthread_t threads[n_threads]; in test_cgcore_proc_migration()
570 for (c_threads = 0; c_threads < n_threads; ++c_threads) { in test_cgcore_proc_migration()
576 if (cg_read_lc(dst, "cgroup.threads") != n_threads + 1) in test_cgcore_proc_migration()
/openbmc/linux/arch/powerpc/kvm/
H A Dbook3s_hv.c3293 static void kvmppc_wait_for_nap(int n_threads) in kvmppc_wait_for_nap() argument
3298 if (n_threads <= 1) in kvmppc_wait_for_nap()
3307 for (i = 1; i < n_threads; ++i) in kvmppc_wait_for_nap()
3310 if (i == n_threads) { in kvmppc_wait_for_nap()
3317 for (i = 1; i < n_threads; ++i) in kvmppc_wait_for_nap()
3439 static bool subcore_config_ok(int n_subcores, int n_threads) in subcore_config_ok() argument
3446 return n_subcores <= 4 && n_threads == 1; in subcore_config_ok()
3460 return n_subcores * roundup_pow_of_two(n_threads) <= MAX_SMT_THREADS; in subcore_config_ok()
3474 int n_threads = vc->num_threads; in can_dynamic_split() local
3484 if (n_threads < cip->max_subcore_threads) in can_dynamic_split()
[all …]