Searched refs:pct (Results 1 - 25 of 30) sorted by relevance

12

/freebsd-current/tools/test/stress2/misc/
H A Dsort2.sh38 pct=-1
43 [ $p -gt $pct ] && pct=$p
46 echo "Max swap used is ${pct}%"
H A Dperf.sh97 pct=$(((t2 - base) * 100 / base))
99 $t2 "$i" $pct
100 [ $pct -gt 10 ] && s=111
H A Dflock.sh155 int i, n, pct;
177 pct = abs((int)share[i + 1] - n) * 100 / n;
178 if (pct > 1) {
181 pct = abs((int)share[i + 1] - n) * 100 / n;
H A Dsuj6.sh156 int i, j, pct;
165 pct = random_int(1, 50);
166 size = size / 100 * pct + 1;
H A Dsuj5.sh154 int i, j, pct;
163 pct = random_int(1, 50);
164 size = size / 100 * pct + 1;
/freebsd-current/tools/test/stress2/testcases/swap/
H A Dswap.c53 int mi, mx, pct; local
60 pct = 0;
84 pct = random_int(mi, mx);
87 pct = random_int(30, 50);
93 size = mem / 100 * pct;
95 size = mem / 100 * pct;
98 pct = size * 100 / mem;
114 getpid(), pct, (int)(size / 1024 / 1024 *
/freebsd-current/contrib/dialog/
H A Ddemo.pl195 my $pct = 0;
200 $midcols * 3, $pct
202 while ( $pct < 100 ) {
203 $pct++;
206 &rhs_update_gauge($pct);
208 $pct = 99;
209 &rhs_update_gauge_and_message( "This will go faster", $pct );
210 while ( $pct > 0 ) {
211 $pct--;
214 &rhs_update_gauge($pct);
[all...]
/freebsd-current/tools/test/stress2/testcases/creat/
H A Dcreat.c46 int pct; local
58 pct = 90;
60 pct = random_int(1, 90);
61 size = size / 100 * pct + 1;
/freebsd-current/tools/test/stress2/testcases/mkdir/
H A Dmkdir.c48 int pct; local
54 pct = 90;
56 pct = random_int(1, 90);
57 size = size / 100 * pct + 1;
/freebsd-current/tools/test/stress2/testcases/symlink/
H A Dsymlink.c50 int pct; local
57 pct = 90;
59 pct = random_int(1, 90);
60 size = size / 100 * pct + 1;
/freebsd-current/tools/test/stress2/tools/
H A Dswap.c51 fprintf(stderr, "Usage: %s [-d delay] [-p pct] [-t runtime] "
174 int ch, i, pct, verbose; local
183 pct = 80;
185 pct = 101;
193 if (sscanf(optarg, "%d", &pct) != 1)
208 if (s == 0 && pct > 80)
209 errx(1, "pct range with no swap is 0-80");
210 size = u / 100 * pct;
212 fprintf(stderr, "pct = %d, sleep = %d usec, size = %lumb\n",
213 pct, utim
[all...]
/freebsd-current/tools/test/stress2/testcases/link/
H A Dlink.c51 int pct; local
59 pct = 90;
61 pct = random_int(1, 90);
62 size = size / 100 * pct + 1;
/freebsd-current/tools/test/stress2/testcases/rw/
H A Drw.c53 int pct; local
59 pct = 90;
61 pct = random_int(1, 90);
62 size = size / 100 * pct + 1;
/freebsd-current/lib/libdpv/
H A Ddpv.c123 int pct; local
553 pct = 0;
560 pct = 0 - increment;
602 pct += increment;
607 pct = action(curfile, output_out);
610 keep_going = (pct < 100);
631 )) || pct == 100
634 overall = (100 * nthfile - 100 + pct) /
636 if (((100 * nthfile - 100 + pct) * 10 /
640 dprompt_recreate(list_head, curfile, pct);
[all...]
H A Ddprompt.c78 struct dpv_file_node *curfile, int pct);
241 pct_lsize = (pbar_size - 4) / 2; /* -4 == printf("%-3s%%", pct) */
375 struct dpv_file_node *curfile, int pct)
417 if (pbar_size >= 0 && pct >= 0 && curfile != NULL &&
420 pct, pct_rsize, "");
423 pwidth = pct * pbar_size / 100;
425 if ((pct * pbar_size % 100) > 50)
495 if (fp == curfile && pct < 100) {
536 dstate = pct < 100 ?
672 struct dpv_file_node *curfile, int pct)
374 dprompt_add_files(struct dpv_file_node *file_list, struct dpv_file_node *curfile, int pct) argument
671 dprompt_recreate(struct dpv_file_node *file_list, struct dpv_file_node *curfile, int pct) argument
[all...]
/freebsd-current/lib/libc/stdio/
H A Dxprintf.c265 __v2printf(FILE *fp, const char *fmt0, unsigned pct, va_list ap) argument
270 struct printf_info pia[pct + 10];
271 int argt[pct + 10];
272 union arg args[pct + 10];
576 __v3printf(FILE *fp, const char *fmt, int pct, va_list ap) argument
596 ret = __v2printf(&fake, fmt, pct, ap);
/freebsd-current/usr.sbin/mptutil/
H A Dmpt_volume.c137 float pct; local
191 pct = (float)(total - remaining) * 100 / total;
192 printf(" resync: %.2f%% complete\n", pct);
/freebsd-current/sys/contrib/openzfs/lib/libzpool/
H A Dtaskq.c262 int pct; local
265 pct = MIN(nthreads, 100);
266 pct = MAX(pct, 0);
268 nthreads = (sysconf(_SC_NPROCESSORS_ONLN) * pct) / 100;
/freebsd-current/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_iter.c429 char *pct = strchr(comma_separated, '%'); local
430 if (pct != NULL) {
435 if (pct == comma_separated)
439 *pct = '\0';
440 ssa.ssa_last = pct + 1;
/freebsd-current/sys/dev/ath/ath_rate/sample/
H A Dsample.c320 int rix, tt, pct; local
343 pct = sn->stats[size_bin][rix].ewma_pct;
345 pct = -1; /* No percent yet to compare against! */
360 if (pct == -1)
376 pct,
379 if (best_rate_pct > (pct + 50))
390 best_rate_pct = pct;
403 best_rate_pct = pct;
977 int pct; local
1036 pct
[all...]
/freebsd-current/sys/kern/
H A Dkern_racct.c989 uint64_t pct_estimate, pct, runtime; local
1014 pct = racct_getpcpu(p, pct_estimate);
1018 racct_add_cred_locked(p->p_ucred, RACCT_PCTCPU, pct);
1250 uint64_t pct, pct_estimate, runtime; local
1289 pct = racct_getpcpu(p, pct_estimate);
1297 racct_set_locked(p, RACCT_PCTCPU, pct, 1);
/freebsd-current/contrib/nvi/common/
H A Dexf.c1028 char *bp, *estr, *p, *pct, *slash, *t, *wfname, buf[8192]; local
1110 pct = t;
1136 (void)snprintf(pct, blen - (pct - bp), "%d", maxnum + 1);
/freebsd-current/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitcodeAnalyzer.cpp670 double pct = (Stats.NumBits * 100.0) / BufferSizeBits; local
671 O.OS << " Percent of file: " << format("%2.4f%%", pct) << "\n";
688 double pct = (Stats.NumAbbreviatedRecords * 100.0) / Stats.NumRecords; local
689 O.OS << " Percent Abbrevs: " << format("%2.4f%%", pct) << "\n";
/freebsd-current/usr.bin/vmstat/
H A Dvmstat.c193 static long pct(long, long);
906 pct(long top, long bot) function
916 #define PCT(top, bot) pct((long)(top), (long)(bot))
/freebsd-current/usr.bin/top/
H A Dmachine.c71 #define weighted_cpu(pct, pp) ((pp)->ki_swtime == 0 ? 0.0 : \
72 ((pct) / (1.0 - exp((pp)->ki_swtime * logcpu))))

Completed in 471 milliseconds

12