Home
last modified time | relevance | path

Searched full:nproc (Results 1 – 25 of 58) sorted by relevance

123

/freebsd-src/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++)
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) 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);
[all …]
/freebsd-src/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-src/tools/tools/fetchbench/
H A Dfetchbench45 NPROC=10
50 i) NPROC="${OPTARG}" ;;
65 for p in `/usr/bin/jot ${NPROC}`; do
71 …echo -n "${0}: $((${NFETCH} * ${NPROC})) requests for ${URL}, spread among ${NPROC} parallel proce…
73 …( /usr/bin/time -h "${0}" -i "${NPROC}" -n "${NFETCH}" -X "${URL}" ) 2>&1 | sed -E 's/ //;s/ +/, /…
/freebsd-src/sys/contrib/openzfs/.github/workflows/
H A Dcheckstyle.yaml41 make -j$(nproc) --no-print-directory --silent
44 make -j$(nproc) --no-print-directory --silent checkstyle
47 make -j$(nproc) --no-print-directory --silent lint
51 docker run -v $PWD:/source ghcr.io/openzfs/libabigail make -j$(nproc) --no-print-directory --silent checkabi
55 docker run -v $PWD:/source ghcr.io/openzfs/libabigail make -j$(nproc) --no-print-directory --silent storeabi
/freebsd-src/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-src/bin/nproc/
H A Dnproc.c8 * This program is intended to be compatible with nproc as found in GNU
46 "usage: nproc [--all] [--ignore=count]\n"); in help()
48 " nproc --help\n"); in help()
50 " nproc --version\n"); in help()
70 printf("nproc (neither_GNU nor_coreutils) 8.32\n"); in version()
H A Dnproc.110 .Nm nproc
42 This program is intended to be compatible with nproc as found in GNU coreutils.
/freebsd-src/contrib/llvm-project/openmp/runtime/src/
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()
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) { in __kmp_dispatch_init_algorithm() argument
210 "schedule:%%d chunk:%%%s nproc:%%%s tid:%%%s\n", in __kmp_dispatch_init_algorithm()
214 KD_TRACE(10, (buff, gtid, pr, lb, ub, st, schedule, chunk, nproc, ti in __kmp_dispatch_init_algorithm()
1326 __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) __kmp_dispatch_next_algorithm() argument
[all...]
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 in __kmp_dist_barrier_release() local
538 size_t nproc = this_thr->th.th_team_nproc; __kmp_dist_barrier_release() local
594 int nproc = this_thr->th.th_team_nproc; __kmp_linear_barrier_gather_template() local
667 kmp_uint32 nproc = this_thr->th.th_team_nproc; __kmp_linear_barrier_release_template() local
801 kmp_uint32 nproc = this_thr->th.th_team_nproc; __kmp_tree_barrier_gather() local
906 kmp_uint32 nproc; __kmp_tree_barrier_release() local
1292 __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) __kmp_init_hierarchical_barrier_thread() argument
1363 kmp_uint32 nproc = this_thr->th.th_team_nproc; __kmp_hierarchical_barrier_gather() local
1532 kmp_uint32 nproc; __kmp_hierarchical_barrier_release() local
1939 int nproc = this_thr->th.th_team_nproc; __kmp_barrier_template() local
2179 int nproc = this_thr->th.th_team_nproc; __kmp_join_barrier() local
[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
727 ("kmp_hier_t.next(): T#%d THREAD LEVEL nproc:%d unit_id:%d called\n", in next()
728 gtid, nproc, unit_id)); in next()
748 gtid, pr, sh, &contains_last, p_lb, p_ub, p_st, nproc, unit_id); in next()
[all …]
/freebsd-src/contrib/libfido2/.actions/
H A Dbuild-linux-i686-w64-mingw32-gcc31 make -j"$(nproc)" -C build
40 make -j"$(nproc)"
57 make -j"$(nproc)" -C build
H A Dbuild-linux-openssl3-i686-w64-mingw32-gcc31 make -j"$(nproc)" -C build
41 make -j"$(nproc)"
H A Dfuzz-linux58 make VERBOSE=1 -j"$(nproc)" -C build all install
83 make -j"$(nproc)" -C build
/freebsd-src/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-src/contrib/llvm-project/lldb/source/Host/netbsd/
H A DHostNetBSD.cpp142 int nproc; in GetNetBSDProcessUserAndGroup() local
151 sizeof(struct ::kinfo_proc2), &nproc)) == in GetNetBSDProcessUserAndGroup()
157 if (nproc < 1) { in GetNetBSDProcessUserAndGroup()
197 int nproc; in FindProcessesImpl() local
199 sizeof(struct ::kinfo_proc2), &nproc)) == in FindProcessesImpl()
208 for (int i = 0; i < nproc; i++) { in FindProcessesImpl()
/freebsd-src/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-src/.github/workflows/
H A Dcross-bootstrap-tools.yml61 echo "NPROC=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null || echo 1`" >> $GITHUB_ENV
65 run: ./tools/build/make.py --debug $EXTRA_BUILD_ARGS TARGET=${{ matrix.target }} TARGET_ARCH=${{ matrix.target_arch }} kernel-toolchain -s -j$NPROC -DWITH_DISK_IMAGE_TOOLS_BOOTSTRAP
67 run: ./tools/build/make.py --debug $EXTRA_BUILD_ARGS TARGET=${{ matrix.target }} TARGET_ARCH=${{ matrix.target_arch }} KERNCONF=GENERIC NO_MODULES=yes buildkernel -s -j$NPROC $EXTRA_MAKE_ARGS
/freebsd-src/sys/contrib/libsodium/
H A D.travis.yml16 - make -j $(nproc) && make check && make install
23 …- if [ "$TRAVIS_OS_NAME" = 'linux' -a "$CC" = 'gcc' ]; then make -j $(nproc) CFLAGS='-g0' > /dev/n…
/freebsd-src/share/doc/smm/02.config/
H A Dspell.ok55 NPROC
219 nproc
H A Dd.t60 .IP \fBnproc\fP
63 It is referred to in other calculations as NPROC and is defined to be
94 16 * (NPROC + 16 + MAXUSERS) / 10 + 32
104 16 + NPROC
/freebsd-src/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 …]
/freebsd-src/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-src/sys/contrib/device-tree/Bindings/
H A DMakefile39 xargs -n200 -P$$(nproc) \
45 xargs -n200 -P$$(nproc) $(DT_DOC_CHECKER) -u $(src)) \

123