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

/freebsd-10.0-release/contrib/top/
H A Dm-template113 #define weighted_cpu(pct, pp) ((pp)->p_time == 0 ? 0.0 : \
114 ((pct) / (1.0 - exp((pp)->p_time * logcpu))))
/freebsd-10.0-release/cddl/contrib/opensolaris/lib/libzfs/common/
H A Dlibzfs_iter.c319 char *pct = strchr(comma_separated, '%'); local
320 if (pct != NULL) {
325 if (pct == comma_separated)
329 *pct = '\0';
330 ssa.ssa_last = pct + 1;
/freebsd-10.0-release/cddl/contrib/opensolaris/lib/libzpool/common/
H A Dtaskq.c198 int pct; local
201 pct = MIN(nthreads, 100);
202 pct = MAX(pct, 0);
204 nthreads = (sysconf(_SC_NPROCESSORS_ONLN) * pct) / 100;
/freebsd-10.0-release/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-10.0-release/usr.sbin/mptutil/
H A Dmpt_volume.c133 float pct; local
185 pct = (float)(total - remaining) * 100 / total;
186 printf(" resync: %.2f%% complete\n", pct);
/freebsd-10.0-release/sys/dev/ct/
H A Dct_isa.c169 struct ct_isa_softc *pct = device_get_softc(dev); local
170 struct ct_softc *ct = &pct->sc_ct;
173 struct bshw_softc *bs = &pct->sc_bshw;
/freebsd-10.0-release/sys/dev/ath/ath_rate/sample/
H A Dsample.c168 int rix, tt, pct; local
191 pct = sn->stats[size_bin][rix].ewma_pct;
194 pct = 95;
210 if (best_rate_pct > (pct + 50))
222 best_rate_pct = pct;
235 best_rate_pct = pct;
730 int pct; local
809 pct = ((nframes - nbad) * 1000) / nframes;
821 (pct * (100 - ssc->smoothing_rate))) / 100;
/freebsd-10.0-release/contrib/llvm/tools/llvm-bcanalyzer/
H A Dllvm-bcanalyzer.cpp564 double pct = (Stats.NumBits * 100.0) / BufferSizeBits; local
565 outs() << " Percent of file: " << format("%2.4f%%", pct) << "\n";
582 double pct = (Stats.NumAbbreviatedRecords * 100.0) / Stats.NumRecords; local
583 outs() << " Percent Abbrevs: " << format("%2.4f%%", pct) << "\n";
/freebsd-10.0-release/sys/kern/
H A Dkern_racct.c915 uint64_t pct_estimate, pct; local
936 pct = racct_getpcpu(p, pct_estimate);
940 racct_add_cred_locked(p->p_ucred, RACCT_PCTCPU, pct);
1111 uint64_t pct, pct_estimate; local
1152 pct = racct_getpcpu(p, pct_estimate);
1154 racct_set_force_locked(p, RACCT_PCTCPU, pct);
H A Dvfs_cache.c362 int count, maxlength, used, pct; local
385 pct = (used * 100) / (n_nchash / 100);
395 error = SYSCTL_OUT(req, &pct, sizeof(pct));
/freebsd-10.0-release/usr.bin/top/
H A Dmachine.c86 #define weighted_cpu(pct, pp) ((pp)->ki_swtime == 0 ? 0.0 : \
87 ((pct) / (1.0 - exp((pp)->ki_swtime * logcpu))))
797 double pct; local
837 pct = pctdouble(pp->ki_pctcpu);
1026 ps.wcpu ? 100.0 * weighted_cpu(pct, pp) : 100.0 * pct,
/freebsd-10.0-release/contrib/nvi/common/
H A Dexf.c1030 char *bp, *estr, *p, *pct, *slash, *t, *wfname, buf[8192]; local
1112 pct = t;
1138 (void)snprintf(pct, blen - (pct - bp), "%d", maxnum + 1);
/freebsd-10.0-release/usr.bin/vmstat/
H A Dvmstat.c165 static long pct(long, long);
928 pct(long top, long bot) function
938 #define PCT(top, bot) pct((long)(top), (long)(bot))
1065 percent(double pct, int *over) argument
1070 l = snprintf(buf, sizeof(buf), "%.0f", pct);

Completed in 142 milliseconds