/openbmc/openbmc/meta-openembedded/meta-oe/recipes-benchmark/tiobench/tiobench-0.3.3/ |
H A D | avoid-glibc-clashes.patch | 38 pthread_attr_setscope(&(d->threads[i].thread_attr), 41 - d->threads[i].buffer = aligned_alloc( d->threads[i].blockSize ); 42 + d->threads[i].buffer = _aligned_alloc( d->threads[i].blockSize ); 43 if( d->threads[i].buffer == NULL ) 49 unlink(d->threads[i].fileName); 50 - aligned_free( d->threads[i].buffer, d->threads[i].blockSize ); 51 + _aligned_free( d->threads[i].buffer, d->threads[i].blockSize ); 52 d->threads[i].buffer = 0; 54 pthread_attr_destroy( &(d->threads[i].thread_attr) );
|
/openbmc/qemu/hw/core/ |
H A D | machine-smp.c | 59 g_string_append_printf(s, " * threads (%u)", ms->smp.threads); in cpu_hierarchy_to_string() 68 * Any missing parameter in "cpus/maxcpus/sockets/cores/threads" will be 71 * In the calculation of omitted sockets/cores/threads: we prefer sockets 72 * over cores over threads before 6.2, while preferring cores over sockets 73 * over threads since 6.2. 97 unsigned threads = config->has_threads ? config->threads : 0; in machine_parse_smp_config() local 113 (config->has_threads && config->threads == 0) || in machine_parse_smp_config() 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() [all …]
|
/openbmc/qemu/tests/unit/ |
H A D | test-smp-parse.c | 30 * -sockets/cores/threads 37 .has_threads = hd, .threads = d, \ 46 .threads = d, \ 52 * -sockets/dies/modules/cores/threads 62 .has_threads = hf, .threads = f, \ 68 * -sockets/clusters/cores/threads 76 .has_threads = he, .threads = e, \ 82 * -drawers/books/sockets/cores/threads 92 .has_threads = hf, .threads = f, \ 99 * -drawers/books/sockets/dies/clusters/modules/cores/threads [all …]
|
H A D | test-aio-multithread.c | 24 static IOThread *threads[NUM_CONTEXTS]; variable 71 threads[i] = iothread_new(); in create_aio_contexts() 72 ctx[i] = iothread_get_aio_context(threads[i]); in create_aio_contexts() 91 iothread_join(threads[i]); in join_aio_contexts() 226 static void test_multi_co_mutex(int threads, int seconds) in test_multi_co_mutex() argument 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() 255 /* Testing with NUM_CONTEXTS threads focuses on the queue. The mutex however 256 * is too contended (and the threads spend too much time in aio_poll) [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | cpu-plug-test.c | 22 unsigned threads; member 38 "-smp 1,sockets=%u,cores=%u,threads=%u,maxcpus=%u", in test_plug_with_device_add() 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() [all …]
|
/openbmc/qemu/tests/tcg/multiarch/ |
H 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() 52 printf("Created %d threads\n", max_threads); in main() 54 /* sleep until roughly half the threads have "finished" */ in main() 58 pthread_join(threads[i], NULL); in main()
|
H A D | vma-pthread.c | 10 * Reader, writer and executor threads perform the respective operations on 12 * Two mutator threads change the non-fixed protection bits randomly. 159 pthread_t threads[5]; in main() local 182 /* Start threads. */ in main() 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() 194 /* Wait for threads to stop. */ in main() 195 for (i = 0; i < sizeof(threads) / sizeof(threads[0]); i++) { in main() [all …]
|
H 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()
|
/openbmc/qemu/tests/migration-stress/guestperf/ |
H A D | plot.py | 151 threads = {} 153 if record._tid in threads: 155 threads[record._tid] = { 172 threads[record._tid]["xaxis"].append(record._timestamp - starttime) 173 threads[record._tid]["yaxis"].append(record._value) 174 threads[record._tid]["labels"].append(self._get_progress_label(progress)) 179 for tid in threads.keys(): 181 go.Scatter(x=threads[tid]["xaxis"], 182 y=threads[tid]["yaxis"], 191 text=threads[tid]["labels"])) [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/debian/ |
H A D | fix-gettid-exception-declaration.patch | 5 --- a/system/core/libcutils/include/cutils/threads.h 6 +++ b/system/core/libcutils/include/cutils/threads.h 16 --- a/system/core/libcutils/threads.cpp 17 +++ b/system/core/libcutils/threads.cpp
|
/openbmc/openbmc/meta-openembedded/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/debian/system/core/ |
H A D | fix-gettid-exception-declaration.patch | 5 --- a/system/core/libcutils/include/cutils/threads.h 6 +++ b/system/core/libcutils/include/cutils/threads.h 16 --- a/system/core/libcutils/threads.cpp 17 +++ b/system/core/libcutils/threads.cpp
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/libmxml/ |
H A D | libmxml_4.0.4.bb | 14 PACKAGECONFIG ??= "threads" 15 PACKAGECONFIG[threads] = "--enable-threads,--disable-threads"
|
/openbmc/openbmc-tools/rootfs_size/ |
H A D | rootfs_size.py | 36 "--threads", 37 dest="threads", 40 help="Number of threads to use (defaults to cpu count)", 110 print("Using {} threads".format(args.threads)) 111 with Pool(args.threads) as p:
|
/openbmc/qemu/migration/ |
H A D | multifd-device-state.c | 26 ThreadPool *threads; member 39 multifd_send_device_state->threads = thread_pool_new(); in multifd_device_state_send_setup() 45 g_clear_pointer(&multifd_send_device_state->threads, thread_pool_free); in multifd_device_state_send_cleanup() 104 /* Device state submissions can come from multiple threads */ in multifd_queue_device_state() 150 * save threads could still be in process of being launched in multifd_device_state_save_thread() 158 * In case of multiple save threads failing which thread error in multifd_device_state_save_thread() 190 thread_pool_submit_immediate(multifd_send_device_state->threads, in multifd_spawn_device_state_save_thread() 209 thread_pool_wait(multifd_send_device_state->threads); in multifd_join_device_state_save_threads()
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-benchmark/iozone3/iozone3/ |
H A D | parallelism.patch | 23 # GNU 'C' compiler Linux build with threads, largefiles, async I/O 32 # GNU 'C' compiler Linux build for powerpc chip with threads, largefiles, async I/O 41 # GNU 'C' compiler Linux build for sparc chip with threads, largefiles, async I/O 50 # GNU 'C' compiler Linux build with threads, largefiles, async I/O 59 # GNU 'C' compiler Linux build for powerpc chip with threads, largefiles, async I/O 68 # GNU 'C' compiler Linux build with threads, largefiles, async I/O 77 # GNU 'C' compiler Linux build with threads, largefiles, async I/O 86 # GNU 'C' compiler Linux build with S/390, threads, largfiles, async I/O 95 # GNU 'C' compiler Linux build with S/390, threads, largfiles, async I/O
|
/openbmc/qemu/tests/ |
H A D | test-qht-par.c | 48 g_test_add_func("/qht/parallel/2threads-0%updates-1s", test_2th0u1s); in main() 49 g_test_add_func("/qht/parallel/2threads-20%updates-1s", test_2th20u1s); in main() 51 g_test_add_func("/qht/parallel/2threads-0%updates-5s", test_2th0u5s); in main() 52 g_test_add_func("/qht/parallel/2threads-20%updates-5s", test_2th20u5s); in main()
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-connectivity/freeradius/files/ |
H A D | 0010-fix-error-for-expansion-of-macro-in-thread.h.patch | 21 src/include/threads.h | 10 +++++----- 24 diff --git a/src/include/threads.h b/src/include/threads.h 26 --- a/src/include/threads.h 27 +++ b/src/include/threads.h
|
/openbmc/u-boot/doc/ |
H A D | README.sched | 24 applications must invoke thread_yield() to allow other threads to 36 - Only seven threads are allowed. These can be easily increased by 48 threads implementations. 50 - There is no parent-child relationship between threads. Only one
|
/openbmc/qemu/util/ |
H A D | thread-pool.c | 71 int new_threads; /* backlog of threads we need to create */ 72 int pending_threads; /* threads created but not running yet */ 96 /* Timed out + no work to do + no need for warm threads = exit. */ in worker_thread() 101 * too many worker threads before picking it up. in worker_thread() 162 /* If there are threads being created, they will spawn new workers, so in spawn_thread() 163 * we don't spend time creating many threads in a loop holding a mutex or in spawn_thread() 166 * If there are no idle threads, ask the main thread to create one, so we in spawn_thread() 302 * - Increase the number available of threads until over the min_threads in thread_pool_update_params() 304 * - Bump the worker threads so that they exit, until under the max_threads in thread_pool_update_params() 306 * - Do nothing. The current number of threads fall in between the min and in thread_pool_update_params() [all …]
|
/openbmc/qemu/subprojects/libvhost-user/ |
H A D | meson.build | 11 threads = dependency('threads') variable 16 dependencies: threads,
|
/openbmc/qemu/docs/specs/ |
H 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.
|
/openbmc/qemu/tests/bench/ |
H A D | atomic64-bench.c | 21 static QemuThread *threads; variable 33 " -n = number of threads\n" 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() 113 printf(" # of threads: %u\n", n_threads); in pr_params()
|
H A D | atomic_add-bench.c | 16 static QemuThread *threads; variable 28 " -n = number of threads\n" 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() 119 printf(" # of threads: %u\n", n_threads); in pr_params()
|
/openbmc/openpower-proc-control/procedures/p9/ |
H A D | thread_stopall.cpp | 16 * @brief Stop instruction executions on all functional threads in the 18 * This procedure is used to stop all threads in the system in 42 log<level::ERR>("Failed to stop all threads"); in threadStopAll()
|
/openbmc/libmctp/docs/ |
H A D | fuzzing.md | 11 threads itself with a single corpus directory, which is easy to work with. It 27 Optionally a thread count can be given, 24 threads on a 12 core system seems to 28 give best utilisation (`--threads 24`). 43 Running with 20 threads:
|