Home
last modified time | relevance | path

Searched refs:n_threads (Results 1 - 17 of 17) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/tgkill/
H A Dtgkill01.c24 static int n_threads = 10; variable
63 TST_CHECKPOINT_WAKE2(1, n_threads); in stop_threads()
65 for (i = 0; i < n_threads; i++) { in stop_threads()
81 for (i = 0; i < n_threads; i++) { in run()
106 if (tst_parse_int(str_threads, &n_threads, 1, INT_MAX)) in setup()
109 threads = SAFE_MALLOC(sizeof(*threads) * n_threads); in setup()
116 for (i = 0; i < n_threads; i++) in setup()
119 for (i = 0; i < n_threads; i++) in setup()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/
H A D1-6.c50 static int n_threads; variable
100 pthread_t threads[n_threads]; in run_hp_threads()
108 it.it_value.tv_sec = n_threads / 20; in run_hp_threads()
109 it.it_value.tv_usec = (n_threads % 20) * 50000; in run_hp_threads()
123 for (i = 0; i < n_threads; i++) { in run_hp_threads()
139 for (i = 0; i < n_threads; i++) in run_hp_threads()
241 n_threads = get_ncpu(); in main()
242 if (n_threads == -1) { in main()
247 n_threads); in main()
250 n_threads in main()
[all...]
/third_party/libunwind/libunwind/src/coredump/
H A D_UCD_get_threadinfo_prstatus.c65 memcpy(&ui->threads[ui->n_threads], desc, sizeof(struct PRSTATUS_STRUCT)); in _save_thread_notes()
66 ++ui->n_threads; in _save_thread_notes()
105 size_t new_size = sizeof(struct PRSTATUS_STRUCT) * (ui->n_threads + thread_count); in _UCD_get_threadinfo()
H A D_UCD_create.c215 if (ui->n_threads == 0) in _UCD_create()
232 return ui->n_threads; in _UCD_get_num_threads()
237 if (n >= 0 && n < ui->n_threads) in _UCD_select_thread()
H A D_UCD_internal.h94 int n_threads; member
/kernel/linux/linux-5.10/samples/bpf/
H A Dxsk_fwd.c760 static int n_threads; variable
810 if (n_threads == MAX_THREADS) { in parse_args()
816 thread_data[n_threads].cpu_core_id = atoi(optarg); in parse_args()
817 n_threads++; in parse_args()
854 if (!n_threads) { in parse_args()
859 if (n_ports % n_threads) { in parse_args()
1021 for (i = 0; i < n_threads; i++) { in main()
1023 u32 n_ports_per_thread = n_ports / n_threads, j; in main()
1036 for (i = 0; i < n_threads; i++) { in main()
1071 for (i = 0; i < n_threads; in main()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/cgroup/
H A Dtest_core.c551 int t, c_threads = 0, n_threads = 13; in test_cgcore_proc_migration() local
553 pthread_t threads[n_threads]; in test_cgcore_proc_migration()
568 for (c_threads = 0; c_threads < n_threads; ++c_threads) { in test_cgcore_proc_migration()
574 if (cg_read_lc(dst, "cgroup.threads") != n_threads + 1) in test_cgcore_proc_migration()
/kernel/linux/linux-6.6/tools/testing/selftests/cgroup/
H A Dtest_core.c551 int t, c_threads = 0, n_threads = 13; in test_cgcore_proc_migration() local
553 pthread_t threads[n_threads]; in test_cgcore_proc_migration()
568 for (c_threads = 0; c_threads < n_threads; ++c_threads) { in test_cgcore_proc_migration()
574 if (cg_read_lc(dst, "cgroup.threads") != n_threads + 1) in test_cgcore_proc_migration()
/third_party/ffmpeg/libavfilter/
H A Dvf_libvmaf.c51 int n_threads; member
76 {"n_threads", "Set number of threads to be used when computing vmaf.", OFFSET(n_threads), AV_OPT_TYPE_INT, {.i64=0}, 0, UINT_MAX, FLAGS},
517 .n_threads = s->n_threads, in init()
/third_party/ffmpeg/libavcodec/
H A Dlibdav1d.c246 s.n_threads = FFMAX(dav1d->frame_threads, dav1d->tile_threads); in libdav1d_init()
248 s.n_threads = FFMIN(threads, DAV1D_MAX_THREADS); in libdav1d_init()
251 s.n_threads, s.max_frame_delay); in libdav1d_init()
/third_party/python/Lib/test/
H A Dtest_queue.py470 def run_threads(self, n_threads, q, inputs, feed_func, consume_func):
488 for i in range(n_threads)]
491 for i in range(n_threads)]
/third_party/rust/crates/once_cell/tests/
H A Dit.rs378 let n_threads = if cfg!(miri) { 30 } else { 1_000 }; in get_or_init_stress()
380 let cells: Vec<_> = std::iter::repeat_with(|| (Barrier::new(n_threads), OnceCell::new())) in get_or_init_stress()
384 for t in 0..n_threads { in get_or_init_stress()
/third_party/benchmark/src/
H A Dbenchmark.cc161 const std::vector<int64_t>& ranges, int thread_i, int n_threads, in State()
174 threads_(n_threads), in State()
160 State(std::string name, IterationCount max_iters, const std::vector<int64_t>& ranges, int thread_i, int n_threads, internal::ThreadTimer* timer, internal::ThreadManager* manager, internal::PerfCountersMeasurement* perf_counters_measurement) State() argument
/kernel/linux/linux-5.10/arch/powerpc/kvm/
H A Dbook3s_hv.c2670 static void kvmppc_wait_for_nap(int n_threads) in kvmppc_wait_for_nap() argument
2675 if (n_threads <= 1) in kvmppc_wait_for_nap()
2684 for (i = 1; i < n_threads; ++i) in kvmppc_wait_for_nap()
2687 if (i == n_threads) { in kvmppc_wait_for_nap()
2694 for (i = 1; i < n_threads; ++i) in kvmppc_wait_for_nap()
2812 static bool subcore_config_ok(int n_subcores, int n_threads) in subcore_config_ok() argument
2819 return n_subcores <= 4 && n_threads == 1; in subcore_config_ok()
2833 return n_subcores * roundup_pow_of_two(n_threads) <= MAX_SMT_THREADS; in subcore_config_ok()
2847 int n_threads = vc->num_threads; in can_dynamic_split() local
2862 if (n_threads < ci in can_dynamic_split()
[all...]
/kernel/linux/linux-6.6/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 < ci in can_dynamic_split()
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/src/
H A Dtime_zone_lookup_test.cc689 const std::size_t n_threads = 128; in TEST() local
691 std::vector<std::set<std::string>> thread_failures(n_threads); in TEST()
692 for (std::size_t i = 0; i != n_threads; ++i) { in TEST()
/third_party/benchmark/include/benchmark/
H A Dbenchmark.h966 const std::vector<int64_t>& ranges, int thread_i, int n_threads,

Completed in 25 milliseconds