Home
last modified time | relevance | path

Searched refs:nproc (Results 1 – 25 of 34) sorted by relevance

12

/freebsd/contrib/sendmail/libsm/
H A Dt-notify.c70 validpid(nproc, cpid) in validpid() argument
71 int nproc; in validpid()
76 for (i = 0; i < nproc; i++)
81 (long) cpid, nproc);
98 notify_rd(nproc, nmsgs) in notify_rd() argument
99 int nproc; in notify_rd()
114 for (i = 0; i < nmsgs * nproc; i++)
140 pidx = validpid(nproc, (pid_t)cpid);
142 SM_TEST(pidx < nproc);
146 if (NULL != p && pidx < nproc && pidx >= 0)
[all …]
/freebsd/usr.bin/systat/
H A Dpigs.c53 static int nproc; variable
85 if (nproc == 0) in showpigs()
88 qsort(pt, nproc, sizeof (struct p_times), compar); in showpigs()
90 i = nproc; in showpigs()
143 if ((kpp = kvm_getprocs(kd, KERN_PROC_ALL, 0, &nproc)) == NULL) { in fetchpigs()
145 nproc = 0; in fetchpigs()
148 if (nproc > maxnproc) { in fetchpigs()
149 if ((pt = realloc(pt, nproc * sizeof(*pt))) == NULL) { in fetchpigs()
153 maxnproc = nproc; in fetchpigs()
158 for (i = 0; i < nproc; i++) { in fetchpigs()
H A Dproc.c67 static int nproc; variable
80 if (idx >= nproc) in display_proc_line()
238 nproc = 0; in procgetinfo()
260 if (pu[nproc] == NULL && in procgetinfo()
261 (pu[nproc] = malloc(sizeof(**pu))) == NULL) { in procgetinfo()
265 strlcpy(pu[nproc]->command, kipp[i].ki_comm, in procgetinfo()
266 sizeof(pu[nproc]->command)); in procgetinfo()
267 pu[nproc]->pid = kipp[i].ki_pid; in procgetinfo()
268 pu[nproc]->uid = kipp[i].ki_uid; in procgetinfo()
269 pu[nproc]->pages = pages; in procgetinfo()
[all …]
/freebsd/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_barrier.cpp234 kmp_uint32 nproc; in __kmp_dist_barrier_gather() local
238 nproc = this_thr->th.th_team_nproc; in __kmp_dist_barrier_gather()
263 if (group_end > nproc) in __kmp_dist_barrier_gather()
264 group_end = nproc; in __kmp_dist_barrier_gather()
318 for (size_t thr = 0; thr < nproc; thr += b->threads_per_group) { in __kmp_dist_barrier_gather()
352 for (size_t thr = b->threads_per_group; thr < nproc; in __kmp_dist_barrier_gather()
498 size_t nproc = this_thr->th.th_team_nproc; in __kmp_dist_barrier_release() local
500 if (nproc < group_end) in __kmp_dist_barrier_release()
501 group_end = nproc; in __kmp_dist_barrier_release()
523 size_t nproc = this_thr->th.th_team_nproc; in __kmp_dist_barrier_release() local
[all …]
H A Dkmp_dispatch.cpp107 typename traits_t<T>::unsigned_t nchunks, T nproc, in __kmp_initialize_self_buffer() argument
119 T num_procs_with_ecore = nproc - num_procs_with_pcore; in __kmp_initialize_self_buffer()
151 small_chunk = nchunks / nproc; // chunks per thread in __kmp_initialize_self_buffer()
152 extras = nchunks % nproc; in __kmp_initialize_self_buffer()
192 T nproc, T tid) { in __kmp_dispatch_init_algorithm() argument
214 KD_TRACE(10, (buff, gtid, pr, lb, ub, st, schedule, chunk, nproc, tid)); in __kmp_dispatch_init_algorithm()
330 if (schedule == kmp_sch_guided_analytical_chunked && nproc > 1 << 20) { in __kmp_dispatch_init_algorithm()
440 if (nproc > 1 && ntc >= nproc) { in __kmp_dispatch_init_algorithm()
491 float p_ratio = (float)num_procs_with_pcore / nproc; in __kmp_dispatch_init_algorithm()
492 float e_ratio = (float)num_procs_with_ecore / nproc; in __kmp_dispatch_init_algorithm()
[all …]
H A Dkmp_dispatch_hier.h504 T nproc; in next_recurse() local
515 nproc = (T)get_top_level_nproc(); in next_recurse()
523 nproc = (T)parent->get_num_active(); in next_recurse()
532 &my_st, nproc, hier_id); in next_recurse()
561 chunk, nproc, hier_id); in next_recurse()
563 gtid, my_pr, my_sh, &contains_last, &my_lb, &my_ub, &my_st, nproc, in next_recurse()
723 T nproc = (T)parent->get_num_active(); in next() local
728 gtid, nproc, unit_id)); in next()
748 gtid, pr, sh, &contains_last, p_lb, p_ub, p_st, nproc, unit_id); in next()
765 pr->u.p.parm1, nproc, unit_id); in next()
[all …]
H A Dkmp_affinity.h953 static kmp_topology_t *allocate(int nproc, int ndepth, const kmp_hw_t *types);
1377 void resize(kmp_uint32 nproc) { in resize() argument
1381 if (nproc <= base_num_threads) // happy with other thread's resize in resize()
1387 if (nproc <= base_num_threads) in resize()
1394 for (kmp_uint32 i = depth; i < maxLevels && nproc > old_sz; ++i) { in resize()
1400 if (nproc > old_sz) { // Not enough space, need to expand hierarchy in resize()
1401 while (nproc > old_sz) { in resize()
1438 base_num_threads = nproc; in resize()
H A Dkmp_affinity.cpp78 void __kmp_get_hierarchy(kmp_uint32 nproc, kmp_bstate_t *thr_bar) { in __kmp_get_hierarchy() argument
83 machine_hierarchy.init(nproc); in __kmp_get_hierarchy()
86 if (nproc > machine_hierarchy.base_num_threads) in __kmp_get_hierarchy()
87 machine_hierarchy.resize(nproc); in __kmp_get_hierarchy()
617 kmp_topology_t *kmp_topology_t::allocate(int nproc, int ndepth, in allocate() argument
621 size_t size = sizeof(kmp_topology_t) + sizeof(kmp_hw_thread_t) * nproc + in allocate()
625 if (nproc > 0) { in allocate()
630 retval->num_hw_threads = nproc; in allocate()
633 (int *)(bytes + sizeof(kmp_topology_t) + sizeof(kmp_hw_thread_t) * nproc); in allocate()
4831 int nproc = ncores * maxprocpercore; in __kmp_aux_affinity_initialize() local
[all …]
H A Dkmp_dispatch.h54 T nproc, T unit_id);
59 T *p_ub, typename traits_t<T>::signed_t *p_st, T nproc, T unit_id);
506 // p2 = n * nproc * ( chunk + 1 ) // point of switching to dynamic
507 // p3 = 1 / ( n * nproc ) // remaining iterations multiplier
510 // With n = 1 first chunk is the same as for static schedule, e.g. trip / nproc.
H A Dompd-specific.h70 OMPD_ACCESS(kmp_internal_control_t, nproc) \
/freebsd/bin/pkill/
H A Dpkill.c98 static int nproc; variable
350 plist = kvm_getprocs(kd, KERN_PROC_PID, pidfromfile, &nproc); in main()
352 plist = kvm_getprocs(kd, KERN_PROC_PROC, 0, &nproc); in main()
362 if ((selected = malloc(nproc)) == NULL) { in main()
364 nproc); in main()
366 memset(selected, 0, nproc); in main()
379 for (i = 0, kp = plist; i < nproc; i++, kp++) { in main()
428 for (i = 0, kp = plist; i < nproc; i++, kp++) { in main()
530 for (i = 0, kp = plist; i < nproc; i++, kp++) { in main()
539 if (i == nproc) { in main()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Host/netbsd/
H A DHostNetBSD.cpp142 int nproc; in GetNetBSDProcessUserAndGroup()
151 sizeof(struct ::kinfo_proc2), &nproc)) == in GetNetBSDProcessUserAndGroup()
157 if (nproc < 1) { in GetNetBSDProcessUserAndGroup()
197 int nproc; in FindProcessesImpl()
199 sizeof(struct ::kinfo_proc2), &nproc)) == in FindProcessesImpl()
208 for (int i = 0; i < nproc; i++) { in FindProcessesImpl()
141 int nproc; GetNetBSDProcessUserAndGroup() local
196 int nproc; FindProcessesImpl() local
/freebsd/usr.sbin/bsnmpd/modules/snmp_hostres/
H A Dhostres_swrun_tbl.c327 int nproc; in swrun_OS_get_procs() local
330 plist = kvm_getprocs(hr_kd, KERN_PROC_ALL, 0, &nproc); in swrun_OS_get_procs()
331 if (plist == NULL || nproc < 0) { in swrun_OS_get_procs()
335 for (i = 0, kp = plist; i < nproc; i++, kp++) { in swrun_OS_get_procs()
429 int nproc; in fetch_swrun_entry() local
457 entry->index - 1, &nproc); in fetch_swrun_entry()
458 if (plist == NULL || nproc != 1) { in fetch_swrun_entry()
473 int nproc; in invalidate_swrun_entry() local
524 entry->index - 1, &nproc); in invalidate_swrun_entry()
525 if (plist == NULL || nproc != 1) { in invalidate_swrun_entry()
/freebsd/tools/debugscripts/
H A Dgdbinit.i386233 set $nproc = nprocs
236 while (--$nproc >= 0)
242 set $nproc = 0
245 if ($aproc == 0 && $nproc > 0)
277 set $nproc = nprocs
280 while (--$nproc >= 0)
283 set $nproc = 0
286 if ($aproc == 0 && $nproc > 0)
300 set $nproc = nprocs
304 while (--$nproc >= 0)
[all …]
H A Dgdbinit.kernel198 set $nproc = nprocs
203 while (--$nproc >= 0)
227 if ($aproc == 0 && $nproc > 0)
240 set $nproc = nprocs
243 while (--$nproc >= 0)
269 set $nproc = 0
/freebsd/usr.bin/top/
H A Dmachine.c156 static int nproc; variable
326 nproc = 0; in machine_init()
761 nproc = 0; in get_process_info()
767 if (previous_proc_count_max < nproc) { in get_process_info()
769 previous_procs = calloc(nproc, sizeof(*previous_procs)); in get_process_info()
771 previous_pref = calloc(nproc, sizeof(*previous_pref)); in get_process_info()
776 previous_proc_count_max = nproc; in get_process_info()
778 if (nproc) { in get_process_info()
779 for (i = 0; i < nproc; i++) in get_process_info()
781 memcpy(previous_procs, pbase, nproc * sizeof(*previous_procs)); in get_process_info()
[all …]
H A Dutils.c308 int nproc; in find_pid() local
317 pbase = kvm_getprocs(kd, KERN_PROC_PID, pid, &nproc); in find_pid()
322 if ((nproc == 1) && (pbase->ki_pid == pid)) { in find_pid()
/freebsd/sys/contrib/openzfs/config/
H A Dax_count_cpus.m445 …AS_IF([[test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v nproc >/dev/null 2>&1]],[[: # empty]…
46 # 'nproc' is part of GNU Coreutils and is widely available
47 … CPU_COUNT=`OMP_NUM_THREADS='' nproc 2>/dev/null` || CPU_COUNT=`nproc 2>/dev/null` || CPU_COUNT="0"
/freebsd/sys/contrib/device-tree/Bindings/
H A DMakefile39 xargs -n200 -P$$(nproc) \
45 xargs -n200 -P$$(nproc) $(DT_DOC_CHECKER) -u $(src)) \
/freebsd/bin/nproc/
H A DMakefile2 PROG= nproc
/freebsd/tools/build/
H A Dstale-symlink-buildworld.sh21 : ${ncpu=$(nproc)}
/freebsd/contrib/googletest/ci/
H A Dmacos-presubmit.sh50 time ctest -j$(nproc) --output-on-failure
/freebsd/bin/
H A DMakefile25 nproc \
/freebsd/usr.sbin/pmcstat/
H A Dpmcstat.c174 int n, nproc, pid, rv; in pmcstat_find_targets() local
198 0, &nproc)) == NULL) in pmcstat_find_targets()
202 nproc = 0; in pmcstat_find_targets()
210 for (n = 0, kp = pmcstat_plist; n < nproc; n++, kp++) { in pmcstat_find_targets()
/freebsd/share/doc/smm/02.config/
H A Dspell.ok219 nproc

12