Home
last modified time | relevance | path

Searched refs:vcpu_threads (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.1/tools/testing/selftests/kvm/
Dkvm_page_table_test.c346 pthread_t *vcpu_threads; in run_test() local
355 vcpu_threads = malloc(nr_vcpus * sizeof(*vcpu_threads)); in run_test()
356 TEST_ASSERT(vcpu_threads, "Memory allocation failed"); in run_test()
362 pthread_create(&vcpu_threads[i], NULL, vcpu_worker, in run_test()
411 pthread_join(vcpu_threads[i], NULL); in run_test()
419 free(vcpu_threads); in run_test()
/Linux-v6.1/tools/testing/selftests/kvm/lib/
Dperf_test_util.c31 static struct vcpu_thread vcpu_threads[KVM_MAX_VCPUS]; variable
272 struct vcpu_thread *vcpu = &vcpu_threads[i]; in perf_test_start_vcpu_threads()
281 while (!READ_ONCE(vcpu_threads[i].running)) in perf_test_start_vcpu_threads()
293 pthread_join(vcpu_threads[i].thread, NULL); in perf_test_join_vcpu_threads()