| /qemu/hw/core/ |
| A D | machine-smp.c | 97 unsigned threads = config->has_threads ? config->threads : 0; in machine_parse_smp_config() local 168 threads = threads > 0 ? threads : 1; in machine_parse_smp_config() 176 threads = threads > 0 ? threads : 1; in machine_parse_smp_config() 179 modules * cores * threads); in machine_parse_smp_config() 181 threads = threads > 0 ? threads : 1; in machine_parse_smp_config() 190 threads = threads > 0 ? threads : 1; in machine_parse_smp_config() 195 threads = threads > 0 ? threads : 1; in machine_parse_smp_config() 198 modules * cores * threads); in machine_parse_smp_config() 203 if (threads == 0) { in machine_parse_smp_config() 204 threads = maxcpus / in machine_parse_smp_config() [all …]
|
| /qemu/tests/migration/guestperf/ |
| A D | plot.py | 151 threads = {} 153 if record._tid in threads: 155 threads[record._tid] = { 179 for tid in threads.keys(): 181 go.Scatter(x=threads[tid]["xaxis"], 182 y=threads[tid]["yaxis"], 266 threads = {} 268 if record._tid in threads: 270 threads[record._tid] = { 310 for tid in threads.keys(): [all …]
|
| /qemu/tests/unit/ |
| A D | test-aio-multithread.c | 24 static IOThread *threads[NUM_CONTEXTS]; variable 71 threads[i] = iothread_new(); in create_aio_contexts() 91 iothread_join(threads[i]); in join_aio_contexts() 236 assert(threads <= NUM_CONTEXTS); in test_multi_co_mutex() 237 running = threads; in test_multi_co_mutex() 238 for (i = 0; i < threads; i++) { in test_multi_co_mutex() 355 assert(threads <= NUM_CONTEXTS); in test_multi_fair_mutex() 356 running = threads; in test_multi_fair_mutex() 357 for (i = 0; i < threads; i++) { in test_multi_fair_mutex() 412 running = threads; in test_multi_mutex() [all …]
|
| A D | test-smp-parse.c | 37 .has_threads = hd, .threads = d, \ 46 .threads = d, \ 62 .has_threads = hf, .threads = f, \ 76 .has_threads = he, .threads = e, \ 92 .has_threads = hf, .threads = f, \ 111 .has_threads = true, .threads = i, \ 727 config->has_threads ? "true" : "false", config->threads, in smp_config_to_string() 746 if (!topo->threads) { in cpu_topology_get_cores_per_socket() 749 return cpu_topology_get_threads_per_socket(topo) / topo->threads; in cpu_topology_get_cores_per_socket() 776 topo->modules, topo->cores, topo->threads, in cpu_topology_to_string() [all …]
|
| A D | rcutorture.c | 78 static QemuThread threads[NR_THREADS]; variable 98 qemu_thread_create(&threads[n_threads], "test", func, &data[n_threads], in create_thread() 108 qemu_thread_join(&threads[i]); in wait_all_threads()
|
| A D | test-rcu-list.c | 53 static QemuThread threads[NR_THREADS]; variable 69 qemu_thread_create(&threads[n_threads], "test", func, &data[n_threads], in create_thread() 79 qemu_thread_join(&threads[i]); in wait_all_threads()
|
| /qemu/tests/qtest/ |
| A D | cpu-plug-test.c | 22 unsigned threads; member 40 td->sockets, td->cores, td->threads, td->maxcpus); in test_plug_with_device_add() 96 data->threads = 2; in add_pc_test_case() 97 data->maxcpus = data->sockets * data->cores * data->threads; in add_pc_test_case() 101 data->threads, data->maxcpus); in add_pc_test_case() 122 data->threads = 1; in add_pseries_test_case() 123 data->maxcpus = data->sockets * data->cores * data->threads; in add_pseries_test_case() 127 data->threads, data->maxcpus); in add_pseries_test_case() 148 data->threads = 1; in add_s390x_test_case() 149 data->maxcpus = data->sockets * data->cores * data->threads; in add_s390x_test_case() [all …]
|
| /qemu/tests/tcg/multiarch/ |
| A D | vma-pthread.c | 159 pthread_t threads[5]; in main() local 183 ret = pthread_create(&threads[0], NULL, thread_read, &ctx); in main() 185 ret = pthread_create(&threads[1], NULL, thread_write, &ctx); in main() 187 ret = pthread_create(&threads[2], NULL, thread_execute, &ctx); in main() 190 ret = pthread_create(&threads[i], NULL, thread_mutate, &ctx); in main() 195 for (i = 0; i < sizeof(threads) / sizeof(threads[0]); i++) { in main() 196 ret = pthread_join(threads[i], NULL); in main()
|
| A D | signals.c | 56 static pthread_t *threads; variable 77 threads = calloc(sizeof(pthread_t), max_threads); in spawn_threads() 84 pthread_create(threads + i, NULL, background_thread_func, job); in spawn_threads() 92 pthread_join(threads[i], NULL); in close_threads() 94 free(threads); in close_threads() 95 threads = NULL; in close_threads()
|
| A D | threadcount.c | 39 pthread_t *threads; in main() local 44 threads = calloc(sizeof(pthread_t), max_threads); in main() 49 pthread_create(threads + i, NULL, thread_fn, arg); in main() 58 pthread_join(threads[i], NULL); in main()
|
| /qemu/util/ |
| A D | oslib-posix.c | 73 struct MemsetThread *threads; member 306 MemsetThread *thread = &sigbus_memset_context->threads[i]; in sigbus_handler() 425 tmp = (uintptr_t)qemu_thread_join(&context->threads[i].pgthread); in wait_and_free_mem_prealloc_context() 431 g_free(context->threads); in wait_and_free_mem_prealloc_context() 483 context->threads = g_new0(MemsetThread, context->num_threads); in touch_all_pages() 487 context->threads[i].addr = addr; in touch_all_pages() 489 context->threads[i].hpagesize = hpagesize; in touch_all_pages() 490 context->threads[i].context = context; in touch_all_pages() 494 touch_fn, &context->threads[i], in touch_all_pages() 498 touch_fn, &context->threads[i], in touch_all_pages() [all …]
|
| /qemu/hw/ppc/ |
| A D | spapr_cpu_core.c | 216 spapr_reset_vcpu(sc->threads[i]); in spapr_cpu_core_reset() 244 if (sc->threads[i]) { in spapr_cpu_core_unrealize() 250 if (qdev_is_realized(DEVICE(sc->threads[i]))) { in spapr_cpu_core_unrealize() 251 spapr_unrealize_vcpu(sc->threads[i], sc); in spapr_cpu_core_unrealize() 253 spapr_delete_vcpu(sc->threads[i]); in spapr_cpu_core_unrealize() 256 g_free(sc->threads); in spapr_cpu_core_unrealize() 347 sc->threads = g_new0(PowerPCCPU *, cc->nr_threads); in spapr_cpu_core_realize() 352 sc->threads[i] = cpu; in spapr_cpu_core_realize()
|
| A D | pnv_core.c | 204 PowerPCCPU *cpu = pc->threads[i]; in pnv_core_power10_xscom_read() 219 PowerPCCPU *cpu = pc->threads[i]; in pnv_core_power10_xscom_read() 245 PowerPCCPU *cpu = pc->threads[i]; in pnv_core_power10_xscom_write() 349 pnv_core_cpu_reset(pc, pc->threads[i]); in pnv_core_reset() 366 pc->threads = g_new(PowerPCCPU *, cc->nr_threads); in pnv_core_realize() 374 pc->threads[i] = POWERPC_CPU(obj); in pnv_core_realize() 390 pnv_core_cpu_realize(pc, pc->threads[j], &local_err, j); in pnv_core_realize() 405 obj = OBJECT(pc->threads[i]); in pnv_core_realize() 408 g_free(pc->threads); in pnv_core_realize() 433 pnv_core_cpu_unrealize(pc, pc->threads[i]); in pnv_core_unrealize() [all …]
|
| /qemu/tests/bench/ |
| A D | atomic64-bench.c | 21 static QemuThread *threads; variable 88 qemu_thread_join(&threads[i]); in run_test() 96 threads = g_new(QemuThread, n_threads); in create_threads() 105 qemu_thread_create(&threads[i], NULL, thread_func, info, in create_threads()
|
| A D | atomic_add-bench.c | 16 static QemuThread *threads; variable 91 qemu_thread_join(&threads[i]); in run_test() 99 threads = g_new(QemuThread, n_threads); in create_threads() 111 qemu_thread_create(&threads[i], NULL, thread_func, info, in create_threads()
|
| /qemu/subprojects/libvhost-user/ |
| A D | meson.build | 11 threads = dependency('threads') variable 16 dependencies: threads,
|
| /qemu/tests/tcg/multiarch/gdbstub/ |
| A D | interrupt.py | 50 if len(gdb.selected_inferior().threads()) == 1: 55 for thread in gdb.selected_inferior().threads():
|
| /qemu/docs/specs/ |
| A D | rapl-msr.rst | 54 1. Snapshot of the time metrics of all QEMU threads (Time spent scheduled in 58 the QEMU threads are running on. 60 3. Sleep for 1 second - During this pause the vcpu and other non-vcpu threads 67 5. Filter the vcpu threads and the non-vcpu threads. 72 7. The total energy spent by the non-vcpu threads is divided by the number 73 of vcpu threads so that each vcpu thread will get an equal part of the 76 8. Calculate the ratio of energy spent per vcpu threads.
|
| /qemu/docs/ |
| A D | multi-thread-compression.txt | 120 {qemu} migrate_set_parameter compress-threads 12 126 {qemu} migrate_set_parameter decompress-threads 3 136 compress-threads: 8 137 decompress-threads: 2 148 these faster (de)compression method, less (de)compression threads
|
| /qemu/docs/devel/ |
| A D | multiple-iothreads.rst | 22 possible to create additional event loop threads using 37 scalability bottleneck in itself. vCPU threads and the main loop use the BQL 42 BQL is contended by all vCPU threads and the main loop explain 99 Variables that can be accessed by multiple threads require some form of 106 Side note: the best way to schedule a function call across threads is to call
|
| /qemu/scripts/qemugdb/ |
| A D | tcg.py | 25 for thread in gdb.inferiors()[0].threads():
|
| /qemu/include/hw/ppc/ |
| A D | spapr_cpu_core.h | 29 PowerPCCPU **threads; member
|
| A D | pnv_core.h | 58 PowerPCCPU **threads; member
|
| /qemu/docs/system/ |
| A D | gdb.rst | 87 "inferiors", each of which can have multiple "threads". When the QEMU 95 the U54 cores are all threads in the second inferior. 123 Once you've done this, ``info threads`` will show CPUs in 126 (gdb) info threads
|
| /qemu/hw/cpu/ |
| A D | core.c | 76 core->nr_threads = current_machine->smp.threads; in cpu_core_instance_init()
|