/kernel/linux/linux-6.6/arch/sparc/include/asm/ |
H A D | trap_block.h | 5 #include <linux/threads.h>
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | percpu_counter.h | 13 #include <linux/threads.h>
|
/kernel/linux/linux-6.6/arch/x86/include/asm/ |
H A D | pgtable_64.h | 16 #include <linux/threads.h>
|
/third_party/libwebsockets/minimal-examples/ws-server/minimal-ws-server-threadpool/ |
H A D | protocol_lws_minimal_threadpool.c | 195 cargs.threads = 3; in callback_minimal()
|
/third_party/mesa3d/src/loader/ |
H A D | loader_dri3_helper.h | 36 #include <c11/threads.h>
|
/third_party/ltp/testcases/kernel/mce-test/stress/tools/fs-metadata/ |
H A D | fs-metadata.sh | 92 echo -e "\ttree_depth node_number threads run_time(secs) [result_file] [temp_dir] [log_file]\n" 212 export K_THREADS_PID=$K_VAR/k-threads.pid
|
/kernel/linux/linux-5.10/kernel/ |
H A D | fork.c | 118 * Minimum number of threads to boot the kernel 123 * Maximum number of threads 131 int nr_threads; /* The idle threads do not count.. */ 246 * Allocated stacks are cached and later reused by new threads, in alloc_thread_stack_node() 773 u64 threads; in set_max_threads() local 777 * The number of threads shall be limited such that the thread in set_max_threads() 781 threads = MAX_THREADS; in set_max_threads() 783 threads = div64_u64((u64) nr_pages * (u64) PAGE_SIZE, in set_max_threads() 786 if (threads > max_threads_suggested) in set_max_threads() 787 threads in set_max_threads() 3128 int threads = max_threads; sysctl_max_threads() local [all...] |
/kernel/linux/linux-6.6/kernel/ |
H A D | fork.c | 118 * Minimum number of threads to boot the kernel 123 * Maximum number of threads 131 int nr_threads; /* The idle threads do not count.. */ 308 * Allocated stacks are cached and later reused by new threads, in alloc_thread_stack_node() 885 * switch kernel threads to init_mm. in cleanup_lazy_tlbs() 892 * one exiting, or kernel threads using the mm when userspace exits. in cleanup_lazy_tlbs() 1009 u64 threads; in set_max_threads() local 1013 * The number of threads shall be limited such that the thread in set_max_threads() 1017 threads = MAX_THREADS; in set_max_threads() 1019 threads in set_max_threads() 3554 int threads = max_threads; sysctl_max_threads() local [all...] |
/third_party/mesa3d/src/intel/blorp/ |
H A D | blorp_genX_exec.h | 831 /* Even when thread dispatch is disabled, max threads (dw5.25:31) must be in blorp_emit_ps_config() 834 * [1,39] = [2,40] threads, which excludes zero. in blorp_emit_ps_config() 890 /* 3DSTATE_PS expects the number of threads per PSD, which is always 64 in blorp_emit_ps_config() 892 * k, it implies 2(k+1) threads. It implicitly scales for different GT in blorp_emit_ps_config() 2073 uint32_t threads, in blorp_get_compute_push_const() 2079 ALIGN(brw_cs_push_const_total_size(cs_prog_data, threads), 64); in blorp_get_compute_push_const() 2110 for (unsigned t = 0; t < threads; t++) { in blorp_get_compute_push_const() 2185 blorp_get_compute_push_const(batch, params, dispatch.threads, in blorp_exec_compute() 2196 .NumberofThreadsinGPGPUThreadGroup = dispatch.threads, in blorp_exec_compute() 2238 ALIGN(cs_prog_data->push.per_thread.regs * dispatch.threads in blorp_exec_compute() 2071 blorp_get_compute_push_const(struct blorp_batch *batch, const struct blorp_params *params, uint32_t threads, uint32_t *state_offset, unsigned *state_size) blorp_get_compute_push_const() argument [all...] |
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | evsel.h | 250 int evsel__open_per_thread(struct evsel *evsel, struct perf_thread_map *threads); 252 struct perf_thread_map *threads);
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/ |
H A D | gen7_renderclear.c | 265 u32 threads = bv->max_threads - 1; in gen7_emit_vfe_state() local 273 /* number of threads & urb entries for GPGPU vs Media Mode */ in gen7_emit_vfe_state() 274 *cs++ = threads << 16 | 1 << 8 | mode << 2; in gen7_emit_vfe_state() 423 /* Execute the kernel on all HW threads */ in emit_batch()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gt/ |
H A D | gen7_renderclear.c | 266 u32 threads = bv->max_threads - 1; in gen7_emit_vfe_state() local 274 /* number of threads & urb entries for GPGPU vs Media Mode */ in gen7_emit_vfe_state() 275 *cs++ = threads << 16 | 1 << 8 | mode << 2; in gen7_emit_vfe_state() 424 /* Execute the kernel on all HW threads */ in emit_batch()
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | bpf_lock_contention.c | 50 ntasks = perf_thread_map__nr(evlist->core.threads); in lock_contention_prepare() 114 pid = perf_thread_map__pid(evlist->core.threads, i); in lock_contention_prepare()
|
/third_party/python/Lib/test/test_asyncio/ |
H A D | utils.py | 554 threads = list(watcher._threads.values()) 555 for thread in threads:
|
/kernel/linux/linux-5.10/samples/bpf/ |
H A D | xsk_fwd.c | 38 * sockets in multi-threaded environment. All threads are sharing a common 48 * Example 2: Two threads, each handling two sockets. The thread running on CPU 64 * The buffer pool is shared between multiple threads. In order to minimize the 67 * thread that creates them and therefore cannot be shared with other threads. 633 * Packet forwarding threads. 758 static pthread_t threads[MAX_THREADS]; variable 773 " by all the forwarding threads. Default: %u.\n" in print_usage() 811 printf("Max number of threads (%d) reached.\n", in parse_args() 855 printf("No threads specified.\n"); in parse_args() 860 printf("Ports cannot be evenly distributed to threads in parse_args() [all...] |
/third_party/libwebsockets/lib/misc/threadpool/ |
H A D | threadpool.c | 695 tp = lws_malloc(sizeof(*tp) + (sizeof(struct lws_pool) * (unsigned int)args->threads), in lws_threadpool_create() 700 memset(tp, 0, sizeof(*tp) + (sizeof(struct lws_pool) * (unsigned int)args->threads)); in lws_threadpool_create() 719 for (n = 0; n < args->threads; n++) { in lws_threadpool_create() 749 * pool threads will exit ASAP (they are joined in destroy) */ in lws_threadpool_finish() 806 lwsl_info("%s: waiting for threads to rejoin\n", __func__); in lws_threadpool_destroy()
|
/third_party/skia/tests/ |
H A D | SkRuntimeEffectTest.cpp | 729 std::thread threads[16]; in DEF_TEST() local 730 for (auto& thread : threads) { in DEF_TEST() 739 for (auto& thread : threads) { in DEF_TEST()
|
/third_party/python/Lib/ |
H A D | threading.py | 59 """Set a profile function for all threads started from the threading module. 73 """Set a trace function for all threads started from the threading module. 180 by any thread), and if any other threads are blocked waiting for the 227 A condition variable allows one or more threads to wait until they are 360 """Wake up one or more threads waiting on this condition, if any. 365 This method wakes up at most n of the threads waiting for the condition 366 variable; it is a no-op if no threads are waiting. 390 """Wake up all threads waiting on this condition. 399 """Wake up all threads waiting on this condition. 442 which blocked threads ar [all...] |
/kernel/linux/linux-5.10/drivers/android/ |
H A D | binder.c | 22 * (proc->threads, proc->waiting_threads, proc->nodes) 434 * @threads: rbtree of binder_threads in this proc 443 * @waiting_threads: threads currently waiting for proc work 465 * @max_threads: cap on number of binder threads 467 * @requested_threads: number of binder threads requested but not 471 * @requested_threads_started: number binder threads started 490 struct rb_root threads; member 531 * @rb_node: element for proc->threads rbtree 561 * Bookkeeping structure for binder threads. 881 /* (e)poll-based threads requir in binder_enqueue_thread_work_ilocked() 5947 int threads, nodes, incoming_refs, outgoing_refs, active_transactions; binder_deferred_release() local [all...] |
/third_party/ffmpeg/tests/fate/ |
H A D | vcodec.mak | 66 fate-vsynth%-dnxhd-720p-rd: ENCOPTS = -s hd720 -b 90M -threads 4 -mbd rd \ 278 -threads 2 -slices 2 280 -intra_vlc 1 -threads 2 -slices 2 331 -threads 2 -slices 2
|
/third_party/benchmark/include/benchmark/ |
H A D | benchmark.h | 137 In a multithreaded test, it is guaranteed that none of the threads will start 606 // presented divided by the number of threads. 765 // NOTE: The "real time" measurement is per-thread. If different threads 796 // calls to `KeepRunning()` will block until all threads have completed 797 // the `KeepRunning()` loop. If multiple threads report being skipped only the 817 // calls to `KeepRunning()` will block until all threads have completed 818 // the `KeepRunning()` loop. If multiple threads report an error only the 917 // Number of threads concurrently executing the benchmark. 919 int threads() const { return threads_; } in threads() function in benchmark::internal::State 921 // Index of the executing thread. Values from [0, threads) 1714 std::string threads; global() member 1771 int64_t threads; global() member [all...] |
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/charsetdet/ |
H A D | TestCharsetDetector.java | 1240 Thread threads[] = new Thread[10]; in TestMultithreaded() 1242 threads[i] = new WorkerThread(i); in TestMultithreaded() 1243 threads[i].start(); in TestMultithreaded() 1245 for (Thread thread: threads) { in TestMultithreaded()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/ |
H A D | DateIntervalFormatTest.java | 1867 // These final variables are accessed directly by the concurrent threads. in TestTicket11669() 1913 List<TestThread> threads = new ArrayList<>(); in TestTicket11669() 1915 threads.add(new TestThread()); in TestTicket11669() 1917 for (Thread t: threads) { in TestTicket11669() 1920 for (TestThread t: threads) { in TestTicket11669()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/charsetdet/ |
H A D | TestCharsetDetector.java | 1237 Thread threads[] = new Thread[10]; in TestMultithreaded() 1239 threads[i] = new WorkerThread(i); in TestMultithreaded() 1240 threads[i].start(); in TestMultithreaded() 1242 for (Thread thread: threads) { in TestMultithreaded()
|
/third_party/python/Lib/asyncio/ |
H A D | unix_events.py | 915 child watcher implementation. It doesn't require signals or threads, doesn't 1369 """Internal: Join all non-daemon threads""" 1370 threads = [thread for thread in list(self._threads.values()) 1372 for thread in threads: 1382 threads = [thread for thread in list(self._threads.values()) 1384 if threads:
|