Searched refs:nproc (Results 1 - 25 of 28) sorted by relevance

12

/freebsd-current/bin/nproc/
H A DMakefile2 PROG= nproc
/freebsd-current/contrib/sendmail/libsm/
H A Dt-notify.c70 validpid(nproc, cpid)
71 int nproc;
76 for (i = 0; i < nproc; i++)
80 fprintf(stderr, "pid=%ld not found, nproc=%d\n",
81 (long) cpid, nproc);
89 ** nproc -- number of processes started
98 notify_rd(nproc, nmsgs)
99 int nproc;
114 for (i = 0; i < nmsgs * nproc; i++)
140 pidx = validpid(nproc, (pid_
171 int nproc = 1; local
[all...]
/freebsd-current/usr.bin/systat/
H A Dpigs.c53 static int nproc; variable
85 if (nproc == 0)
88 qsort(pt, nproc, sizeof (struct p_times), compar);
90 i = nproc;
143 if ((kpp = kvm_getprocs(kd, KERN_PROC_ALL, 0, &nproc)) == NULL) {
145 nproc = 0;
148 if (nproc > maxnproc) {
149 if ((pt = realloc(pt, nproc * sizeof(*pt))) == NULL) {
153 maxnproc = nproc;
158 for (i = 0; i < nproc;
[all...]
H A Dproc.c67 static int nproc; variable
80 if (idx >= nproc)
238 nproc = 0;
260 if (pu[nproc] == NULL &&
261 (pu[nproc] = malloc(sizeof(**pu))) == NULL) {
265 strlcpy(pu[nproc]->command, kipp[i].ki_comm,
266 sizeof(pu[nproc]->command));
267 pu[nproc]->pid = kipp[i].ki_pid;
268 pu[nproc]->uid = kipp[i].ki_uid;
269 pu[nproc]
[all...]
/freebsd-current/contrib/googletest/ci/
H A Dmacos-presubmit.sh50 time ctest -j$(nproc) --output-on-failure
/freebsd-current/bin/
H A DMakefile26 nproc \
/freebsd-current/contrib/llvm-project/lldb/source/Host/netbsd/
H A DHostNetBSD.cpp142 int nproc; local
151 sizeof(struct ::kinfo_proc2), &nproc)) ==
157 if (nproc < 1) {
197 int nproc; local
199 sizeof(struct ::kinfo_proc2), &nproc)) ==
208 for (int i = 0; i < nproc; i++) {
/freebsd-current/bin/pkill/
H A Dpkill.c98 static int nproc; variable
350 plist = kvm_getprocs(kd, KERN_PROC_PID, pidfromfile, &nproc);
352 plist = kvm_getprocs(kd, KERN_PROC_PROC, 0, &nproc);
362 if ((selected = malloc(nproc)) == NULL) {
364 nproc);
366 memset(selected, 0, nproc);
379 for (i = 0, kp = plist; i < nproc; i++, kp++) {
428 for (i = 0, kp = plist; i < nproc; i++, kp++) {
530 for (i = 0, kp = plist; i < nproc; i++, kp++) {
539 if (i == nproc) {
[all...]
/freebsd-current/usr.bin/top/
H A Dutils.c308 int nproc; local
317 pbase = kvm_getprocs(kd, KERN_PROC_PID, pid, &nproc);
322 if ((nproc == 1) && (pbase->ki_pid == pid)) {
H A Dmachine.c156 static int nproc; variable
326 nproc = 0;
761 nproc = 0;
767 if (previous_proc_count_max < nproc) {
769 previous_procs = calloc(nproc, sizeof(*previous_procs));
771 previous_pref = calloc(nproc, sizeof(*previous_pref));
776 previous_proc_count_max = nproc;
778 if (nproc) {
779 for (i = 0; i < nproc; i++)
781 memcpy(previous_procs, pbase, nproc * sizeo
[all...]
/freebsd-current/sys/contrib/device-tree/Bindings/
H A DMakefile39 xargs -n200 -P$$(nproc) \
44 xargs -n200 -P$$(nproc) $(DT_DOC_CHECKER) -u $(srctree)/$(src)) || true
/freebsd-current/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_barrier.cpp234 kmp_uint32 nproc; local
238 nproc = this_thr->th.th_team_nproc;
263 if (group_end > nproc)
264 group_end = nproc;
318 for (size_t thr = 0; thr < nproc; thr += b->threads_per_group) {
352 for (size_t thr = b->threads_per_group; thr < nproc;
498 size_t nproc = this_thr->th.th_team_nproc; local
500 if (nproc < group_end)
501 group_end = nproc;
523 size_t nproc local
538 size_t nproc = this_thr->th.th_team_nproc; local
594 int nproc = this_thr->th.th_team_nproc; local
667 kmp_uint32 nproc = this_thr->th.th_team_nproc; local
801 kmp_uint32 nproc = this_thr->th.th_team_nproc; local
906 kmp_uint32 nproc; local
1290 __kmp_init_hierarchical_barrier_thread(enum barrier_type bt, kmp_bstate_t *thr_bar, kmp_uint32 nproc, int gtid, int tid, kmp_team_t *team) argument
1363 kmp_uint32 nproc = this_thr->th.th_team_nproc; local
1532 kmp_uint32 nproc; local
1939 int nproc = this_thr->th.th_team_nproc; local
[all...]
H A Dkmp_dispatch.cpp107 typename traits_t<T>::unsigned_t nchunks, T nproc,
119 T num_procs_with_ecore = nproc - num_procs_with_pcore;
151 small_chunk = nchunks / nproc; // chunks per thread
152 extras = nchunks % nproc;
175 // ub (upper bound), and st (stride). nproc is the number of threads relevant
178 // the function within the group of nproc threads. It will have a value
179 // between 0 and nproc - 1. This is often just the thread id within a team, but
192 T nproc, T tid) {
210 "schedule:%%d chunk:%%%s nproc:%%%s tid:%%%s\n",
214 KD_TRACE(10, (buff, gtid, pr, lb, ub, st, schedule, chunk, nproc, ti
105 __kmp_initialize_self_buffer(kmp_team_t *team, T id, dispatch_private_info_template<T> *pr, typename traits_t<T>::unsigned_t nchunks, T nproc, typename traits_t<T>::unsigned_t &init, T &small_chunk, T &extras, T &p_extra) argument
184 __kmp_dispatch_init_algorithm(ident_t *loc, int gtid, dispatch_private_info_template<T> *pr, enum sched_type schedule, T lb, T ub, typename traits_t<T>::signed_t st, kmp_uint64 *cur_chunk, typename traits_t<T>::signed_t chunk, T nproc, T tid) argument
1322 __kmp_dispatch_next_algorithm(int gtid, dispatch_private_info_template<T> *pr, dispatch_shared_info_template<T> volatile *sh, kmp_int32 *p_last, T *p_lb, T *p_ub, typename traits_t<T>::signed_t *p_st, T nproc, T tid) argument
[all...]
H A Dkmp_dispatch_hier.h504 T nproc;
515 nproc = (T)get_top_level_nproc();
523 nproc = (T)parent->get_num_active();
532 &my_st, nproc, hier_id);
561 chunk, nproc, hier_id);
563 gtid, my_pr, my_sh, &contains_last, &my_lb, &my_ub, &my_st, nproc,
723 T nproc = (T)parent->get_num_active();
727 ("kmp_hier_t.next(): T#%d THREAD LEVEL nproc:%d unit_id:%d called\n",
728 gtid, nproc, unit_id));
748 gtid, pr, sh, &contains_last, p_lb, p_ub, p_st, nproc, unit_i
[all...]
H A Dompd-specific.h70 OMPD_ACCESS(kmp_internal_control_t, nproc) \
H A Dkmp_affinity.h946 static kmp_topology_t *allocate(int nproc, int ndepth, const kmp_hw_t *types);
1325 // Resize the hierarchy if nproc changes to something larger than before
1326 void resize(kmp_uint32 nproc) { argument
1330 if (nproc <= base_num_threads) // happy with other thread's resize
1336 if (nproc <= base_num_threads)
1343 for (kmp_uint32 i = depth; i < maxLevels && nproc > old_sz; ++i) {
1349 if (nproc > old_sz) { // Not enough space, need to expand hierarchy
1350 while (nproc > old_sz) {
1387 base_num_threads = nproc;
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 Dkmp_affinity.cpp78 void __kmp_get_hierarchy(kmp_uint32 nproc, kmp_bstate_t *thr_bar) { argument
83 machine_hierarchy.init(nproc);
86 if (nproc > machine_hierarchy.base_num_threads)
87 machine_hierarchy.resize(nproc);
614 kmp_topology_t *kmp_topology_t::allocate(int nproc, int ndepth,
618 size_t size = sizeof(kmp_topology_t) + sizeof(kmp_hw_thread_t) * nproc +
622 if (nproc > 0) {
627 retval->num_hw_threads = nproc;
630 (int *)(bytes + sizeof(kmp_topology_t) + sizeof(kmp_hw_thread_t) * nproc);
4815 int nproc
[all...]
H A Dkmp.h2173 int nproc; /* internal control for #threads for next parallel region (per member in struct:kmp_internal_control
2210 kmp_uint32 nproc; member in struct:kmp_bstate
2373 ((xteam)->t.t_threads[(xtid)]->th.th_current_task->td_icvs.nproc)
2396 (((xthread)->th.th_current_task->td_icvs.nproc) = (xval))
3600 // AT: 1. nproc = __kmp_threads[ ( gtid ) ] -> th.th_team -> t.t_nproc;
3601 // AT: 2. nproc = __kmp_threads[ ( gtid ) ] -> th.th_team_nproc;
3951 extern void __kmp_get_hierarchy(kmp_uint32 nproc, kmp_bstate_t *thr_bar);
/freebsd-current/usr.sbin/bsnmpd/modules/snmp_hostres/
H A Dhostres_swrun_tbl.c327 int nproc; local
330 plist = kvm_getprocs(hr_kd, KERN_PROC_ALL, 0, &nproc);
331 if (plist == NULL || nproc < 0) {
335 for (i = 0, kp = plist; i < nproc; i++, kp++) {
429 int nproc; local
457 entry->index - 1, &nproc);
458 if (plist == NULL || nproc != 1) {
473 int nproc; local
524 entry->index - 1, &nproc);
525 if (plist == NULL || nproc !
[all...]
/freebsd-current/sbin/ipf/ipsend/
H A Dsock.c73 int nproc; variable
/freebsd-current/usr.sbin/pmcstat/
H A Dpmcstat.c174 int n, nproc, pid, rv; local
198 0, &nproc)) == NULL)
202 nproc = 0;
210 for (n = 0, kp = pmcstat_plist; n < nproc; n++, kp++) {
/freebsd-current/sys/contrib/openzfs/contrib/debian/
H A Drules.in23 NUM_CPUS = $(shell nproc 2>/dev/null)
/freebsd-current/tests/ci/
H A DMakefile25 PARALLEL_JOBS!=sysctl -n hw.ncpu 2>/dev/null || nproc 2>/dev/null
/freebsd-current/contrib/sendmail/src/
H A Dconf.c5329 int nproc = 0; local
5338 sz = (size_t) sizeof(nproc);
5339 (void) sysctl(mib, 2, &nproc, &sz, NULL, 0);
5343 nproc = (int) sysconf(_SC_NPROCESSORS_ONLN);
5350 nproc = psd.psd_proc_cnt;
5355 if (nproc <= 0)
5356 nproc = 1;
5357 return nproc;

Completed in 244 milliseconds

12