/freebsd/contrib/sendmail/libsm/ |
H A D | t-notify.c | 70 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/usr.bin/systat/ |
H A D | proc.c | 67 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 …]
|
H A D | pigs.c | 53 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()
|
/freebsd/tools/tools/fetchbench/ |
H A D | fetchbench | 45 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/tools/debugscripts/ |
H A D | gdbinit.i386 | 233 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 D | gdbinit.kernel | 198 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/sys/contrib/openzfs/.github/workflows/ |
H A D | checkstyle.yaml | 41 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 --silen… 55 …docker run -v $PWD:/source ghcr.io/openzfs/libabigail make -j$(nproc) --no-print-directory --silen…
|
/freebsd/contrib/llvm-project/openmp/runtime/src/ |
H A D | kmp_dispatch.cpp | 107 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, tid)); in __kmp_dispatch_init_algorithm() [all …]
|
H A D | kmp_barrier.cpp | 234 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 D | kmp_dispatch_hier.h | 504 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 …]
|
H A D | kmp_dispatch.h | 54 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.
|
/freebsd/bin/nproc/ |
H A D | nproc.c | 8 * 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 D | nproc.1 | 10 .Nm nproc 42 This program is intended to be compatible with nproc as found in GNU coreutils.
|
/freebsd/bin/pkill/ |
H A D | pkill.c | 98 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 D | HostNetBSD.cpp | 142 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 D | hostres_swrun_tbl.c | 327 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/.github/workflows/ |
H A D | cross-bootstrap-tools.yml | 61 …echo "NPROC=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null || echo… 65 …ix.target }} TARGET_ARCH=${{ matrix.target_arch }} kernel-toolchain -s -j$NPROC -DWITH_DISK_IMAGE_… 67 …=${{ matrix.target_arch }} KERNCONF=GENERIC NO_MODULES=yes buildkernel -s -j$NPROC $EXTRA_MAKE_ARGS
|
/freebsd/usr.bin/top/ |
H A D | machine.c | 156 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 D | utils.c | 308 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/libsodium/ |
H A D | .travis.yml | 16 - 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/share/doc/smm/02.config/ |
H A D | spell.ok | 55 NPROC 219 nproc
|
H A D | d.t | 60 .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/sys/contrib/openzfs/config/ |
H A D | ax_count_cpus.m4 | 45 …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 D | Makefile | 39 xargs -n200 -P$$(nproc) \ 45 xargs -n200 -P$$(nproc) $(DT_DOC_CHECKER) -u $(src)) \
|
/freebsd/contrib/googletest/ci/ |
H A D | linux-presubmit.sh | 64 make -j$(nproc) && \ 65 ctest -j$(nproc) --output-on-failure"
|